From 8626fe71ba576dc477b89f48e8720c38f5242b69 Mon Sep 17 00:00:00 2001 From: czm <2192718639@qq.com> Date: Wed, 11 Jan 2023 19:48:51 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(=E3=80=90ID1001061=E3=80=91?= =?UTF-8?q?=20=E3=80=90=E8=B4=AD=E7=89=A9=E8=BD=A6=E3=80=91-=E5=AE=A2?= =?UTF-8?q?=E6=88=B7=E4=BB=B7=E6=A0=BC=E5=B0=8F=E4=BA=8E=E6=88=96=E7=AD=89?= =?UTF-8?q?=E4=BA=8E=E6=A0=87=E5=87=86=E6=8A=A5=E4=BB=B7=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E5=8F=AA=E6=98=BE=E7=A4=BA=E5=AE=A2=E6=88=B7=E4=BB=B7=E6=A0=BC?= =?UTF-8?q?):?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/shopCar/components/productItem/index.tsx | 2 +- src/pages/shopCar/components/recommendProductItem/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/shopCar/components/productItem/index.tsx b/src/pages/shopCar/components/productItem/index.tsx index bc2faf5..e0f0fc3 100644 --- a/src/pages/shopCar/components/productItem/index.tsx +++ b/src/pages/shopCar/components/productItem/index.tsx @@ -85,7 +85,7 @@ const Index = memo((props: IndexItemType) => { {colorItem.product_color_code + colorItem.product_color_name} - {(colorItem.standard_price > colorItem.sale_price) && ¥{formatPriceDiv(colorItem.sale_price)}} + {colorItem.standard_price > colorItem.sale_price && `¥${formatPriceDiv(colorItem.sale_price)}`} ¥{formatPriceDiv(colorItem.standard_price)}/kg diff --git a/src/pages/shopCar/components/recommendProductItem/index.tsx b/src/pages/shopCar/components/recommendProductItem/index.tsx index c697ec5..fb42df1 100644 --- a/src/pages/shopCar/components/recommendProductItem/index.tsx +++ b/src/pages/shopCar/components/recommendProductItem/index.tsx @@ -82,7 +82,7 @@ const Index = memo((props: ProductType) => { {colorItem?.screw_color_code + colorItem?.screw_color_name} - ¥{formatPriceDiv(colorItem?.sale_price)} + {(colorItem?.standard_price > colorItem?.sale_price) && `¥${formatPriceDiv(colorItem?.sale_price)}`} ¥{formatPriceDiv(colorItem?.standard_price)}/kg