From eb875e12d18c631e5ee0abcdc27656be49efef86 Mon Sep 17 00:00:00 2001 From: wangfukang <15630117759@163.com> Date: Thu, 13 Aug 2026 09:32:37 +0800 Subject: [PATCH] 1 --- package1/buyFood/buyFood.vue | 10 +++++++--- package1/order/orderDetail.vue | 9 +++++++++ package1/order/returnOrder.vue | 11 +++++++---- 3 files changed, 23 insertions(+), 7 deletions(-) diff --git a/package1/buyFood/buyFood.vue b/package1/buyFood/buyFood.vue index 3053344..d88b7de 100644 --- a/package1/buyFood/buyFood.vue +++ b/package1/buyFood/buyFood.vue @@ -2,7 +2,7 @@ - + @@ -28,7 +28,7 @@ 同校热拼 --> - + { setTimeout(() => { @@ -884,10 +886,12 @@ }, closeCommissionPopup() { this.commissionInputFocus = false; + this.commissionPopupVisible = false; uni.hideKeyboard(); this.$refs.commissionPopup.close(); }, onCommissionPopupChange(e) { + this.commissionPopupVisible = e.show; if (!e.show) { this.commissionInputFocus = false; uni.hideKeyboard(); @@ -1628,7 +1632,7 @@ height: 100%; background: rgba(0, 0, 0, 0.45); z-index: 20; - pointer-events: none; + pointer-events: auto; } .checkout-fixed-header--store { diff --git a/package1/order/orderDetail.vue b/package1/order/orderDetail.vue index 72b7309..78e51b6 100644 --- a/package1/order/orderDetail.vue +++ b/package1/order/orderDetail.vue @@ -510,6 +510,15 @@ 快递/跑腿 + + + 用餐方式 + + + {{orderDetail.isPack == 1 ? '打包' : '堂食'}} + + diff --git a/package1/order/returnOrder.vue b/package1/order/returnOrder.vue index c5a91b2..e3a1a46 100644 --- a/package1/order/returnOrder.vue +++ b/package1/order/returnOrder.vue @@ -57,7 +57,7 @@ + v-if="shouldIncludePackageFee() && orderDetail.packageFee != null && orderDetail.packageFee > 0"> 打包费 @@ -465,6 +465,9 @@ let num = Number(value) return isNaN(num) ? 0 : num }, + shouldIncludePackageFee() { + return this.orderDetail.deliveryType == 1 || this.orderDetail.isPack == 1 + }, getCouponAmount() { if (this.toAmount(this.orderDetail.userCouponNum) > 0) { return this.toAmount(this.orderDetail.userCouponNum) @@ -586,7 +589,7 @@ this.returnData.shopId = this.orderDetail.shopId this.returnData.totalAmount = this.orderDetail.totalAmount this.returnData.goodsAmount = this.orderDetail.goodsAmount - this.returnData.packageFee = this.orderDetail.packageFee + this.returnData.packageFee = this.shouldIncludePackageFee() ? this.orderDetail.packageFee : 0 if (this.orderDetail.deliveryInfo) { this.returnData.workerId = this.orderDetail.deliveryInfo.workerId this.returnData.deliveryFee = this.orderDetail.deliveryFee @@ -658,7 +661,7 @@ if ((this.orderDetail.goodsList[index].returnCount + 1) <= this.orderDetail.goodsList[index] .quantity) { this.orderDetail.goodsList[index].returnCount += 1 - if (this.orderDetail.deliveryType == 1 || this.orderDetail.isPack == 1) { + if (this.shouldIncludePackageFee()) { if(this.orderDetail.packageFee > 0){ this.returnData.refundAmount += Number((this.toAmount(this.orderDetail.goodsList[index].price) + this .toAmount(this.orderDetail.goodsList[index].packageFee)).toFixed(2)) @@ -674,7 +677,7 @@ } } else { if (this.orderDetail.goodsList[index].returnCount > 0) { - if (this.orderDetail.deliveryType == 1 || this.orderDetail.isPack == 1) { + if (this.shouldIncludePackageFee()) { if(this.orderDetail.packageFee > 0){ this.returnData.refundAmount -= Number((this.toAmount(this.orderDetail.goodsList[index].price) + this .toAmount(this.orderDetail.goodsList[index].packageFee)).toFixed(2))