业务申请校验身份证必须是18位

This commit is contained in:
tangfutang 2018-07-27 14:30:44 +08:00
parent 27ddd13c1f
commit f10128ad11
4 changed files with 20 additions and 4 deletions

View File

@ -64,7 +64,11 @@
return true;
}else{
//setErrorTips("certId","身份证格式不正确!");
alert("身份证格式不正确!");
if(certId.length==18){
alert("身份证格式错误!");
}else{
alert("身份证必须是18位");
}
return false;
}
}

View File

@ -51,7 +51,11 @@
return true;
}else{
//setErrorTips("certId","身份证格式不正确!");
alert("身份证格式不正确!");
if(certId.length==18){
alert("身份证格式错误!");
}else{
alert("身份证必须是18位");
}
return false;
}

View File

@ -209,7 +209,11 @@
// }
else{
parent.parent.openDWDialog();
setErrorTips("certid","身份证格式有误!");
if(certid.length==18){
setErrorTips("certid","身份证格式错误!");
}else{
setErrorTips("certid","身份证必须是18位");
}
parent.parent.resetDWDialog("配偶身份证信息错误!",false);
return false;
}

View File

@ -421,7 +421,11 @@
if(CheckLicense(certid) ){
return true;
}else{
setErrorTips("certid","身份证格式错误!");
if(certid.length==18){
setErrorTips("certid","身份证格式错误!");
}else{
setErrorTips("certid","身份证必须是18位");
}
return false;
}
}