diff --git a/src/pages/order/create.vue b/src/pages/order/create.vue index d742960..2defc57 100644 --- a/src/pages/order/create.vue +++ b/src/pages/order/create.vue @@ -172,17 +172,16 @@ export default { * 下单支付 */ pay() { - if (!this.isAgree) { - uni.showToast({ - title: "请先阅读并同意《服务协议》《隐私政策》", - icon: "none", - }); - return; + if (!this.addressId) { + return this.$utils.toast("请选择地址"); } if (!this.date || !this.time) { return this.$utils.toast("请选择时间和日期"); } let datetime = this.date + " " + this.time; + if (!this.isAgree) { + return this.$utils.toast("请先阅读并同意《服务协议》《隐私政策》"); + } this.$models.order .createOrder({ ids: this.orderData, diff --git a/src/pages/service/other/distribution.vue b/src/pages/service/other/distribution.vue index 0a0dfd0..05d40f3 100644 --- a/src/pages/service/other/distribution.vue +++ b/src/pages/service/other/distribution.vue @@ -201,6 +201,9 @@ export default { * 提交订单 */ submit() { + if (!this.pickupAddressId || !this.unloadAddressId) { + return this.$utils.toast("请选择地址"); + } if (!this.date || !this.time) { return this.$utils.toast("请选择时间和日期"); }