diff --git a/src/pages/common/groupbuy/detail.vue b/src/pages/common/groupbuy/detail.vue
index 94f8f88..88cfd7c 100644
--- a/src/pages/common/groupbuy/detail.vue
+++ b/src/pages/common/groupbuy/detail.vue
@@ -19,7 +19,7 @@
{{ groupBuyBean?.payPrice || 0 }}
¥{{ groupBuyBean?.price || 0 }}
-
+
{{ countdownTime?.days || 0 }}天
{{ countdownTime?.hours || '00' }}
:
@@ -29,6 +29,11 @@
距离活动结束仅剩
+
+
+ {{ isNotStated() ? '未开始' : '已结束' }}
+
+
@@ -38,7 +43,7 @@
- {{ groupBuyBean?.name }}
+ {{ groupBuyBean?.name || '未知' }}
@@ -55,14 +60,14 @@
-
+
浏览此商品的客户还浏览了
-
- {{ item.goodsName }}
+
+ {{ item.goodsName || '未知' }}
{{ item.price }}
@@ -122,7 +127,10 @@
- 跟团购买
+
+
@@ -181,6 +189,19 @@ onUnload(() => {
}
});
+const isNotStated = () => {
+ return dayjs(groupBuyBean.value?.startDate).isAfter(Date.now());
+};
+
+const isPending = () => {
+ return dayjs(groupBuyBean.value?.startDate).isBefore(Date.now()) && dayjs(groupBuyBean.value?.endDate).isAfter(Date.now());
+ ;
+};
+
+const isEnded = () => {
+ return dayjs(groupBuyBean.value?.endDate).isBefore(Date.now());
+};
+
const getStockColorCount = computed(() => {
const list = Array.from(new Set(groupBuyBean.value?.goods?.stocks?.map(item => item.colorName)))
.map(colorName => groupBuyBean.value?.goods?.stocks?.find(item => item.colorName === colorName)!);
@@ -194,7 +215,7 @@ const fetchRecommendList = async () => {
pageSize: 20,
bean: {
keyword: '',
- typeIds: ['1724629185362591745']
+ typeIds: []
}
}
});
@@ -550,6 +571,13 @@ const placeOrder = async () => {
background: #F32B2B;
color: #FFFFFF;
border-radius: 40rpx;
+ border: none;
+ }
+
+ .place-order-button-disable {
+ @extend .place-order-button;
+ background: #b9b5b5;
+ color: #FFFFFF;
}
}
diff --git a/src/pages/common/groupbuy/index.vue b/src/pages/common/groupbuy/index.vue
index e2f98a5..90b66b9 100644
--- a/src/pages/common/groupbuy/index.vue
+++ b/src/pages/common/groupbuy/index.vue
@@ -19,7 +19,7 @@
直降¥{{ (item.price - item.payPrice).toFixed(2) }}
- 即将恢复
+ {{ tabIndex == 0 ? '即将恢复' : '即将开始'}}
{{ item.payPrice }}
diff --git a/src/pages/home/subs/group/join.vue b/src/pages/home/subs/group/join.vue
index 0d24cd0..7e75338 100644
--- a/src/pages/home/subs/group/join.vue
+++ b/src/pages/home/subs/group/join.vue
@@ -6,7 +6,7 @@
1.长按识别下方二维码,添加【店铺福利群】
-
+
2.识别【店铺福利群】发您的二维码,即可入群
diff --git a/src/pages/mall/subs/goods/detail.vue b/src/pages/mall/subs/goods/detail.vue
index 0dd90f8..5375afe 100644
--- a/src/pages/mall/subs/goods/detail.vue
+++ b/src/pages/mall/subs/goods/detail.vue
@@ -26,7 +26,7 @@
{{ goodsBean?.name }}
-
+
@@ -56,8 +56,8 @@
{{ item.goodsName || '未知' }}
- {{ (item.price * ((userInfo.levelEntity.discount || 100) / 100)).toFixed(2) }}
- {{ (item.price * ((userInfo.levelEntity?.discount || 100) / 100)).toFixed(2) }}
+ {{ item.price }}
@@ -175,7 +175,6 @@ const addShoppingCart = () => {
const placeOrder = () => {
showSkuDialog((e: GoodsBean) => {
- console.log(e);
const orderBean = {
totalPrice: (e.consumePrice * e.checkedStock.count).toFixed(2),
orderGoods: [e]
@@ -264,6 +263,8 @@ const placeOrder = () => {
}
.share-button {
+ display: flex;
+ flex-direction: column;
align-items: center;
image {
diff --git a/src/pages/mine/index.vue b/src/pages/mine/index.vue
index 275bbc8..abf7730 100644
--- a/src/pages/mine/index.vue
+++ b/src/pages/mine/index.vue
@@ -45,7 +45,7 @@
{{ item.title }}
- {{ userInfo?.orderNum }}
+ {{ unPaidOrderCount }}
@@ -67,6 +67,8 @@