From a715a91a1991a2fbe577cef1941ad004780c0123 Mon Sep 17 00:00:00 2001 From: 77 <270260644@qq.com> Date: Wed, 6 Nov 2024 11:22:07 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E8=BF=98=E5=8E=9F=E4=B8=8A=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E7=89=88=E6=9C=AC=E5=AF=B9=E4=BB=98=E8=B4=B9=E4=BC=9A?= =?UTF-8?q?=E5=91=98=E6=98=BE=E7=A4=BA=E7=9A=84=E4=BF=AE=E6=94=B9=EF=BC=8C?= =?UTF-8?q?=E5=BE=85=E5=AF=B9=E6=8E=A5?= 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, 14 insertions(+), 38 deletions(-) diff --git a/pages/goods/index.vue b/pages/goods/index.vue index 30f9949..23946f6 100644 --- a/pages/goods/index.vue +++ b/pages/goods/index.vue @@ -32,12 +32,9 @@ - - {{ fen2yuan(state.goodsInfo.paidMemberPrice) }} + + {{ fen2yuan(state.selectedSku.price || state.goodsInfo.price) }} - - {{ 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 58b531c..2d86ee4 100644 --- a/sheep/components/s-goods-column/s-goods-column.vue +++ b/sheep/components/s-goods-column/s-goods-column.vue @@ -35,12 +35,9 @@ @@ -140,12 +137,9 @@ @@ -224,19 +218,16 @@ + (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) }} @@ -301,19 +292,10 @@ diff --git a/sheep/components/s-select-sku/s-select-sku.vue b/sheep/components/s-select-sku/s-select-sku.vue index 90961db..4278720 100644 --- a/sheep/components/s-select-sku/s-select-sku.vue +++ b/sheep/components/s-select-sku/s-select-sku.vue @@ -15,12 +15,9 @@ {{ goodsInfo.name }} - - {{ fen2yuan(goodsInfo.paidMemberPrice) }} + + {{ fen2yuan(state.selectedSku.price || goodsInfo.price) }} - - {{ fen2yuan(state.selectedSku.price || goodsInfo.price) }} - {{ formatStock('exact', state.selectedSku.stock || goodsInfo.stock) }}