55 lines
1.7 KiB
TypeScript
55 lines
1.7 KiB
TypeScript
import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'
|
|
import { tabBar } from './src/tabbar/config'
|
|
|
|
export default defineUniPages({
|
|
globalStyle: {
|
|
navigationStyle: 'default',
|
|
navigationBarTitleText: 'unibest',
|
|
navigationBarBackgroundColor: '#f8f8f8',
|
|
navigationBarTextStyle: 'black',
|
|
backgroundColor: '#FFFFFF',
|
|
},
|
|
easycom: {
|
|
autoscan: true,
|
|
custom: {
|
|
'^fg-(.*)': '@/components/fg-$1/fg-$1.vue',
|
|
'^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)':
|
|
'z-paging/components/z-paging$1/z-paging$1.vue',
|
|
'^wd-(.*)': 'wot-design-uni/components/wd-$1/wd-$1.vue',
|
|
},
|
|
},
|
|
// 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'],
|
|
},
|
|
},
|
|
})
|