forked from nsjcy/frontEnd/nsjcy

liuwh
2020-02-24 2bcd556961208b80af1cb157633c594faab1eca2
SunshineLnsMinApp/pages/fzpxInfo/fzpxInfo.js
@@ -10,7 +10,8 @@
   */
  data: {
    loading: false,
    peopleInfo: {}
    peopleInfo: {},
    signStatus: '',
  },
  /**
@@ -20,7 +21,8 @@
    var that = this;
    that.setData({
      id: options.id,
      flag: options.flag,
      signStatus: options.signStatus || '',
      flag: options.flag || '',
      loading: true
    });
    wx.showLoading({
@@ -40,7 +42,13 @@
            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('可报名')
@@ -77,6 +85,7 @@
              statusWord: '您已报名'
            })
          }
          }
        }
      }
@@ -110,6 +119,24 @@
    })
  },
  // 签到
  sign: function () {
    // 只允许从相机扫码
    wx.scanCode({
      onlyFromCamera: true,
      success(res) {
        console.log(res)
      }
    })
  },
  // 返回
  goBack: function () {
    wx.navigateBack({
      delta: 1
    });
  },
  // 提交报名
  submit: function() {
    var peopleInfo = this.data.peopleInfo;