Commit 5fa401c7 by 姜雷

检验输入手机号

parent 934cc448
......@@ -41,6 +41,10 @@ class Login extends Component {
Toast.fail('请输入手机号');
return;
}
if (cellphone.length !== 11) {
Toast.fail('请输入正确手机号');
return;
}
getVcode({ cellphone })
.then(res => {
console.log(res);
......
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