新增和平小店兑换记录查询

This commit is contained in:
yml2213
2026-08-08 19:44:39 +08:00
parent 57344c7874
commit c84940a5dc
7 changed files with 668 additions and 1 deletions
@@ -8,6 +8,7 @@ import AccountTable from '@/components/account/AccountTable.vue'
import LogPanel from '@/components/log/LogPanel.vue'
import SettingsModal from '@/components/modal/SettingsModal.vue'
import CKManager from '@/components/ck/CKManager.vue'
import ExchangeRecords from '@/components/exchange/ExchangeRecords.vue'
defineProps<{
serverTime: string
@@ -17,7 +18,7 @@ const { theme, toggleTheme } = useTheme()
const { runState, countdownSeconds, formatRemain } = useScheduler()
const settingsModalRef = ref<InstanceType<typeof SettingsModal> | null>(null)
const currentPage = ref<'console' | 'ck'>('console')
const currentPage = ref<'console' | 'ck' | 'exchange'>('console')
const openSettings = () => {
settingsModalRef.value?.open()
@@ -44,6 +45,13 @@ const openSettings = () => {
>
CK 管理
</button>
<button
class="nav-tab"
:class="{ active: currentPage === 'exchange' }"
@click="currentPage = 'exchange'"
>
兑换记录
</button>
</div>
<span
v-if="currentPage === 'console'"
@@ -93,6 +101,11 @@ const openSettings = () => {
<CKManager />
</section>
</template>
<!-- 兑换记录页面 -->
<template v-else-if="currentPage === 'exchange'">
<ExchangeRecords />
</template>
</main>
<SettingsModal ref="settingsModalRef" />