diff --git a/src/api/order.ts b/src/api/order.ts index 89c1ad8..28e55b1 100644 --- a/src/api/order.ts +++ b/src/api/order.ts @@ -29,6 +29,29 @@ export function getStoreOrderList(data: IGetStoreOrderListParams) { return http.Post('/storeapi/order/orderStoreList', data) } + +/** + * 团购套餐订单列表页 + */ +export interface IGetGroupComboOrderListParams { + page: number + size: number + store_id: number + status?: string + search?: string +} + +export function getGroupComboOrderList(data: IGetGroupComboOrderListParams) { + return http.Post('/storeapi/store/storeOperationGroup', data) +} + +/** + * 团购套餐订单详情 + */ +export function getGroupComboOrderDetail(id: number) { + return http.Post('/storeapi/store/storeOperationGroupDetails', { id }) +} + /** * 续单 * @param id 订单ID diff --git a/src/components/order/ComboCard.vue b/src/components/order/ComboCard.vue index 620d342..d6bf15a 100644 --- a/src/components/order/ComboCard.vue +++ b/src/components/order/ComboCard.vue @@ -152,7 +152,7 @@ - {{ order.room_name }} + {{ order.room_name }} ¥{{order.price || 0}} @@ -183,6 +183,50 @@ --> + + + + + + + + + + + {{ order.store_name }} + + + + + 待使用 + 已使用 + 已退款 + 退款中 + + + + + + + + + + + {{ order.tea_store_group.title }} + + ¥{{order.order_amount || 0}} + + + + + {{ order.tea_store_group.hour }}小时 + + + + + + + @@ -191,7 +235,7 @@