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"
> -->
+
+
+ 打包费
+
+
+ ¥
+ {{ cartStore.orderCostSummary.packFee }}
+
+
+
+ 餐位费
+
+ X{{ cartStore.seatFeeConfig.personCount }}
+ ¥
+ {{ cartStore.orderCostSummary.seatFee }}
+
+
+
总计
@@ -55,11 +72,11 @@
-
- 总计
+
+ 实付
¥
- {{ cartStore.orderCostSummary.goodsRealAmount }}
+ {{ listinfo.payAmount }}
@@ -68,24 +85,27 @@
{{listinfo.payAmount||''}}
-->
-
- 打包费
-
-
- ¥
- {{ cartStore.orderCostSummary.packFee }}
+
+
+ 打包费
+
+
+ ¥
+ {{ cartStore.orderCostSummary.packFee }}
+
-
-
-
- 餐位费
-
- X{{ cartStore.seatFeeConfig.personCount }}
- ¥
- {{ cartStore.orderCostSummary.seatFee }}
+
+ 餐位费
+
+ X{{ cartStore.seatFeeConfig.personCount }}
+ ¥
+ {{ cartStore.orderCostSummary.seatFee }}
+
-
+
+
+
-
+
-
-
+
+
{{ 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 @@