报错信息
This commit is contained in:
@@ -149,7 +149,7 @@ export default {
|
||||
return this.$u.toast('请选择出发地')
|
||||
}
|
||||
if (this.form.startAreaId.substr(4,this.form.startAreaId.length - 4) === '00000000') {
|
||||
return this.$toast('出发地必须选至县级及以下')
|
||||
return this.$u.toast('出发地必须选至县级及以下')
|
||||
}
|
||||
if(!this.travelType.length) {
|
||||
return this.$u.toast('请选择出行方式')
|
||||
|
||||
@@ -200,16 +200,16 @@ export default {
|
||||
methods: {
|
||||
submit() {
|
||||
if (!this.form.idNumber) {
|
||||
return this.$toast('请输入身份证号')
|
||||
return this.$u.toast('请输入身份证号')
|
||||
}
|
||||
if (!/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test(this.form.idNumber)) {
|
||||
return this.$toast('请输入正确的身份证账号')
|
||||
return this.$u.toast('请输入正确的身份证账号')
|
||||
}
|
||||
if (!this.form.phone) {
|
||||
return this.$toast('请输入手机号码')
|
||||
return this.$u.toast('请输入手机号码')
|
||||
}
|
||||
if (!this.form.name) {
|
||||
return this.$toast('请输入姓名')
|
||||
return this.$u.toast('请输入姓名')
|
||||
}
|
||||
if(!this.travelType.length) {
|
||||
return this.$u.toast('请选择出行方式')
|
||||
@@ -221,7 +221,7 @@ export default {
|
||||
return this.$u.toast('请选择出发地')
|
||||
}
|
||||
if (this.form.startAreaId.substr(4,this.form.startAreaId.length - 4) === '00000000') {
|
||||
return this.$toast('出发地必须选至县级及以下')
|
||||
return this.$u.toast('出发地必须选至县级及以下')
|
||||
}
|
||||
if(!this.form.arriveTime) {
|
||||
return this.$u.toast('请选择抵平时间')
|
||||
|
||||
Reference in New Issue
Block a user