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