Feat/陶泥儿会员订阅方案 #588
@@ -701,6 +701,9 @@ function PlatformMembershipPlanCard({
|
||||
const savingCents = annual
|
||||
? Math.max(0, plan.monthPriceCents * 12 - plan.yearPriceCents)
|
||||
: 0;
|
||||
const annualPriceLine = `年实付 ${formatRechargePrice(plan.yearPriceCents)}${
|
||||
savingCents > 0 ? ` · 省 ${formatRechargePrice(savingCents)}` : ''
|
||||
}`;
|
||||
// 按钮文案优先级:不可购买时展示业务文案,其次「处理中」,最后默认「选择并确认」。
|
||||
let actionButtonLabel = '选择并确认';
|
||||
if (disabled) {
|
||||
@@ -739,9 +742,7 @@ function PlatformMembershipPlanCard({
|
||||
</div>
|
||||
<div className="text-[10px] text-[var(--platform-text-soft)]">
|
||||
{annual
|
||||
? `年实付 ${formatRechargePrice(plan.yearPriceCents)}${
|
||||
savingCents > 0 ? ` · 省 ${formatRechargePrice(savingCents)}` : ''
|
||||
}`
|
||||
? annualPriceLine
|
||||
: `每次支付 ${formatRechargePrice(listPriceCents)},有效期 1 个月`}
|
||||
</div>
|
||||
<div className="rounded-[0.85rem] border border-[rgba(194,145,111,0.28)] bg-white/35 px-3 py-2">
|
||||
|
||||
Reference in New Issue
Block a user