From af6d00316b1067d09150cd127fb81769bf68bf3f Mon Sep 17 00:00:00 2001 From: zpc Date: Fri, 6 Feb 2026 07:48:27 +0800 Subject: [PATCH] 21 --- .../admin-web/src/api/business/goods.ts | 3 + .../goods/components/PrizeAddDialog.vue | 20 +++- .../goods/components/PrizeListDialog.vue | 101 ++++++++++++++---- 3 files changed, 104 insertions(+), 20 deletions(-) diff --git a/server/HoneyBox/src/HoneyBox.Admin/admin-web/src/api/business/goods.ts b/server/HoneyBox/src/HoneyBox.Admin/admin-web/src/api/business/goods.ts index 2ce32300..0cbb2b98 100644 --- a/server/HoneyBox/src/HoneyBox.Admin/admin-web/src/api/business/goods.ts +++ b/server/HoneyBox/src/HoneyBox.Admin/admin-web/src/api/business/goods.ts @@ -257,8 +257,10 @@ export interface PrizeItem { rewardId: string | null doubling: number isLingzhu: number + goodsListId: number // 父奖品ID,0表示父奖品,>0表示子奖品 createdAt: string | null updatedAt: string + children?: PrizeItem[] // 子奖品列表(前端构建树形结构用) } /** 创建奖品请求 */ @@ -283,6 +285,7 @@ export interface PrizeCreateRequest { rewardId?: string doubling: number isLingzhu: number + goodsListId?: number // 父奖品ID,添加宝箱子奖品时使用 } /** 更新奖品请求 */ diff --git a/server/HoneyBox/src/HoneyBox.Admin/admin-web/src/views/business/goods/components/PrizeAddDialog.vue b/server/HoneyBox/src/HoneyBox.Admin/admin-web/src/views/business/goods/components/PrizeAddDialog.vue index 00411db7..8c46fe69 100644 --- a/server/HoneyBox/src/HoneyBox.Admin/admin-web/src/views/business/goods/components/PrizeAddDialog.vue +++ b/server/HoneyBox/src/HoneyBox.Admin/admin-web/src/views/business/goods/components/PrizeAddDialog.vue @@ -1,7 +1,7 @@