From ad7d404482eb9528947cb19236c16b68d41d1dea Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=B5=B5=E6=AF=85?= <1335909236@qq.com>
Date: Wed, 17 Sep 2025 16:29:04 +0800
Subject: [PATCH] 11
---
packages/shop/groupPurchaseSubmit/index.vue | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/packages/shop/groupPurchaseSubmit/index.vue b/packages/shop/groupPurchaseSubmit/index.vue
index 22b66529..cc193917 100644
--- a/packages/shop/groupPurchaseSubmit/index.vue
+++ b/packages/shop/groupPurchaseSubmit/index.vue
@@ -43,7 +43,7 @@
¥{{ item.commodity_goods_info.sales_price }}/{{
item.commodity_goods_info.goods_unit
- }}
+ }}
运费 ¥{{
item.commodity_goods_info.freight }}
@@ -233,7 +233,7 @@
已支付成功
- {{verifyCode}}
+ {{ verifyCode }}
@@ -428,7 +428,7 @@ export default {
const currentTime = new Date().getTime();
const startTime = new Date(item.commodity_goods_info.group_buy_activity_info?.start_time).getTime();
const endTime = new Date(item.commodity_goods_info.group_buy_activity_info?.end_time).getTime();
-
+
if (item.count >= item.commodity_goods_info.stock_quantity) {
uni.showToast({
title: '库存不足',
@@ -436,7 +436,7 @@ export default {
});
return
}
-
+
if (currentTime >= startTime && currentTime <= endTime) {
if (item.count == 0) {
item.count += item.commodity_goods_info.min_order_quantity
@@ -540,7 +540,7 @@ export default {
// 团购活动时间判断
const currentTime = new Date().getTime();
let isGroupBuyValid = true;
-
+
// 检查所有商品是否在团购活动时间内
for (let supplierId in this.supplierGroups) {
const group = this.supplierGroups[supplierId];
@@ -551,7 +551,7 @@ export default {
isGroupBuyValid = false;
break;
}
-
+
const startTime = new Date(activityInfo.start_time).getTime();
const endTime = new Date(activityInfo.end_time).getTime();
if (!(currentTime >= startTime && currentTime <= endTime)) {
@@ -620,8 +620,8 @@ export default {
group_buy_activity_id: firstItem.commodity_goods_info.group_buy_activity_id,
goods_and_count: group.map(item => {
const activityInfo = item.commodity_goods_info.group_buy_activity_info;
- const isGroupBuy = activityInfo &&
- currentTime >= new Date(activityInfo.start_time).getTime() &&
+ const isGroupBuy = activityInfo &&
+ currentTime >= new Date(activityInfo.start_time).getTime() &&
currentTime <= new Date(activityInfo.end_time).getTime();
return {
goods_id: item.goods_id,
@@ -646,7 +646,7 @@ export default {
})
}
},
-
+
// 处理mergePreorder接口的响应
handleMergePreorderResponse(res, orderId) {
if (res && res.timeStamp && res.nonceStr && res.package && res.signType && res.paySign) {
@@ -685,7 +685,6 @@ export default {
icon: 'none'
})
}
- }
},
// 复制收货地址
copyAddress() {