shareIndex.js 849 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. // pages/master/shareIndex/shareIndex.js
  2. Page({
  3. /**
  4. * 页面的初始数据
  5. */
  6. data: {
  7. rid:'',
  8. },
  9. /**
  10. * 生命周期函数--监听页面加载
  11. */
  12. onLoad(options) {
  13. console.log(options);
  14. if(options.rid){
  15. this.setData({
  16. rid:options.rid
  17. });
  18. // console.log(this.data.rid);
  19. }
  20. },
  21. onReady() {
  22. },
  23. onShow() {
  24. },
  25. onHide() {
  26. },
  27. onUnload() {
  28. },
  29. onPullDownRefresh() {
  30. },
  31. onReachBottom() {
  32. },
  33. onShareAppMessage: function () {
  34. },
  35. goActivityRules(){
  36. wx.navigateTo({
  37. url: '/pages/master/activityRules/activityRules',
  38. })
  39. },
  40. goshareDetails(){
  41. wx.navigateTo({
  42. url: '/pages/master/shareDetails/shareDetails?rid=' + this.data.rid,
  43. })
  44. },
  45. goPoster(){
  46. wx.navigateTo({
  47. url: '/pages/master/poster/poster?rid='+this.data.rid,
  48. })
  49. }
  50. })