社区管理

This commit is contained in:
liuye
2022-11-25 15:17:02 +08:00
parent e9bf5ec161
commit 2c45f0831a

View File

@@ -199,16 +199,16 @@ export default {
},
methods: {
submit() {
if (!this.form.idNumber) {
if (!this.form.idNumber && this.fromType != 1) {
return this.$u.toast('请输入身份证号')
}
if (!/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test(this.form.idNumber)) {
if (!/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test(this.form.idNumber) && this.fromType != 1) {
return this.$u.toast('请输入正确的身份证账号')
}
if (!this.form.phone) {
if (!this.form.phone && this.fromType != 1) {
return this.$u.toast('请输入手机号码')
}
if (!this.form.name) {
if (!this.form.name && this.fromType != 1) {
return this.$u.toast('请输入姓名')
}
if(!this.travelType.length) {