登录的细节修改

version/0412
fanfan 12 months ago
parent e7275b472a
commit b9f56147a4
  1. 15
      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

Loading…
Cancel
Save