Commit a819b4f9 by 梁建民

Merge branch 'dev/ver/3.0.0' into 'master'

适配手机号

See merge request !12
parents ed5c5b98 a30ca6b2
Showing with 1 additions and 1 deletions
......@@ -125,7 +125,7 @@ export default {
this.pwdFlag = !this.pwdFlag;
},
submit() {
var myreg = /^[1][3,4,5,7,8][0-9]{9}$/;
var myreg = /^1(3[0-9]|4[01456879]|5[0-35-9]|6[2567]|7[0-8]|8[0-9]|9[0-35-9])\d{8}$/;
if (!this.form.mobile) {
this.errror_text = '请输入手机号';
this.errorClass1 = true;
......
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 sign in to comment