From 3754cc2f7d28495a26f808d0970df013b8837272 Mon Sep 17 00:00:00 2001 From: wangfukang <15630117759@163.com> Date: Wed, 15 Apr 2026 13:49:05 +0800 Subject: [PATCH] 1 --- package1/address/addressList.vue | 1 + package1/buyFood/buyFood.vue | 3 ++- package1/group/groupBuySingle.vue | 4 ++-- package1/order/orderDetail.vue | 14 +++++++++++--- package1/runErrand/runErrand.vue | 10 +++++++--- 5 files changed, 23 insertions(+), 9 deletions(-) diff --git a/package1/address/addressList.vue b/package1/address/addressList.vue index 89fa728..2d4fb33 100644 --- a/package1/address/addressList.vue +++ b/package1/address/addressList.vue @@ -144,6 +144,7 @@ let that = this; that.tui.request("/app/shopArea/getByParentId/"+JSON.parse(uni.getStorageSync('area')).id, "GET", {}, false, true).then((res) => { if (res.code == 200 && res.result) { + that.$emit('shopAreaList',res.result) that.areaList = res.result; that.areaTitleList = res.result.map(item => item.title); } diff --git a/package1/buyFood/buyFood.vue b/package1/buyFood/buyFood.vue index 61e6395..4671df0 100644 --- a/package1/buyFood/buyFood.vue +++ b/package1/buyFood/buyFood.vue @@ -565,7 +565,7 @@ if (this.selectedCoupon) { total -= parseFloat(this.selectedCoupon.discountAmount); } - return total > 0 ? total : 0; + return total > 0 ? total : 0.01; }, preDiscountTotal() { if(this.isPaotui==true){ @@ -585,6 +585,7 @@ onShow() { this.menuButtonInfo = uni.getMenuButtonBoundingClientRect() this.initAddress() + //this.fetchCoupons(); const now = new Date(); const startTime = new Date(now); const endTime = new Date(now); diff --git a/package1/group/groupBuySingle.vue b/package1/group/groupBuySingle.vue index 1fcb19c..08dd90a 100644 --- a/package1/group/groupBuySingle.vue +++ b/package1/group/groupBuySingle.vue @@ -114,7 +114,7 @@ - 月售 100+ + 销量 {{item.tailWarn}} @@ -688,7 +688,7 @@ }, onShow() { this.menuButtonInfo = uni.getMenuButtonBoundingClientRect(); - //this.fetchCoupons(); + this.fetchCoupons(); // 计算导航栏高度用于sticky offset:statusBarHeight + 40px内容区 const info = uni.getSystemInfoSync(); this.navBarHeight = info.statusBarHeight + 40; diff --git a/package1/order/orderDetail.vue b/package1/order/orderDetail.vue index 3cfb2f8..ddf9ba2 100644 --- a/package1/order/orderDetail.vue +++ b/package1/order/orderDetail.vue @@ -312,12 +312,12 @@ ¥{{orderDetail.deliveryFee}} - + 优惠券 - -¥1 + -¥{{orderDetail.userCouponNum}} @@ -560,7 +560,9 @@ peisongTime:'', orderId:'', payData:{}, - orderDetail:{}, + orderDetail:{ + userCouponNum:0 + }, codeImg:'https://jewel-shop.oss-cn-beijing.aliyuncs.com/3a4e68eb14d7417cbb4f15fa85907c64.jpg', additionalFee: '', addFeeTradeNo: '' @@ -855,6 +857,12 @@ that.pintuan = true; } } + that.orderDetail.userCouponNum = 0 + if(that.orderDetail.userCoupon.length > 0){ + for(let i = 0;i - + @@ -423,7 +423,7 @@ if (this.selectedCoupon) { total = total - parseFloat(this.selectedCoupon.discountAmount); } - return total > 0 ? total : 0; + return total > 0 ? total : 0.01; } }, watch: { @@ -439,7 +439,7 @@ onShow() { this.menuButtonInfo = uni.getMenuButtonBoundingClientRect() this.initAddress() - + this.fetchCoupons() const now = new Date(); const startTime = new Date(now); const endTime = new Date(now); @@ -536,6 +536,10 @@ } this.$refs.bookPopup.close(); }, + updateArea(v){ + this.shopArea = v + this.kuaidiAreaList = v.filter(item => item.isCanteen === 2); + }, handleSyncAddress(address) { if (this.addressSelectMode === 'put') { this.formData.address = address;