|
|
|
@ -114,27 +114,28 @@ |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
login() { |
|
|
|
|
if(this.isCheckout == false){ |
|
|
|
|
this.$toast('请勾选用户协议') |
|
|
|
|
let that = this; |
|
|
|
|
if(that.isCheckout == false){ |
|
|
|
|
that.$toast('请勾选用户协议') |
|
|
|
|
return ; |
|
|
|
|
} |
|
|
|
|
// 登录 |
|
|
|
|
if (!this.validatePhoneNumber(this.phoneNum)) { |
|
|
|
|
this.$toast('请输入正确的手机号') |
|
|
|
|
if (!that.validatePhoneNumber(that.phoneNum)) { |
|
|
|
|
that.$toast('请输入正确的手机号') |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
if (this.semCode == '') { |
|
|
|
|
if (that.semCode == '') { |
|
|
|
|
this.$toast('请输入验证码') |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
uni.login({ |
|
|
|
|
provider: 'weixin', |
|
|
|
|
success: function(res) { |
|
|
|
|
const that = this; |
|
|
|
|
|
|
|
|
|
store.dispatch('Login', { |
|
|
|
|
smsCode: that.semCode, |
|
|
|
|
mobile: that.phoneNum, |
|
|
|
|
refereeId: this.refereeId, |
|
|
|
|
refereeId: that.refereeId, |
|
|
|
|
isParty: false, |
|
|
|
|
partyData: {}, |
|
|
|
|
ucode:res.code |
|
|
|
|