This commit is contained in:
liuye
2022-11-25 15:54:53 +08:00
parent 39976ada01
commit 39e4c5af68
2 changed files with 4 additions and 4 deletions

View File

@@ -202,10 +202,10 @@ export default {
}, },
changeIdNumberConfirm() { changeIdNumberConfirm() {
if (!this.info.idNumber) { if (!this.info.idNumber) {
return this.$toast('请输入身份证号') return this.$u.toast('请输入身份证号')
} }
if (!/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test(this.info.idNumber)) { if (!/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test(this.info.idNumber)) {
return this.$toast('请输入正确的身份证账号') return this.$u.toast('请输入正确的身份证账号')
} }
this.$http.post(`/app/appepidemicpreventionregisterinfo/updateForAdmin`, this.info).then((res) => { this.$http.post(`/app/appepidemicpreventionregisterinfo/updateForAdmin`, this.info).then((res) => {
if (res.code == 0) { if (res.code == 0) {

View File

@@ -318,10 +318,10 @@ export default {
}, },
changeIdNumberConfirm() { changeIdNumberConfirm() {
if (!this.info.idNumber) { if (!this.info.idNumber) {
return this.$toast('请输入身份证号') return this.$u.toast('请输入身份证号')
} }
if (!/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test(this.info.idNumber)) { if (!/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test(this.info.idNumber)) {
return this.$toast('请输入正确的身份证账号') return this.$u.toast('请输入正确的身份证账号')
} }
this.$http.post(`/app/appepidemicpreventionregisterinfo/updateForAdmin`, this.info).then((res) => { this.$http.post(`/app/appepidemicpreventionregisterinfo/updateForAdmin`, this.info).then((res) => {
if (res.code == 0) { if (res.code == 0) {