From 8a6ec1cb02a487d1f2b318fb6f77d7c809c2fa7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A2=E8=B6=8A?= <552369664@qq.com> Date: Sun, 18 Aug 2024 08:50:54 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E3=80=90=E5=8A=9F=E8=83=BD=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E3=80=91=E4=BF=AE=E5=A4=8D=E6=8B=BC=E5=9B=A2=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E9=A1=B5=E7=9A=84=E4=BB=B7=E6=A0=BC=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/goods/groupon.vue | 9 +++++---- .../s-select-groupon-sku/s-select-groupon-sku.vue | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/pages/goods/groupon.vue b/pages/goods/groupon.vue index 3f464ed9..ae4ea0d6 100644 --- a/pages/goods/groupon.vue +++ b/pages/goods/groupon.vue @@ -80,7 +80,7 @@ - + @@ -90,6 +90,7 @@ {{ - fen2yuan(state.activity.price || state.goodsInfo.price) + fen2yuan(state.selectedSku.price * state.selectedSku.count || state.activity.price * state.selectedSku.count || state.goodsInfo.price * state.selectedSku.count || state.goodsInfo.price) }} 未开始 已结束 @@ -168,7 +169,7 @@ goodsInfo: {}, // 商品信息 goodsSwiper: [], // 商品轮播图 showSelectSku: false, // 显示规格弹框 - selectedSkuPrice: {}, // 选中的规格价格 + selectedSku: {}, // 选中的规格价格 activity: {}, // 团购活动 grouponId: 0, // 团购ID grouponNum: 0, // 团购人数 @@ -183,7 +184,7 @@ // 规格变更 function onSkuChange(e) { - state.selectedSkuPrice = e; + state.selectedSku = e; } function onSkuClose() { diff --git a/sheep/components/s-select-groupon-sku/s-select-groupon-sku.vue b/sheep/components/s-select-groupon-sku/s-select-groupon-sku.vue index e2a2950d..6259a088 100644 --- a/sheep/components/s-select-groupon-sku/s-select-groupon-sku.vue +++ b/sheep/components/s-select-groupon-sku/s-select-groupon-sku.vue @@ -22,7 +22,7 @@ - {{ fen2yuan(goodsInfo.price) }} + {{ fen2yuan(state.selectedSku.price || goodsInfo.price || state.selectedSku.marketPrice) }} 库存{{ state.selectedSku.stock || goodsInfo.stock }}件 @@ -63,7 +63,7 @@ {{ grouponNum + '人团' }} -- Gitee From 47f42953161806d01614c59e0cc4349f6dd874fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A2=E8=B6=8A?= <552369664@qq.com> Date: Sun, 18 Aug 2024 09:10:40 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E3=80=90=E5=8A=9F=E8=83=BD=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E3=80=91=E4=BF=AE=E5=A4=8D=E6=8B=BC=E5=9B=A2=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E9=A1=B5=E7=9A=84=E4=BB=B7=E6=A0=BC=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/goods/groupon.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/goods/groupon.vue b/pages/goods/groupon.vue index ae4ea0d6..ae333cfb 100644 --- a/pages/goods/groupon.vue +++ b/pages/goods/groupon.vue @@ -169,7 +169,7 @@ goodsInfo: {}, // 商品信息 goodsSwiper: [], // 商品轮播图 showSelectSku: false, // 显示规格弹框 - selectedSku: {}, // 选中的规格价格 + selectedSku: {}, // 选中的规格属性 activity: {}, // 团购活动 grouponId: 0, // 团购ID grouponNum: 0, // 团购人数 -- Gitee From ef3a82ee146cd198ed0172ee5b66b2e7d07bdb3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A2=E8=B6=8A?= <552369664@qq.com> Date: Sun, 18 Aug 2024 12:30:04 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E3=80=90=E7=95=8C=E9=9D=A2=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E3=80=91=E4=BC=98=E5=8C=96=E8=A3=85=E4=BF=AE=E6=8B=BC?= =?UTF-8?q?=E5=9B=A2=E5=8D=95=E5=88=97=E5=95=86=E5=93=81=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../s-groupon-block/s-groupon-block.vue | 83 ++++++++++++------- 1 file changed, 52 insertions(+), 31 deletions(-) diff --git a/sheep/components/s-groupon-block/s-groupon-block.vue b/sheep/components/s-groupon-block/s-groupon-block.vue index 67da2e15..d7e6fcf5 100644 --- a/sheep/components/s-groupon-block/s-groupon-block.vue +++ b/sheep/components/s-groupon-block/s-groupon-block.vue @@ -1,37 +1,38 @@