更新:增加课程和图书VIP购买及“我的”主页vip身份显示

This commit is contained in:
2025-11-27 14:19:51 +08:00
parent 509f735493
commit 7062e675f6
20 changed files with 1117 additions and 66 deletions

27
types/vip.d.ts vendored Normal file
View File

@@ -0,0 +1,27 @@
/**
* vip套餐项
*/
export interface IVipItem {
courseCount: number | null // 课程数量
state: number | null // 状态 0在有效期, 1已过期, null: 未购买
originalPrice: number | null // 原价
title: string // 套餐名称
type: number
vcbList?: IVipItemProduct[] // 未办理过使用的商品列表
yanqiList?: IVipItemProduct[] // 延期使用商品列表
[key: string]: any
}
/**
* vip套餐项商品
*/
export interface IVipItemProduct {
id: number
type: number
title: string
year: number // vip年数
rebateFee: number | null, // 折扣后价格
fee: number | null, // 课程价格
lastFee?: number | null, // 未使用字段
[key: string]: any
}