var reg = /^[1][3,4,5,6,7,8,9][0-9]{9}$/;
if(!_this.phone ){
uni.showToast({
title:'请输入手机号',
icon:'none'
})
return false;
}else if (!reg.test(_this.phone)) { //判断手机号格式时候正确
uni.showToast({
title: '请输入正确的手机号',
icon: 'none'
})
return false;
}
//身份证号正则
var p = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;
if(p.test(this.cardID)==0 || this.cardID.length<18){
uni.showToast({
title: '证件号格式错误'
})
return false;
}
04-25
1603
08-15
430
07-28
07-28
07-28