|
|
@ -139,6 +139,12 @@ |
|
|
this.$toast('手机号持有人身份证号') |
|
|
this.$toast('手机号持有人身份证号') |
|
|
return false |
|
|
return false |
|
|
} |
|
|
} |
|
|
|
|
|
// 校验正则 |
|
|
|
|
|
let regIdNo = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/; |
|
|
|
|
|
if(!regIdNo.test(str)){ |
|
|
|
|
|
this.$toast('身份证号填写错误'); |
|
|
|
|
|
return false; |
|
|
|
|
|
} |
|
|
if(str.length<18 || str.length>18){ |
|
|
if(str.length<18 || str.length>18){ |
|
|
this.$toast("手机号持有人身份证号异常") |
|
|
this.$toast("手机号持有人身份证号异常") |
|
|
return false |
|
|
return false |
|
|
|