From 987e82605bb36b05d2b6cd68c52f561933e3e5fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Sun, 4 Oct 2026 10:31:20 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=9E=84(=E4=BC=9A=E5=91=98=E5=BC=B9?= =?UTF-8?q?=E5=B1=82)=EF=BC=9A=E6=A1=A3=E4=BD=8D=E5=8D=A1=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E6=96=87=E6=A1=88=E5=8E=BB=E6=8E=89=E5=B5=8C=E5=A5=97?= =?UTF-8?q?=E4=B8=89=E5=85=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 用 if/else 预计算 actionButtonLabel,明确 禁用/提交中/默认 的优先级 --- .../components/PlatformProfileRechargeModal/index.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/shared/src/components/PlatformProfileRechargeModal/index.tsx b/packages/shared/src/components/PlatformProfileRechargeModal/index.tsx index 1055a12fc..f62c4be0d 100644 --- a/packages/shared/src/components/PlatformProfileRechargeModal/index.tsx +++ b/packages/shared/src/components/PlatformProfileRechargeModal/index.tsx @@ -679,6 +679,13 @@ function PlatformMembershipPlanCard({ const savingCents = annual ? Math.max(0, plan.monthPriceCents * 12 - plan.yearPriceCents) : 0; + // 按钮文案优先级:不可购买时展示业务文案,其次「处理中」,最后默认「选择并确认」。 + let actionButtonLabel = '选择并确认'; + if (disabled) { + actionButtonLabel = actionLabel; + } else if (submitting) { + actionButtonLabel = '处理中'; + } return (
- {disabled ? actionLabel : submitting ? '处理中' : '选择并确认'} + {actionButtonLabel}
);