更新:增加课程和图书VIP购买及“我的”主页vip身份显示
This commit is contained in:
20
types/order.d.ts
vendored
20
types/order.d.ts
vendored
@@ -4,12 +4,12 @@
|
||||
export interface IGoods {
|
||||
productId: number
|
||||
productName: string
|
||||
productImages: string
|
||||
productImages?: string
|
||||
price: number
|
||||
vipPrice: number | null
|
||||
activityPrice: number | null
|
||||
isVipPrice: number // 是否有VIP优惠 0-否 1-是
|
||||
productAmount: number // 购买数量
|
||||
vipPrice?: number | null
|
||||
activityPrice?: number | null
|
||||
isVipPrice?: number // 是否有VIP优惠 0-否 1-是
|
||||
productAmount?: number // 购买数量
|
||||
delFlag?: number // 删除标记 -1-已下架
|
||||
}
|
||||
|
||||
@@ -39,12 +39,12 @@ export interface IOrder {
|
||||
export interface IOrderGoods {
|
||||
productId: number
|
||||
productName: string
|
||||
productImages: string
|
||||
productImages?: string
|
||||
price: number
|
||||
vipPrice: number | null
|
||||
activityPrice: number | null
|
||||
isVipPrice: number // 是否有VIP优惠 0-否 1-是
|
||||
productAmount: number // 购买数量
|
||||
vipPrice?: number | null
|
||||
activityPrice?: number | null
|
||||
isVipPrice?: number // 是否有VIP优惠 0-否 1-是
|
||||
productAmount?: number // 购买数量
|
||||
goodsType: string // 商品类型 "05" for course
|
||||
}
|
||||
|
||||
|
||||
27
types/vip.d.ts
vendored
Normal file
27
types/vip.d.ts
vendored
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user