修改电话格式校验

This commit is contained in:
zhangjun 2018-11-28 16:19:47 +08:00
parent f0a4e41551
commit a51f0119e0
8 changed files with 10 additions and 10 deletions

View File

@ -59,7 +59,7 @@ if(typeof(telephone) != undefined && telephone!= "" ){
alert("µç»°ºÅÂë¸ñʽ´íÎó");
return false;
}
var myreg=/^[1][3,4,5,7,8][0-9]{9}$/;
var myreg=/^[1][3,4,5,7,8,9][0-9]{9}$/;
if (!myreg.test(telephone)) {
alert("µç»°ºÅÂë¸ñʽ´íÎó");
return false;

View File

@ -107,7 +107,7 @@
if(LINKMAN_TEL==""){
return true;
}
var phone = /^[1][3,4,5,7,8][0-9]{9}$/;
var phone = /^[1][3,4,5,7,8,9][0-9]{9}$/;
if(phone.test(LINKMAN_TEL)){
setErrorTips("LINKMAN_TEL","");
return true;

View File

@ -107,7 +107,7 @@
if(LINKMAN_TEL==""){
return true;
}
var phone = /^[1][3,4,5,7,8][0-9]{9}$/;
var phone = /^[1][3,4,5,7,8,9][0-9]{9}$/;
if(phone.test(LINKMAN_TEL)){
setErrorTips("LINKMAN_TEL","");
return true;

View File

@ -107,7 +107,7 @@
if(LINKMAN_TEL==""){
return true;
}
var phone = /^[1][3,4,5,7,8][0-9]{9}$/;
var phone = /^[1][3,4,5,7,8,9][0-9]{9}$/;
if(phone.test(LINKMAN_TEL)){
setErrorTips("LINKMAN_TEL","");
return true;

View File

@ -93,7 +93,7 @@
if(LINKMAN_TEL==""){
return true;
}
var phone = /^[1][3,4,5,7,8][0-9]{9}$/;
var phone = /^[1][3,4,5,7,8,9][0-9]{9}$/;
if(phone.test(LINKMAN_TEL)){
setErrorTips("LINKMAN_TEL","");
return true;
@ -105,7 +105,7 @@
}
/* function checkphone(){
var DISTRIBUTOR_TEL = getItemValue(0,getRow(0),"DISTRIBUTOR_TEL");
var phone = /^[1][3,4,5,7,8][0-9]{9}$/;
var phone = /^[1][3,4,5,7,8,9][0-9]{9}$/;
if(phone.test(DISTRIBUTOR_TEL)){
setErrorTips("DISTRIBUTOR_TEL","");
return true;
@ -117,7 +117,7 @@
} */
/* function telnumber(){
var DEALER_PHONE = getItemValue(0,getRow(0),"DEALER_PHONE");
var phone = /^[1][3,4,5,7,8][0-9]{9}$/;
var phone = /^[1][3,4,5,7,8,9][0-9]{9}$/;
if(phone.test(DEALER_PHONE)){
setErrorTips("DEALER_PHONE","");
return true;

View File

@ -110,7 +110,7 @@
// alert("预留手机号不能为空!");
return true;
}
var phone = /^[1][3,4,5,7,8][0-9]{9}$/;
var phone = /^[1][3,4,5,7,8,9][0-9]{9}$/;
if(phone.test(mobile)){
setErrorTips("MOBILE","");
return true;

View File

@ -121,7 +121,7 @@
// alert("手机号不能为空!");
return true;
}
var phone = /^[1][3,4,5,7,8][0-9]{9}$/;
var phone = /^[1][3,4,5,7,8,9][0-9]{9}$/;
if(phone.test(mobile)){
var customerType = "03";
var id = getItemValue(0,getRow(),"id");

View File

@ -108,7 +108,7 @@
//alert("手机号不能为空!");
return true;
}
var phone = /^[1][3,4,5,7,8][0-9]{9}$/;
var phone = /^[1][3,4,5,7,8,9][0-9]{9}$/;
if(phone.test(tel)){
setErrorTips("tel","");
return true;