From b9f56147a48b1bd76a10c053e86f999d46283deb Mon Sep 17 00:00:00 2001 From: fanfan Date: Mon, 4 Mar 2024 20:20:04 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E7=9A=84=E7=BB=86=E8=8A=82?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/login/index.vue | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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