liukangdong
2024-07-30 d5592767654f4fc59b572bab54de1d9202d994ea
wechat_staff/pages/login/index.js
@@ -64,6 +64,25 @@
      code,
      phone
    } = this.data
    if (!this.data.agreementFalg) {
      return wx.showToast({
        title: '请先阅读并同意相关协议',
        icon: 'none'
      })
    }
    if (phone.length != 11) {
      return wx.showToast({
        title: '请输入正确的手机号',
        icon: 'none'
      })
    }
    if (!code) {
      return wx.showToast({
        title: '请输入验证码',
        icon: 'none'
      })
    }
    loginByPhone({
      code,
      phone
@@ -98,12 +117,6 @@
    })
  },
  changeStatus() {
    if (!this.data.agreementFalg) {
      return wx.showToast({
        title: '请先阅读并同意相关协议',
        icon: 'none'
      })
    }
    this.setData({
      status: '1'
    })