From addb9f0e7586e5bd8904f3a833c89ba2ca2cbb65 Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Wed, 24 Dec 2025 09:21:14 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E5=88=86=E6=98=BE=E7=A4=BA=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E8=B0=83=E6=95=B4=EF=BC=8C=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=EF=BC=8C=E5=A2=9E=E5=8A=A0=E8=B4=AD=E7=89=A9=E8=BD=A6?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E5=92=8C=E5=95=86=E5=93=81=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E6=9C=AA=E6=89=BE=E5=88=B0=E5=AF=B9=E5=BA=94=E5=95=86?= =?UTF-8?q?=E5=93=81=E5=8F=91=E9=80=81=E5=88=A0=E9=99=A4=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- groupBuying/detail/index.vue | 3 + lib/goods.ts | 3 - pages/order/components/orderInfo.vue | 72 +++-- pages/order/components/orderInfoAfter.vue | 73 ++--- pages/order/index.vue | 2 +- pages/product/index.vue | 328 ++++++++++++---------- scoreShop/detail/index.vue | 2 +- scoreShop/success/index.vue | 1 + stores/carts.js | 35 +-- userPackage/goodsDetail/goodsDetail.vue | 2 +- userPackage/order/detail.vue | 18 +- utils/share.js | 17 +- 12 files changed, 319 insertions(+), 237 deletions(-) diff --git a/groupBuying/detail/index.vue b/groupBuying/detail/index.vue index caed4ff..acc7fe5 100644 --- a/groupBuying/detail/index.vue +++ b/groupBuying/detail/index.vue @@ -347,6 +347,9 @@ console.log(opt) Object.assign(query, opt) console.log(query) + if(query.shopId){ + uni.cache.set('shopId', query.shopId) + } await storelogin.actionslogin() getDetail() } diff --git a/lib/goods.ts b/lib/goods.ts index 2ffb7cc..12385ca 100644 --- a/lib/goods.ts +++ b/lib/goods.ts @@ -977,9 +977,6 @@ function calcVipDiscountAmount( shopUserInfo : ShopUserInfo ) : number { if (!shopUserInfo.isVip || shopUserInfo.discount === 0) return 0; - if (shopUserInfo.isVip == 1 && shopUserInfo.isMemberPrice != 1) { - return 0; - } return truncateToTwoDecimals( new BigNumber(goodsRealAmount) .times((100 - (shopUserInfo.discount || 100)) / 100) diff --git a/pages/order/components/orderInfo.vue b/pages/order/components/orderInfo.vue index 511f6b8..32dedf6 100644 --- a/pages/order/components/orderInfo.vue +++ b/pages/order/components/orderInfo.vue @@ -41,11 +41,28 @@ :limitDiscount="cartStore.limitTimeDiscount" > --> + 总计 @@ -55,11 +72,11 @@ - - 总计 + + 实付 - {{ cartStore.orderCostSummary.goodsRealAmount }} + {{ listinfo.payAmount }} @@ -68,24 +85,27 @@ {{listinfo.payAmount||''}} --> - - 打包费 - - - - {{ cartStore.orderCostSummary.packFee }} + + + - + - - + + {{ listinfo.tableName || '' }} - + - + @@ -104,27 +104,8 @@ - - 打包费 - - - - {{listinfo.packFeess}} - - - - - 餐位费 - - X{{listinfo.Seatcharge}} - - {{listinfo.Seatcharge}} - - - + + 打包费 + + + + {{listinfo.packFeess}} + + + + + + + 餐位费 + + X{{listinfo.Seatcharge}} + + {{listinfo.Seatcharge}} + + 总计 @@ -197,6 +198,8 @@ {{listinfo.payAmount}} + + @@ -222,7 +225,7 @@ 新客立减 -{{listinfo.newCustomerDiscountAmount}} - + 会员折扣 -{{listinfo.vipDiscountAmount}} @@ -407,7 +410,7 @@ const showDiscount = computed(() => { const keys = ['productCouponDiscountAmount', 'otherCouponDiscountAmount', - 'pointsDiscountAmount', 'discountActAmount', 'newCustomerDiscountAmount','vipDiscountAmount' + 'pointsDiscountAmount', 'discountActAmount', 'newCustomerDiscountAmount', 'vipDiscountAmount' ] if (isObjHasPropertyAndNotNull(props.listinfo, keys)) { return true @@ -567,7 +570,7 @@ height: 100%; border-radius: 18rpx; padding-bottom: 32rpx; - + .tabBox { width: 100%; margin-top: 52rpx; @@ -1133,31 +1136,37 @@ } } - .disocunt{ + + .disocunt { background: #FFFFFF; - border-radius: 18rpx 18rpx 18rpx 18rpx;overflow: hidden; + border-radius: 18rpx 18rpx 18rpx 18rpx; + overflow: hidden; margin-top: 32rpx; - .row{ + + .row { padding: 16rpx 24rpx; display: flex; justify-content: space-between; + .t { font-weight: bold; font-size: 28rpx; color: #333333; flex-shrink: 0; } - + .info { font-weight: 400; font-size: 28rpx; color: #666666; } } + .price { color: #FF1C1C; } } + .orderInfo { background: #FFFFFF; border-radius: 18rpx 18rpx 18rpx 18rpx; @@ -1236,6 +1245,4 @@ } } } - - \ No newline at end of file diff --git a/pages/order/index.vue b/pages/order/index.vue index 6972cb1..a207d9d 100644 --- a/pages/order/index.vue +++ b/pages/order/index.vue @@ -88,7 +88,7 @@ 去付款 - 再来一单 + 再来一单 diff --git a/pages/product/index.vue b/pages/product/index.vue index 68f2858..3221308 100644 --- a/pages/product/index.vue +++ b/pages/product/index.vue @@ -58,7 +58,8 @@ 限时折扣{{ limitDiscountCountdown }} - + 仅剩{{item.stockNumber}}份 @@ -208,7 +209,8 @@ - + 仅剩{{item1.stockNumber}}份 @@ -575,46 +577,62 @@