From df4305edf155f6c78bc6c0daa9b333917db6cc18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Tue, 14 Jul 2026 03:08:59 +0800 Subject: [PATCH] =?UTF-8?q?fix(shop):=20=E4=BF=AE=E5=A4=8D=E5=95=86?= =?UTF-8?q?=E5=93=81=E8=AF=A6=E6=83=85=E9=A1=B5=E5=AD=A4=E7=AB=8B=E2=80=9C?= =?UTF-8?q?0=E2=80=9D=E6=B8=B2=E6=9F=93=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修正赚取积分、重量和销量条件渲染,避免数字0被渲染成文本节点 - 赚取积分判断改为仅判断数值是否大于0,防止0泄漏 - 重量同样改为判断数值大于0避免显示无效数据 - 销量为0时隐藏销量信息,符合用户需求 - 调整加购按钮尺寸,使其视觉更协调 --- src/pages/shop/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/shop/index.tsx b/src/pages/shop/index.tsx index c7666c7..5e331eb 100644 --- a/src/pages/shop/index.tsx +++ b/src/pages/shop/index.tsx @@ -325,7 +325,7 @@ const ShopPage: React.FC = () => { {/* 加购按钮 */} handleAddToCart(e, item)} > +