From bc9290e13c04467649117130c39ee16f5e4373b5 Mon Sep 17 00:00:00 2001 From: ghusermoon <2673031505@qq.com> Date: Wed, 2 Sep 2020 15:32:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=87=AA=E6=8F=90bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pageC/cart/ConfirmOrder.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pageC/cart/ConfirmOrder.vue b/pageC/cart/ConfirmOrder.vue index f361dd4..7b1f129 100644 --- a/pageC/cart/ConfirmOrder.vue +++ b/pageC/cart/ConfirmOrder.vue @@ -392,8 +392,10 @@ export default { async setDelivery(index) { // console.log(index); if(index == 1) { - if(!this.isTakeawayer) this.$u.toast('此地区不支持骑手配送'); - return false; + if(!this.isTakeawayer) { + this.$u.toast('此地区不支持骑手配送'); + return false; + } this.delivery = this.deliveryList[index]; this.getFreight(); } @@ -404,7 +406,6 @@ export default { this.freight[key] = '0.00'; } } - this.isTakeawayer = false; this.setTotalPrice(); // 计算总价 this.delivery = this.deliveryList[index]; } else {