Commit a30ca6b2 by LJM

适配手机号

parent 0eafe7a4
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