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