Commit db3ce606 by 肖康

手机好

parent da359119
Showing with 11 additions and 11 deletions
......@@ -190,7 +190,7 @@
}else{
this.tipMsg='';
}
var r = /^1[345678]\d{9}$/;
var r = /^1[3456789]\d{9}$/;
if (r.test(this['mobile'])) {
this['tipMsg']=""
} else {
......@@ -230,7 +230,7 @@
}
},
mobile(val){
var r = /^1[345678]\d{9}$/;
var r = /^1[3456789]\d{9}$/;
if (r.test(val)) {
this.tipMsg=""
this.codestatus = true;
......
......@@ -162,7 +162,7 @@
}else{
this['form1']['msg']=""
}
var r = /^1[345678]\d{9}$/;
var r = /^1[3456789]\d{9}$/;
if (r.test(this['form1']['mobile'])) {
this['form1']['msg']=""
} else {
......@@ -193,7 +193,7 @@
this.form1.imgcodestatus=val;
},
mobile(val) {
var r = /^1[345678]\d{9}$/;
var r = /^1[3456789]\d{9}$/;
if (r.test(val)) {
this.form1.msg=""
this.form1.codestatus = true;
......
......@@ -247,7 +247,7 @@
//提交表单form1
submitForm(type_){
var form_=(type_==2)?"form2":"form1"
var r = /^1[345678]\d{9}$/;
var r = /^1[3456789]\d{9}$/;
if (r.test(this[form_]['mobile'])) {
this[form_]['msg']=""
} else {
......@@ -287,7 +287,7 @@
this.form2.imgcodestatus=val;
},
mobile(val) {
var r = /^1[345678]\d{9}$/;
var r = /^1[3456789]\d{9}$/;
if (r.test(val)) {
this.form1.msg=""
this.form1.codestatus = true;
......@@ -297,7 +297,7 @@
}
},
mobile2(val) {
var r = /^1[345678]\d{9}$/;
var r = /^1[3456789]\d{9}$/;
if (r.test(val)) {
this.form2.msg=""
this.form2.codestatus = true;
......
......@@ -362,7 +362,7 @@
},
submit() {
var character_reg = /^[\u0391-\uFFE5A-Za-z]+$/;
var tel_reg = /^1[34578]\d{9}$/;
var tel_reg = /^1[3456789]\d{9}$/;
if (!this.form.linkName) {
this.formError = true;
......
......@@ -355,7 +355,7 @@
},
submit() {
var character_reg = /^[\u0391-\uFFE5A-Za-z]+$/;
var tel_reg = /^1[34578]\d{9}$/;
var tel_reg = /^1[3456789]\d{9}$/;
// if (!this.form.com_name) {
// this.formError = true;
......
......@@ -148,7 +148,7 @@
this.formMsg = '亲,请输入手机';
return;
}
var tel_reg = /^1[34578]\d{9}$/;
var tel_reg = /^1[3456789]\d{9}$/;
if (!tel_reg.test(this.form.safeMobile)) {
this.formError = true;
this.formMsg = '亲,手机格式不正确';
......
......@@ -132,7 +132,7 @@
this.formMsg = '亲,请输入银行预留手机';
return false;
}
var tel_reg = /^1[34578]\d{9}$/;
var tel_reg = /^1[3456789]\d{9}$/;
if (!tel_reg.test(this.form.userMobile)) {
this.formError = true;
this.formMsg = '亲,银行预留手机格式不正确';
......
This diff could not be displayed because it is too large.
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