Browse Source

验证码功能

master
guoxing 2 years ago
parent
commit
8edb35e4fe
  1. 13
      mallplusui-uniapp-app/pages/public/login.vue

13
mallplusui-uniapp-app/pages/public/login.vue

@ -497,9 +497,7 @@
if (!phoneReg.test(this.phone)) {
throw '手机号格式有误';
}
if (this.password == '') {
throw '请填写密码';
}
} catch (err) {
this.$api.msg(err);
return;
@ -531,7 +529,14 @@
}
} else {
//
try {
if (this.password == '') {
throw '请填写密码';
}
} catch (err) {
this.$api.msg(err);
return;
}
let params = {
phone: this.phone,
password: this.password

Loading…
Cancel
Save