2025-06-21 13:09:14 +08:00
|
|
|
|
// 是否使用自定义的tabbar?
|
|
|
|
|
export const CUSTOM_TABBAR_ENABLE = false
|
|
|
|
|
|
|
|
|
|
// CUSTOM_TABBAR_ENABLE 为 true 时,可以不填 iconPath 和 selectedIconPath
|
|
|
|
|
// CUSTOM_TABBAR_ENABLE 为 false 时,可以不填 icon 和 iconType
|
2025-06-20 21:40:52 +08:00
|
|
|
|
export const tabbarList = [
|
2025-06-20 19:32:34 +08:00
|
|
|
|
{
|
2025-06-21 13:09:14 +08:00
|
|
|
|
iconPath: 'static/tabbar/home.png',
|
|
|
|
|
selectedIconPath: 'static/tabbar/homeHL.png',
|
2025-06-20 19:32:34 +08:00
|
|
|
|
pagePath: 'pages/index/index',
|
|
|
|
|
text: '首页',
|
|
|
|
|
icon: 'home',
|
|
|
|
|
iconType: 'wot',
|
|
|
|
|
},
|
|
|
|
|
{
|
2025-06-21 13:09:14 +08:00
|
|
|
|
iconPath: 'static/tabbar/example.png',
|
|
|
|
|
selectedIconPath: 'static/tabbar/exampleHL.png',
|
2025-06-20 19:32:34 +08:00
|
|
|
|
pagePath: 'pages/about/about',
|
|
|
|
|
text: '关于',
|
|
|
|
|
icon: 'i-carbon-code',
|
|
|
|
|
iconType: 'unocss',
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// pagePath: 'pages/my/index',
|
|
|
|
|
// text: '我的',
|
|
|
|
|
// icon: '/static/logo.svg',
|
|
|
|
|
// iconType: 'local',
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// pagePath: 'pages/mine/index',
|
|
|
|
|
// text: '我的',
|
|
|
|
|
// icon: 'iconfont icon-my',
|
|
|
|
|
// iconType: 'iconfont',
|
|
|
|
|
// },
|
|
|
|
|
]
|
2025-06-20 21:40:52 +08:00
|
|
|
|
|
|
|
|
|
// midButton 仅App和H5支持
|
2025-06-21 13:30:41 +08:00
|
|
|
|
const midButton = {
|
2025-06-20 21:40:52 +08:00
|
|
|
|
iconPath: '/static/logo.svg',
|
|
|
|
|
text: '发布',
|
|
|
|
|
}
|
2025-06-21 12:54:52 +08:00
|
|
|
|
|
|
|
|
|
const _tabbar = {
|
|
|
|
|
color: '#999999',
|
|
|
|
|
selectedColor: '#018d71',
|
|
|
|
|
backgroundColor: '#F8F8F8',
|
|
|
|
|
borderStyle: 'black',
|
|
|
|
|
height: '50px',
|
|
|
|
|
fontSize: '10px',
|
|
|
|
|
iconWidth: '24px',
|
|
|
|
|
spacing: '3px',
|
|
|
|
|
list: tabbarList as any,
|
2025-06-21 13:30:41 +08:00
|
|
|
|
// midButton 仅App和H5支持,(h5中测试也没生效)
|
|
|
|
|
// midButton: midButton,
|
2025-06-21 12:54:52 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const tabBar = CUSTOM_TABBAR_ENABLE ? undefined : _tabbar
|