feat: 订单详情 & 问卷调查

This commit is contained in:
2025-09-10 16:56:24 +08:00
parent 8a1a2af1e9
commit d60445b850
31 changed files with 2054 additions and 723 deletions

View File

@@ -30,6 +30,42 @@ export interface OrderResponse {
payment_params: PayMentParams
}
export interface OrderInfo {
time: string
address: string
registrant_nickname: string
registrant_phone: string
cost: string
}
export interface RefundPolicy {
application_time: string
refund_rule: string
}
export interface GameStatus {
current_players: number
max_players: number
is_full: boolean
can_join: boolean
}
export interface GameDetails {
game_id: number
game_title: string
game_description: string
}
export interface GameOrderRes {
order_info: OrderInfo
refund_policy: RefundPolicy[]
notice: string
game_status: GameStatus
game_details: GameDetails
}
// 发布球局类
class OrderService {
// 用户登录
@@ -39,7 +75,11 @@ class OrderService {
})
}
// async getOrderInfo()
async getOrderInfo(game_id: number): Promise<ApiResponse<GameOrderRes>> {
return httpService.post('/payment/check_order', { game_id }, {
showLoading: true,
})
}
}
// 导出认证服务实例