登录的细节修改

version/0412
fanfan 12 months ago
parent e7275b472a
commit b9f56147a4
  1. 15
      pages/login/index.vue

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

Loading…
Cancel
Save