Commit 63907e62 by 姜雷

Merge branch 'develop' into test

parents 0634b0e0 c2cf03ae
...@@ -89,7 +89,7 @@ class Register extends Component { ...@@ -89,7 +89,7 @@ class Register extends Component {
} }
validateRegisterEntity(): boolean { validateRegisterEntity(): boolean {
const { name, cellphone, pwd, checkPwd } = this.state; const { name, cellphone, vcode, pwd, checkPwd } = this.state;
const { const {
userinfo: { areaId }, userinfo: { areaId },
} = this.props; } = this.props;
...@@ -107,6 +107,13 @@ class Register extends Component { ...@@ -107,6 +107,13 @@ class Register extends Component {
}); });
return false; return false;
} }
if (!vcode || vcode.length !== 6) {
Taro.showToast({
title: '请输入6位验证码',
icon: 'none',
});
return false;
}
if (!pwd) { if (!pwd) {
Taro.showToast({ Taro.showToast({
title: '请输入密码', title: '请输入密码',
......
...@@ -71,7 +71,7 @@ class ResetPwd extends Component { ...@@ -71,7 +71,7 @@ class ResetPwd extends Component {
} }
if (!vcode || vcode.length !== 6) { if (!vcode || vcode.length !== 6) {
Taro.showToast({ Taro.showToast({
title: '请输入验证码', title: '请输入6位验证码',
icon: 'none', icon: 'none',
}); });
return false; 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