|
@@ -9,10 +9,10 @@
|
|
|
|
|
|
// TODO:是否开启自定义tabbar,默认不开启
|
|
// TODO:是否开启自定义tabbar,默认不开启
|
|
// 不开启表示使用原生tabbar,开启表示使用自定义tabbar
|
|
// 不开启表示使用原生tabbar,开启表示使用自定义tabbar
|
|
-export const CUSTOM_TABBAR_ENABLE = false
|
|
|
|
|
|
+export const CUSTOM_TABBAR_ENABLE = true
|
|
// TODO: 是否开启自定义tabbar的无缓存模式,默认不开启
|
|
// TODO: 是否开启自定义tabbar的无缓存模式,默认不开启
|
|
// 开启表示使用自定义tabbar的无缓存模式,并且需要把 `pages.config.ts` 里面的 tabBar 配置删除
|
|
// 开启表示使用自定义tabbar的无缓存模式,并且需要把 `pages.config.ts` 里面的 tabBar 配置删除
|
|
-export const CUSTOM_TABBAR_NO_CACHE = false
|
|
|
|
|
|
+export const CUSTOM_TABBAR_NO_CACHE = true
|
|
|
|
|
|
/**
|
|
/**
|
|
* 根据您选择的UI框架,配置相应的字段信息
|
|
* 根据您选择的UI框架,配置相应的字段信息
|
|
@@ -21,27 +21,24 @@ export const CUSTOM_TABBAR_NO_CACHE = false
|
|
*/
|
|
*/
|
|
export const tabbarList = [
|
|
export const tabbarList = [
|
|
{
|
|
{
|
|
|
|
+ iconPath: '/static/tabbar/home.png',
|
|
|
|
+ selectedIconPath: '/static/tabbar/homeHL.png',
|
|
pagePath: 'pages/index/index',
|
|
pagePath: 'pages/index/index',
|
|
- icon: 'home',
|
|
|
|
- // 选用 UI 框架自带的 icon时,iconType 为 uiLib
|
|
|
|
iconType: 'uiLib',
|
|
iconType: 'uiLib',
|
|
|
|
+ text: 'home',
|
|
},
|
|
},
|
|
{
|
|
{
|
|
|
|
+ iconPath: '/static/tabbar/income.png',
|
|
|
|
+ selectedIconPath: '/static/tabbar/incomeHL.png',
|
|
pagePath: 'pages/income/income',
|
|
pagePath: 'pages/income/income',
|
|
- icon: 'i-carbon-code',
|
|
|
|
- // 注意 unocss 的图标需要在 页面上引入一下,或者配置到 unocss.config.ts 的 safelist 中
|
|
|
|
- iconType: 'unocss',
|
|
|
|
|
|
+ iconType: 'uiLib',
|
|
|
|
+ text: 'income',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ iconPath: '/static/tabbar/mine.png',
|
|
|
|
+ selectedIconPath: '/static/tabbar/mineHL.png',
|
|
|
|
+ pagePath: 'pages/mine/mine',
|
|
|
|
+ iconType: 'uiLib',
|
|
|
|
+ text: 'mine',
|
|
},
|
|
},
|
|
- // {
|
|
|
|
- // pagePath: 'pages/my/index',
|
|
|
|
- // text: '我的',
|
|
|
|
- // icon: '/static/logo.svg',
|
|
|
|
- // iconType: 'local',
|
|
|
|
- // },
|
|
|
|
- // {
|
|
|
|
- // pagePath: 'pages/mine/index',
|
|
|
|
- // text: '我的',
|
|
|
|
- // icon: 'iconfont icon-my',
|
|
|
|
- // iconType: 'iconfont',
|
|
|
|
- // },
|
|
|
|
]
|
|
]
|