修改页面结构
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user