style(subscription): polish offer sections
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user