修改页面结构

This commit is contained in:
2026-02-02 20:07:37 +08:00
parent 3de5e9ebe9
commit 21f4a0fa96
209 changed files with 41824 additions and 2730 deletions

View File

@@ -1,5 +1,5 @@
<template>
<AdminLayout currentPage="order-management">
<AdminLayout :currentPage="currentPage">
<view class="Page">
<view class="Header">
<text class="Title">订单</text>
@@ -19,10 +19,16 @@ import { onLoad } from '@dcloudio/uni-app'
import AdminLayout from '@/layouts/admin/AdminLayout.uvue'
const params = ref('')
const currentPage = ref('order-list')
onLoad((options) => {
// options: Record<string, any>
onLoad((options: Record<string, string>) => {
params.value = JSON.stringify(options ?? {})
const tab = options['tab'] || ''
if (tab == 'stats') currentPage.value = 'order-stats'
else if (tab == 'aftersale') currentPage.value = 'order-aftersale'
else if (tab == 'cashier') currentPage.value = 'order-cashier'
else if (tab == 'verify') currentPage.value = 'order-verify'
else if (tab == 'config') currentPage.value = 'order-config'
})
</script>