feat(subscription): add VIP renewal price notice

This commit is contained in:
2026-07-15 11:50:44 +08:00
parent a7c1574e58
commit 3f3d1a0203
4 changed files with 42 additions and 1 deletions
@@ -12,6 +12,7 @@ export interface FirstRechargeOfferView {
badgeText: string;
title: string;
subtitle: string;
renewalNotice: string | null;
}
export function canChooseSubscriptionPayChannel(
@@ -159,6 +160,7 @@ export function getDefaultSubscriptionPlanId(input: {
export function getFirstRechargeOfferView(input: {
isFirstRecharge: boolean;
subscriptionType: SubscriptionType;
vipPlans: readonly VipOfferPlanView[];
coinPlans: readonly CoinsOfferPlanView[];
}): FirstRechargeOfferView | null {
@@ -176,5 +178,9 @@ export function getFirstRechargeOfferView(input: {
title: "First Recharge Offer",
subtitle:
"Your first recharge price is already applied. No code needed.",
renewalNotice:
input.subscriptionType === "vip"
? "First month 50% off. Renews at the regular price from the second month."
: null,
};
}