| | |
| | | }, 1000) |
| | | }) |
| | | }, |
| | | handleJudge(e) { |
| | | const flag = e.currentTarget.dataset.flag |
| | | console.log(e); |
| | | this.setData({ agreementFalg: flag, showModal: false }) |
| | | }, |
| | | loginPhone() { |
| | | const { |
| | | 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 |
| | |
| | | }) |
| | | }, |
| | | changeStatus() { |
| | | if (!this.data.agreementFalg) { |
| | | return wx.showToast({ |
| | | title: '请先阅读并同意相关协议', |
| | | icon: 'none' |
| | | }) |
| | | } |
| | | this.setData({ |
| | | status: '1' |
| | | }) |
| | |
| | | onLoad(options) { |
| | | var app = getApp().globalData |
| | | this.setData({ |
| | | primary: app.primary |
| | | primary: app.primary, |
| | | bottomLift: app.bottomLift |
| | | }) |
| | | this.initData() |
| | | }, |