feat: 分端显示

This commit is contained in:
FlowerWater
2025-12-17 17:01:46 +08:00
parent 5e3d3708c6
commit 3c21b074c4
16 changed files with 1723 additions and 119 deletions

View File

@@ -18,6 +18,37 @@ export default defineUniPages({
'^wd-(.*)': 'wot-design-uni/components/wd-$1/wd-$1.vue',
},
},
// tabbar 配置统一在 “./src/tabbar/config.ts” 文件中
// tabbar 配置
tabBar: tabBar as any,
// 分包配置
subPackages: [
{
root: 'pagesMerchant',
pages: [
{ path: 'dashboard/index', style: { navigationBarTitleText: '商家工作台' } },
{ path: 'order/list', style: { navigationBarTitleText: '订单管理' } },
{ path: 'goods/list', style: { navigationBarTitleText: '商品管理' } },
{ path: 'finance/index', style: { navigationBarTitleText: '财务中心' } },
{ path: 'me/index', style: { navigationBarTitleText: '商家中心' } },
],
},
{
root: 'pagesBank',
pages: [
{ path: 'dashboard/index', style: { navigationBarTitleText: '银行工作台' } },
{ path: 'audit/list', style: { navigationBarTitleText: '审核列表' } },
{ path: 'customer/list', style: { navigationBarTitleText: '客户管理' } },
{ path: 'me/index', style: { navigationBarTitleText: '银行中心' } },
],
},
],
// 分包预下载配置
preloadRule: {
'pages/login/index': {
network: 'all',
packages: ['pagesMerchant', 'pagesBank'],
},
},
})