refactor: remove unused subscription plans and router files
This commit is contained in:
@@ -1,57 +0,0 @@
|
||||
/**
|
||||
* VIP 订阅套餐常量
|
||||
*
|
||||
* Mock 阶段硬编码,后续可改为从 `ApiPath.paymentProducts` 拉取。
|
||||
*
|
||||
* 原始 Dart: lib/ui/subscription/...
|
||||
*
|
||||
* 当前订阅页优先使用后端 `/api/payment/plans` 返回的套餐。
|
||||
* 本常量仅保留给旧 UI / fallback 代码参考。
|
||||
*/
|
||||
export type SubscriptionPlanId = "monthly" | "quarterly" | "annual";
|
||||
|
||||
export interface SubscriptionPlan {
|
||||
id: SubscriptionPlanId;
|
||||
/** 卡片顶部名称,例如 "Monthly" */
|
||||
name: string;
|
||||
/** 当前价格 */
|
||||
price: number;
|
||||
/** 划线原价 */
|
||||
originalPrice: number;
|
||||
/** 每日折算价字符串,e.g. "$0.66/day" */
|
||||
perDay: string;
|
||||
/** 是否高亮(默认推荐:月付) */
|
||||
highlight: boolean;
|
||||
/** 该套餐每天补充的语音聊天分钟数(业务常量) */
|
||||
voiceMinutesPerDay: number;
|
||||
}
|
||||
|
||||
export const SUBSCRIPTION_PLANS: readonly SubscriptionPlan[] = [
|
||||
{
|
||||
id: "monthly",
|
||||
name: "Monthly",
|
||||
price: 19.9,
|
||||
originalPrice: 24.9,
|
||||
perDay: "$0.66/day",
|
||||
highlight: true,
|
||||
voiceMinutesPerDay: 30, // 30 分钟/天
|
||||
},
|
||||
{
|
||||
id: "quarterly",
|
||||
name: "Quarterly",
|
||||
price: 49.9,
|
||||
originalPrice: 59.9,
|
||||
perDay: "$0.55/day",
|
||||
highlight: false,
|
||||
voiceMinutesPerDay: 45, // 45 分钟/天(比月付多,性价比)
|
||||
},
|
||||
{
|
||||
id: "annual",
|
||||
name: "Annual",
|
||||
price: 169.9,
|
||||
originalPrice: 199.9,
|
||||
perDay: "$0.47/day",
|
||||
highlight: false,
|
||||
voiceMinutesPerDay: 60, // 60 分钟/天(年度最多)
|
||||
},
|
||||
] as const;
|
||||
Reference in New Issue
Block a user