style(subscription): polish offer sections

This commit is contained in:
2026-06-29 13:11:48 +08:00
parent 6e51cb7d16
commit b03083bacd
6 changed files with 44 additions and 40 deletions
@@ -80,11 +80,11 @@ function formatCoinCurrency(currency: string): string {
function vipOfferTitle(plan: PaymentPlan): string {
const key = `${plan.planId} ${plan.orderType} ${plan.planName}`.toLowerCase();
if (key.includes("year")) return "连续包年";
if (key.includes("quarter")) return "连续包季";
if (key.includes("month")) return "连续包月";
if (plan.vipDays !== null && plan.vipDays >= 300) return "连续包年";
if (plan.vipDays !== null && plan.vipDays >= 80) return "连续包季";
if (key.includes("year")) return "Annual";
if (key.includes("quarter")) return "Quarterly";
if (key.includes("month")) return "Monthly";
if (plan.vipDays !== null && plan.vipDays >= 300) return "Annual";
if (plan.vipDays !== null && plan.vipDays >= 80) return "Quarterly";
return plan.planName;
}