From 46352a82257888fd491da21474c1ba83f1763268 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?TOP=E7=B3=AF=E7=B1=B3?= <1130395124@qq.com> Date: Wed, 5 Apr 2023 22:42:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=88=9B=E5=BB=BA=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E6=97=B6=E5=9C=B0=E5=9D=80=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/demand/demand.vue | 5 ++++- src/pages/order/create.vue | 5 ++++- src/pages/service/other/distribution.vue | 7 ++++--- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/pages/demand/demand.vue b/src/pages/demand/demand.vue index c33f12f..c65e916 100644 --- a/src/pages/demand/demand.vue +++ b/src/pages/demand/demand.vue @@ -455,9 +455,12 @@ export default { * 发布报价 */ submit() { - if (this.address.text == "" || this.address.detail == "" || this.address.name == "") { + if (this.address.text == "" || this.address.detail == "") { return this.$utils.toast("请完善地址信息"); } + if (this.address.name == "") { + return this.$utils.toast("请填写联系人"); + } if (!this.$test.mobile(this.address.mobile)) { return this.$utils.toast("请填写正确的手机号码"); } diff --git a/src/pages/order/create.vue b/src/pages/order/create.vue index 34e4a21..bb0777a 100644 --- a/src/pages/order/create.vue +++ b/src/pages/order/create.vue @@ -226,9 +226,12 @@ export default { * 下单支付 */ pay() { - if (this.address.text == "" || this.address.detail == "" || this.address.name == "") { + if (this.address.text == "" || this.address.detail == "") { return this.$utils.toast("请完善地址信息"); } + if (this.address.name == "") { + return this.$utils.toast("请填写联系人"); + } if (!this.$test.mobile(this.address.mobile)) { return this.$utils.toast("请填写正确的手机号码"); } diff --git a/src/pages/service/other/distribution.vue b/src/pages/service/other/distribution.vue index db8ec0d..19e482a 100644 --- a/src/pages/service/other/distribution.vue +++ b/src/pages/service/other/distribution.vue @@ -300,13 +300,14 @@ export default { if ( this.pickupAddress.text == "" || this.pickupAddress.detail == "" || - this.pickupAddress.name == "" || this.unloadAddress.text == "" || - this.unloadAddress.detail == "" || - this.unloadAddress.name == "" + this.unloadAddress.detail == "" ) { return this.$utils.toast("请完善地址信息"); } + if (this.pickupAddress.name == "" || this.unloadAddress.name == "") { + return this.$utils.toast("请填写联系人"); + } if (!this.$test.mobile(this.pickupAddress.mobile) || !this.$test.mobile(this.unloadAddress.mobile)) { return this.$utils.toast("请填写正确的手机号码"); }