Commit 29196707 by 姜雷

Merge branch 'develop' into 'test'

检验输入手机号 See merge request !5
parents 9dc09e47 5fa401c7
...@@ -41,6 +41,10 @@ class Login extends Component { ...@@ -41,6 +41,10 @@ class Login extends Component {
Toast.fail('请输入手机号'); Toast.fail('请输入手机号');
return; return;
} }
if (cellphone.length !== 11) {
Toast.fail('请输入正确手机号');
return;
}
getVcode({ cellphone }) getVcode({ cellphone })
.then(res => { .then(res => {
console.log(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