From 8c75886b87ac5d1b8fe67391a4c73cc3e875f20e Mon Sep 17 00:00:00 2001 From: 77 <270260644@qq.com> Date: Wed, 6 Nov 2024 11:20:48 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E6=B7=BB=E5=8A=A0=E4=BB=98=E8=B4=B9?= =?UTF-8?q?=E4=BC=9A=E5=91=98=E4=BB=B7=E6=A0=BC=E6=98=BE=E7=A4=BA=E7=9A=84?= =?UTF-8?q?=E5=88=A4=E6=96=AD=E3=80=82=EF=BC=88=E7=95=99=E7=9D=80=E5=AD=98?= =?UTF-8?q?=E6=A1=A3=EF=BC=8C=E5=90=8E=E7=AB=AF=E4=BB=A3=E7=A0=81=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E8=AE=BE=E8=AE=A1=E5=A5=BD=E5=BE=85=E5=AF=B9=E6=8E=A5?= =?UTF-8?q?=E5=AE=8C=E3=80=82=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/goods/index.vue | 7 +++- .../s-goods-column/s-goods-column.vue | 38 ++++++++++++++----- .../components/s-select-sku/s-select-sku.vue | 7 +++- 3 files changed, 38 insertions(+), 14 deletions(-) diff --git a/pages/goods/index.vue b/pages/goods/index.vue index 23946f6..30f9949 100644 --- a/pages/goods/index.vue +++ b/pages/goods/index.vue @@ -32,9 +32,12 @@ - - {{ fen2yuan(state.selectedSku.price || state.goodsInfo.price) }} + + {{ fen2yuan(state.goodsInfo.paidMemberPrice) }} + + {{ fen2yuan(state.selectedSku.price || state.goodsInfo.price) }} + {{ fen2yuan(state.selectedSku.marketPrice || state.goodsInfo.marketPrice) }} diff --git a/sheep/components/s-goods-column/s-goods-column.vue b/sheep/components/s-goods-column/s-goods-column.vue index 2d86ee4..58b531c 100644 --- a/sheep/components/s-goods-column/s-goods-column.vue +++ b/sheep/components/s-goods-column/s-goods-column.vue @@ -35,9 +35,12 @@ @@ -137,9 +140,12 @@ @@ -218,16 +224,19 @@ + (goodsFields.original_price?.show || goodsFields.marketPrice?.show) && + (data.original_price > 0 || data.marketPrice > 0) + " class="goods-origin-price ss-m-t-16 font-OPPOSANS ss-flex" :style="[{ color: originPriceColor }]"> {{ priceUnit }} {{ fen2yuan(data.marketPrice) }} @@ -292,10 +301,19 @@ diff --git a/sheep/components/s-select-sku/s-select-sku.vue b/sheep/components/s-select-sku/s-select-sku.vue index 4278720..90961db 100644 --- a/sheep/components/s-select-sku/s-select-sku.vue +++ b/sheep/components/s-select-sku/s-select-sku.vue @@ -15,9 +15,12 @@ {{ goodsInfo.name }} - - {{ fen2yuan(state.selectedSku.price || goodsInfo.price) }} + + {{ fen2yuan(goodsInfo.paidMemberPrice) }} + + {{ fen2yuan(state.selectedSku.price || goodsInfo.price) }} + {{ formatStock('exact', state.selectedSku.stock || goodsInfo.stock) }}