diff --git a/pages/login/index.vue b/pages/login/index.vue index 3b25ed5..221372c 100644 --- a/pages/login/index.vue +++ b/pages/login/index.vue @@ -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