验证码功能
This commit is contained in:
@@ -497,9 +497,7 @@
|
|||||||
if (!phoneReg.test(this.phone)) {
|
if (!phoneReg.test(this.phone)) {
|
||||||
throw '手机号格式有误';
|
throw '手机号格式有误';
|
||||||
}
|
}
|
||||||
if (this.password == '') {
|
|
||||||
throw '请填写密码';
|
|
||||||
}
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this.$api.msg(err);
|
this.$api.msg(err);
|
||||||
return;
|
return;
|
||||||
@@ -531,7 +529,14 @@
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// 账号登录
|
// 账号登录
|
||||||
|
try {
|
||||||
|
if (this.password == '') {
|
||||||
|
throw '请填写密码';
|
||||||
|
}
|
||||||
|
} catch (err) {
|
||||||
|
this.$api.msg(err);
|
||||||
|
return;
|
||||||
|
}
|
||||||
let params = {
|
let params = {
|
||||||
phone: this.phone,
|
phone: this.phone,
|
||||||
password: this.password
|
password: this.password
|
||||||
|
|||||||
Reference in New Issue
Block a user