| 
																	
																	
																		
																	
																	
																 | 
																@@ -9,91 +9,96 @@ let configUrls = extConfig.attr.configUrl; | 
															
														
														
													
														
															
																 | 
																 | 
																Page({ | 
																 | 
																 | 
																Page({ | 
															
														
														
													
														
															
																 | 
																 | 
																  data: { | 
																 | 
																 | 
																  data: { | 
															
														
														
													
														
															
																 | 
																 | 
																    data: {}, | 
																 | 
																 | 
																    data: {}, | 
															
														
														
													
														
															
																 | 
																 | 
																    status:1, | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																    status: 1, | 
															
														
														
													
														
															
																 | 
																 | 
																    couponId: null, | 
																 | 
																 | 
																    couponId: null, | 
															
														
														
													
														
															
																 | 
																 | 
																    orderId: "", | 
																 | 
																 | 
																    orderId: "", | 
															
														
														
													
														
															
																 | 
																 | 
																    question:[], | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																    question: [], | 
															
														
														
													
														
															
																 | 
																 | 
																    day: "", | 
																 | 
																 | 
																    day: "", | 
															
														
														
													
														
															
																 | 
																 | 
																    hour: "", | 
																 | 
																 | 
																    hour: "", | 
															
														
														
													
														
															
																 | 
																 | 
																    activityId:"", | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																    activityId: "", | 
															
														
														
													
														
															
																 | 
																 | 
																    wmhome: imgurl.wmhome.url, | 
																 | 
																 | 
																    wmhome: imgurl.wmhome.url, | 
															
														
														
													
														
															
																 | 
																 | 
																    minute: "", | 
																 | 
																 | 
																    minute: "", | 
															
														
														
													
														
															
																 | 
																 | 
																    nodes: '' | 
																 | 
																 | 
																    nodes: '' | 
															
														
														
													
														
															
																 | 
																 | 
																  }, | 
																 | 
																 | 
																  }, | 
															
														
														
													
														
															
																 | 
																 | 
																  onLoad(options) { | 
																 | 
																 | 
																  onLoad(options) { | 
															
														
														
													
														
															
																 | 
																 | 
																    let that = this; | 
																 | 
																 | 
																    let that = this; | 
															
														
														
													
														
															
																 | 
																 | 
																    if (options.id){ | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																    if(options&&options.id){ | 
															
														
														
													
														
															
																 | 
																 | 
																      that.setData({ | 
																 | 
																 | 
																      that.setData({ | 
															
														
														
													
														
															
																 | 
																 | 
																        activityId: options.id | 
																 | 
																 | 
																        activityId: options.id | 
															
														
														
													
														
															
																 | 
																 | 
																      }) | 
																 | 
																 | 
																      }) | 
															
														
														
													
														
															
																 | 
																 | 
																      Http.get({ | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																        url: config.api.acfindById, | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																        data: { | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																          id: options.id | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																        } | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																      }).then(res => { | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																        if (res && res.data && res.data.activity){ | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																          that.setData({ | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																            data: res.data.activity | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																          }) | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																         | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																          that.setData({ | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																            activityStartTime:util.formatTime(res.data.activity.activityStartTime, "yyyy-MM-dd hh:mm:ss"), | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																            activityEndTime:util.formatTime(res.data.activity.activityEndTime, "yyyy-MM-dd hh:mm:ss"), | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																            startTime: util.formatTime(res.data.activity.startTime, "yyyy-MM-dd hh:mm:ss"), | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																            endTime: util.formatTime(res.data.activity.endTime, "yyyy-MM-dd hh:mm:ss") | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																      that.findById(options.id); | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																    } | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																  }, | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																  findById(id) { | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																    let that = this; | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																    Http.get({ | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																      url: config.api.acfindById, | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																      data: { | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																        id: id | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																      } | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																    }).then(res => { | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																      if (res && res.data && res.data.activity) { | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																        that.setData({ | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																          data: res.data.activity | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																        }) | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																
  | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																        that.setData({ | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																          activityStartTime: util.formatTime(res.data.activity.activityStartTime, "yyyy-MM-dd hh:mm:ss"), | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																          activityEndTime: util.formatTime(res.data.activity.activityEndTime, "yyyy-MM-dd hh:mm:ss"), | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																          startTime: util.formatTime(res.data.activity.startTime, "yyyy-MM-dd hh:mm:ss"), | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																          endTime: util.formatTime(res.data.activity.endTime, "yyyy-MM-dd hh:mm:ss") | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																        }) | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																        if (res.data.activity.type == 2) { | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																          wx.request({ | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																            url: configUrls + config.api.acPrintHtmlById, | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																            data: { | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																              id: options.id, | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																              date: new Date(), | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																              token: app.globalData.token, | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																            }, | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																            header: { | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																              'content-type': 'application/html' | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																            }, | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																            success: function(res) { | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																              var temp = WxParse.wxParse('article', 'html', res.data, that, 5); | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																            } | 
															
														
														
													
														
															
																 | 
																 | 
																          }) | 
																 | 
																 | 
																          }) | 
															
														
														
													
														
															
																 | 
																 | 
																          if (res.data.activity.type == 2) { | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																            wx.request({ | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																              url: configUrls + config.api.acPrintHtmlById, | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																              data: { | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																                id: options.id, | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																                date: new Date(), | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																                token: app.globalData.token, | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																              }, | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																              header: { | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																                'content-type': 'application/html' | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																              }, | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																              success: function (res) { | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																                var temp = WxParse.wxParse('article', 'html', res.data, that, 5); | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																              } | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																            }) | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																          } | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																        } | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																        if (res && res.data && res.data.status) { | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																          that.setData({ | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																            status: res.data.status | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																          }); | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																        } | 
																 | 
																 | 
																        } | 
															
														
														
													
														
															
																 | 
																 | 
																        | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																      }).catch(err => { | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																        wx.showToast({ | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																          title: err.errMsg, | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																          icon: 'none', | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																          duration: 2000, | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																          mask: false | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																        }) | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																      } | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																      if (res && res.data && res.data.status) { | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																        that.setData({ | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																          status: res.data.status | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																        }); | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																      } | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																
  | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																    }).catch(err => { | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																      wx.showToast({ | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																        title: err.errMsg, | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																        icon: 'none', | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																        duration: 2000, | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																        mask: false | 
															
														
														
													
														
															
																 | 
																 | 
																      }) | 
																 | 
																 | 
																      }) | 
															
														
														
													
														
															
																 | 
																 | 
																    } | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																    }) | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																
  | 
															
														
														
													
														
															
																 | 
																 | 
																  }, | 
																 | 
																 | 
																  }, | 
															
														
														
													
														
															
																 | 
																 | 
																  //跳转到报名详情页 | 
																 | 
																 | 
																  //跳转到报名详情页 | 
															
														
														
													
														
															
																 | 
																 | 
																  goSignUp(e){ | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																  goSignUp(e) { | 
															
														
														
													
														
															
																 | 
																 | 
																    let activityId = e.currentTarget.dataset.activityid; | 
																 | 
																 | 
																    let activityId = e.currentTarget.dataset.activityid; | 
															
														
														
													
														
															
																 | 
																 | 
																    wx.navigateTo({ | 
																 | 
																 | 
																    wx.navigateTo({ | 
															
														
														
													
														
															
																 | 
																 | 
																      url: `/pages/radetail/joinActivity/edit?activityId=${activityId}`, | 
																 | 
																 | 
																      url: `/pages/radetail/joinActivity/edit?activityId=${activityId}`, | 
															
														
														
													
														
															
																 | 
																 | 
																    }) | 
																 | 
																 | 
																    }) | 
															
														
														
													
														
															
																 | 
																 | 
																  }, | 
																 | 
																 | 
																  }, | 
															
														
														
													
														
															
																 | 
																 | 
																  goback: function () { | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																  goback: function() { | 
															
														
														
													
														
															
																 | 
																 | 
																    wx.switchTab({ | 
																 | 
																 | 
																    wx.switchTab({ | 
															
														
														
													
														
															
																 | 
																 | 
																      url: '/pages/main/index', | 
																 | 
																 | 
																      url: '/pages/main/index', | 
															
														
														
													
														
															
																 | 
																 | 
																    }) | 
																 | 
																 | 
																    }) | 
															
														
														
													
														
															
																 | 
																 | 
																  }, | 
																 | 
																 | 
																  }, | 
															
														
														
													
														
															
																 | 
																 | 
																  gotoactdetail:function(){ | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																  gotoactdetail: function() { | 
															
														
														
													
														
															
																 | 
																 | 
																    let that = this; | 
																 | 
																 | 
																    let that = this; | 
															
														
														
													
														
															
																 | 
																 | 
																    console.log(that.data.data.detail) | 
																 | 
																 | 
																    console.log(that.data.data.detail) | 
															
														
														
													
														
															
																 | 
																 | 
																     | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																    wx.navigateTo({ | 
																 | 
																 | 
																    wx.navigateTo({ | 
															
														
														
													
														
															
																 | 
																 | 
																      url: `/pages/actdetail/actdetail?detail=${that.data.data.detail}`, | 
																 | 
																 | 
																      url: `/pages/actdetail/actdetail?detail=${that.data.data.detail}`, | 
															
														
														
													
														
															
																 | 
																 | 
																    }) | 
																 | 
																 | 
																    }) | 
															
														
														
													
														
															
																 | 
																 | 
																  } | 
																 | 
																 | 
																  } | 
															
														
														
													
														
															
																 | 
																 | 
																}); | 
																 | 
																 | 
																 | 
															
														
														
													
														
															
																 | 
																 | 
																 | 
																 | 
																 | 
																}); |