@ -298,7 +298,7 @@
// height: 460rpx;
height: 28vh;
width: 100%;
padding: 10%;
padding: 10% 10% 12%;
// margin-bottom: 22rpx;
display: flex;
flex-wrap: wrap;
@ -203,6 +203,7 @@ import { checkLogin, showError } from '@/core/app'
width: 66rpx;
height: 100%;
select{
font-size: 32rpx;
border: none;
@ -139,6 +139,12 @@
this.$toast('手机号持有人身份证号')
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){
this.$toast("手机号持有人身份证号异常")