Commit 65108474 by 肖康

Merge branch 'XK_carB20190624' into Development

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