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({