SEC_Warehouse/src/app.config.ts

67 lines
1.9 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

export default {
// 组件按需注入:未在 WXML 中声明的自定义组件不注入对应代码,削减启动注入开销
lazyCodeLoading: 'requiredComponents',
pages: [
'pages/index/index',
'pages/login/index',
'pages/mine/index',
'pages/scene/select',
'pages/device/index',
'pages/event/index'
],
// 低频页面分包:设备详情/配置与家庭圈系列从主包剥离,压主包体积
subPackages: [
{
root: 'pages/device/feature',
pages: ['detail', 'add', 'config', 'ble-config']
},
{
root: 'pages/family',
pages: ['index', 'detail', 'contact/add', 'contact/detail']
},
{
root: 'pages/event/feature',
pages: ['detail']
}
],
window: {
navigationStyle: 'custom', // 与现状一致:所有页自绘 Navbar,避免原生导航栏与自研 Navbar 双栏
navigationBarTextStyle: 'black',
navigationBarTitleText: '智慧养老',
navigationBarBackgroundColor: '#F8F8F8',
backgroundColor: '#F1F1F4'
},
tabBar: {
color: '#666666',
selectedColor: '#2CCB98',
backgroundColor: '#FFFFFF',
borderStyle: 'black',
list: [
{
pagePath: 'pages/index/index',
text: '首页',
iconPath: 'assets/tabbar/home.png',
selectedIconPath: 'assets/tabbar/home-active.png'
},
{
pagePath: 'pages/device/index',
text: '智能设备',
iconPath: 'assets/tabbar/device.png',
selectedIconPath: 'assets/tabbar/device-active.png'
},
{
pagePath: 'pages/event/index',
text: '消息中心',
iconPath: 'assets/tabbar/event.png',
selectedIconPath: 'assets/tabbar/event-active.png'
},
{
pagePath: 'pages/mine/index',
text: '个人中心',
iconPath: 'assets/tabbar/mine.png',
selectedIconPath: 'assets/tabbar/mine-active.png'
}
]
}
}