starwork-uniapp/pages.config.ts

56 lines
1.5 KiB
TypeScript
Raw Normal View History

2024-12-31 10:05:55 +08:00
import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'
export default defineUniPages({
globalStyle: {
navigationStyle: 'default',
2025-01-07 16:56:58 +08:00
navigationBarTitleText: '星星勤务',
2024-12-31 10:05:55 +08:00
navigationBarBackgroundColor: '#f8f8f8',
navigationBarTextStyle: 'black',
2024-12-31 10:19:20 +08:00
backgroundColor: '#FFFFFF'
2024-12-31 10:05:55 +08:00
},
easycom: {
autoscan: true,
custom: {
'^wd-(.*)': 'wot-design-uni/components/wd-$1/wd-$1.vue',
'^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)':
2024-12-31 10:19:20 +08:00
'z-paging/components/z-paging$1/z-paging$1.vue'
}
2024-12-31 10:05:55 +08:00
},
tabBar: {
2024-12-31 10:19:20 +08:00
color: '#0d0f10',
selectedColor: '#255cf7',
backgroundColor: '#FFFFFF',
2024-12-31 10:05:55 +08:00
borderStyle: 'black',
height: '50px',
fontSize: '10px',
iconWidth: '24px',
2024-12-31 10:19:20 +08:00
spacing: '5px',
2024-12-31 10:05:55 +08:00
list: [
{
iconPath: 'static/tabbar/home.png',
2025-01-07 16:56:58 +08:00
selectedIconPath: 'static/tabbar/home_selected.png',
2024-12-31 10:19:20 +08:00
pagePath: 'pages/home/home',
text: '首页'
},
{
2025-01-07 16:56:58 +08:00
iconPath: 'static/tabbar/workbench.png',
selectedIconPath: 'static/tabbar/workbench_selected.png',
2024-12-31 10:19:20 +08:00
pagePath: 'pages/workbench/workbench',
text: '工作台'
},
{
2025-01-07 16:56:58 +08:00
iconPath: 'static/tabbar/notification.png',
selectedIconPath: 'static/tabbar/notification_selected.png',
2024-12-31 10:19:20 +08:00
pagePath: 'pages/notification/notification',
text: '消息'
2024-12-31 10:05:55 +08:00
},
{
2025-01-07 16:56:58 +08:00
iconPath: 'static/tabbar/mine.png',
selectedIconPath: 'static/tabbar/mine_selected.png',
2024-12-31 10:19:20 +08:00
pagePath: 'pages/mine/mine',
text: '我的'
}
]
}
2024-12-31 10:05:55 +08:00
})