| | |
| | | */ |
| | | data: { |
| | | loading: false, |
| | | peopleInfo: {} |
| | | peopleInfo: {}, |
| | | signStatus: '', |
| | | }, |
| | | |
| | | /** |
| | |
| | | var that = this; |
| | | that.setData({ |
| | | id: options.id, |
| | | flag: options.flag, |
| | | signStatus: options.signStatus || '', |
| | | flag: options.flag || '', |
| | | loading: true |
| | | }); |
| | | wx.showLoading({ |
| | |
| | | activity: res.data.data |
| | | }) |
| | | console.log('传过来', options.flag) |
| | | console.log('传过来', options.signStatus) |
| | | // 处理报名状态 |
| | | if (options.signStatus) { |
| | | that.setData({ |
| | | signStatus: options.signStatus |
| | | }) |
| | | } else { |
| | | if (options.flag == 'true') { |
| | | //可报名 |
| | | console.log('可报名') |
| | |
| | | statusWord: '您已报名' |
| | | }) |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
| | |
| | | }) |
| | | }, |
| | | |
| | | // 签到 |
| | | sign: function () { |
| | | // 只允许从相机扫码 |
| | | wx.scanCode({ |
| | | onlyFromCamera: true, |
| | | success(res) { |
| | | console.log(res) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | // 返回 |
| | | goBack: function () { |
| | | wx.navigateBack({ |
| | | delta: 1 |
| | | }); |
| | | }, |
| | | |
| | | // 提交报名 |
| | | submit: function() { |
| | | var peopleInfo = this.data.peopleInfo; |