toast
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user