更新:课程与图书下单支付功能初步完成

This commit is contained in:
2025-11-25 11:23:42 +08:00
parent bfe0c09242
commit 7dea269e6a
14 changed files with 1490 additions and 2361 deletions

26
types/order.d.ts vendored
View File

@@ -90,30 +90,6 @@ export interface ICourseOrderCreateParams {
come: number // 2
}
/**
* 订单初始化数据
*/
export interface IOrderInitData {
user: {
id: number
jf: number // 积分
peanutCoin: number // 天医币余额
vip?: number // VIP状态
}
is_course: boolean
}
/**
* 订单路由参数
*/
export interface IOrderRouteParams {
goods: IOrderGoods[]
typeId: number
sourceType?: string
navTitle?: string
title?: string
}
/**
* 价格明细项
*/
@@ -128,9 +104,7 @@ export interface IPriceBreakdownItem {
* 订单状态
*/
export interface IOrderState {
orderData: IOrderRouteParams
goodsList: IOrderGoods[]
initData: IOrderInitData | null
totalPrice: number
vipPrice: number
districtAmount: number