From ec9bd399dafa643082fa1037ed95b4d36f01be3d Mon Sep 17 00:00:00 2001 From: yziiy <15979918+mayday-yziiy@user.noreply.gitee.com> Date: Tue, 14 Oct 2025 11:46:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/BlindBox/turntable/Turntable.vue | 8 ++++++++ src/views/BlindBox/turntable/hook.tsx | 14 +++++++++++++- src/views/BlindBox/turntable/index.vue | 3 +++ src/views/paradise/paradiseList/hook.tsx | 4 ++++ src/views/room/roomList/Turntable/Turntable.vue | 6 +++--- 5 files changed, 31 insertions(+), 4 deletions(-) create mode 100644 src/views/BlindBox/turntable/Turntable.vue diff --git a/src/views/BlindBox/turntable/Turntable.vue b/src/views/BlindBox/turntable/Turntable.vue new file mode 100644 index 0000000..d9d67a3 --- /dev/null +++ b/src/views/BlindBox/turntable/Turntable.vue @@ -0,0 +1,8 @@ + + \ No newline at end of file diff --git a/src/views/BlindBox/turntable/hook.tsx b/src/views/BlindBox/turntable/hook.tsx index adcd86b..628a94f 100644 --- a/src/views/BlindBox/turntable/hook.tsx +++ b/src/views/BlindBox/turntable/hook.tsx @@ -9,6 +9,7 @@ import { getBlindBoxRule, settingBlindBoxRule } from "@/api/modules/blindBox"; +import TurntableView from './Turntable.vue'; import editForm from "./form.vue"; import settingRuleView from './settingRule.vue' import { addDialog } from "@/components/ReDialog"; @@ -266,6 +267,16 @@ export function useData() { } }); } + // 开奖记录 + const openLotteryRecord = () => { + addDialog({ + title: `盲盒转盘开奖记录`, + fullscreen: true, + hideFooter: true, + closeOnClickModal: false, + contentRenderer: () => h(TurntableView, { ref: formRef, formInline: null }) + }); + } return { searchForm, searchLabel, @@ -286,6 +297,7 @@ export function useData() { openDialog, resetSetting, handleDelete, - setting + setting, + openLotteryRecord }; } \ No newline at end of file diff --git a/src/views/BlindBox/turntable/index.vue b/src/views/BlindBox/turntable/index.vue index f617a98..1b6e941 100644 --- a/src/views/BlindBox/turntable/index.vue +++ b/src/views/BlindBox/turntable/index.vue @@ -26,6 +26,7 @@ const { openDialog, resetSetting, handleDelete, + openLotteryRecord, setting } = useData(); onMounted(() => { @@ -56,8 +57,10 @@ defineOptions({