From 9af662551498db6f3c13d4cfa296da144e344513 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Sat, 3 Oct 2026 17:31:00 +0800 Subject: [PATCH] =?UTF-8?q?docs(=E5=85=85=E7=82=B9=E5=BC=B9=E7=AA=97):=20?= =?UTF-8?q?=E8=AF=B4=E6=98=8E=E9=BB=98=E8=AE=A4=E9=A2=84=E9=80=89=E7=AC=AC?= =?UTF-8?q?=203=20=E6=A1=A3=E7=9A=84=E5=8E=9F=E5=9B=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 为点卡默认选中索引 2 的取值补上中文注释,说明其只影响默认选中项、不改变计费。 --- .../src/components/PlatformProfileRechargeModal/index.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/shared/src/components/PlatformProfileRechargeModal/index.tsx b/packages/shared/src/components/PlatformProfileRechargeModal/index.tsx index e8f9aff71..1055a12fc 100644 --- a/packages/shared/src/components/PlatformProfileRechargeModal/index.tsx +++ b/packages/shared/src/components/PlatformProfileRechargeModal/index.tsx @@ -1321,8 +1321,10 @@ export function PlatformProfileRechargeModal({ if (pointProducts.length === 0) { return null; } - const fallbackProduct = - pointProducts[Math.min(2, pointProducts.length - 1)]; + // 中文注释:默认预选第 3 档(索引 2,不足时退回末档),让首屏落在价格居中的档位; + // 充点商品目前同价(¥1 = 10 泥点),这里只影响默认选中项,不改变计费。 + const defaultProductIndex = Math.min(2, pointProducts.length - 1); + const fallbackProduct = pointProducts[defaultProductIndex]; return fallbackProduct ? fallbackProduct.productId : null; }); }, [pointProducts]);