提示信息顺序
This commit is contained in:
@@ -207,14 +207,11 @@ export default {
|
||||
if (this.form.idNumber.length == 18 && !reg.test(this.form.idNumber) && this.fromType != 1) {
|
||||
return this.$u.toast('请输入正确的身份证账号')
|
||||
}
|
||||
if (!this.form.phone && this.fromType != 1) {
|
||||
return this.$u.toast('请输入手机号码')
|
||||
}
|
||||
if (!this.form.name && this.fromType != 1) {
|
||||
return this.$u.toast('请输入姓名')
|
||||
}
|
||||
if(!this.travelType.length) {
|
||||
return this.$u.toast('请选择出行方式')
|
||||
if (!this.form.phone && this.fromType != 1) {
|
||||
return this.$u.toast('请输入手机号码')
|
||||
}
|
||||
if(!this.form.startTime) {
|
||||
return this.$u.toast('请选择出发时间')
|
||||
@@ -225,6 +222,9 @@ export default {
|
||||
if (this.form.startAreaId.substr(4,this.form.startAreaId.length - 4) === '00000000') {
|
||||
return this.$u.toast('出发地必须选至县级及以下')
|
||||
}
|
||||
if(!this.travelType.length) {
|
||||
return this.$u.toast('请选择出行方式')
|
||||
}
|
||||
if(!this.form.arriveTime) {
|
||||
return this.$u.toast('请选择抵平时间')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user