Commit 63907e62 by 姜雷

Merge branch 'develop' into test

parents 0634b0e0 c2cf03ae
......@@ -89,7 +89,7 @@ class Register extends Component {
}
validateRegisterEntity(): boolean {
const { name, cellphone, pwd, checkPwd } = this.state;
const { name, cellphone, vcode, pwd, checkPwd } = this.state;
const {
userinfo: { areaId },
} = this.props;
......@@ -107,6 +107,13 @@ class Register extends Component {
});
return false;
}
if (!vcode || vcode.length !== 6) {
Taro.showToast({
title: '请输入6位验证码',
icon: 'none',
});
return false;
}
if (!pwd) {
Taro.showToast({
title: '请输入密码',
......
......@@ -71,7 +71,7 @@ class ResetPwd extends Component {
}
if (!vcode || vcode.length !== 6) {
Taro.showToast({
title: '请输入验证码',
title: '请输入6位验证码',
icon: 'none',
});
return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment