身份证
This commit is contained in:
@@ -340,6 +340,17 @@ export default {
|
|||||||
this.getDetail()
|
this.getDetail()
|
||||||
},
|
},
|
||||||
submit(status) {
|
submit(status) {
|
||||||
|
if (!this.form.idNumber) {
|
||||||
|
return this.$u.toast('请输入身份证号')
|
||||||
|
}
|
||||||
|
let reg = /^[1-9]\d{5}(18|19|20)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/;
|
||||||
|
|
||||||
|
if (this.form.idNumber.length == 18 && !reg.test(this.form.idNumber)) {
|
||||||
|
return this.$u.toast('请输入正确的身份证账号')
|
||||||
|
}
|
||||||
|
if (this.form.idNumber.length == 18 && !reg.test(this.form.idNumber)) {
|
||||||
|
return this.$u.toast('请输入正确的身份证账号')
|
||||||
|
}
|
||||||
if(this.form.homeStatus === '') {
|
if(this.form.homeStatus === '') {
|
||||||
return this.$u.toast('请选择居家状态')
|
return this.$u.toast('请选择居家状态')
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user