更新:提取公共选择商品组件

This commit is contained in:
2025-11-19 14:16:01 +08:00
parent d76c6cdff1
commit 2731bfba38
12 changed files with 156 additions and 84 deletions

14
types/course.d.ts vendored
View File

@@ -4,6 +4,7 @@
*/
import type { IApiResponse } from './book'
import type { IGoods } from './order'
/** 医学标签(课程分类) */
export interface ICategory {
@@ -106,19 +107,6 @@ export interface IVipInfo {
endTime: string // 到期时间
}
/** 商品信息 */
export interface IGoods {
productId: number
productName: string
productImages: string
price: number
vipPrice: number | null
activityPrice: number | null
isVipPrice: number // 是否有VIP优惠 0-否 1-是
productAmount: number // 购买数量
delFlag?: number // 删除标记 -1-已下架
}
/** 订单商品 */
export interface IOrderGoods extends IGoods {
// 继承商品信息

15
types/order.d.ts vendored
View File

@@ -1,4 +1,17 @@
// types/order.d.ts
/**
* 商品信息
**/
export interface IGoods {
productId: number
productName: string
productImages: string
price: number
vipPrice: number | null
activityPrice: number | null
isVipPrice: number // 是否有VIP优惠 0-否 1-是
productAmount: number // 购买数量
delFlag?: number // 删除标记 -1-已下架
}
/**
* 订单创建参数接口