refactor(tabbar): 切换为原生tabbar并清理自定义tabbar相关代码

移除自定义tabbar的配置和代码,改为使用原生tabbar实现
清理未使用的http请求代码和TODO注释
更新相关配置文件和组件逻辑
This commit is contained in:
feige996
2025-08-17 14:24:16 +08:00
parent ce2421a73c
commit 477edaea1a
3 changed files with 7 additions and 11 deletions

View File

@@ -20,7 +20,7 @@ export const TABBAR_MAP = {
// 如果是使用 NO_TABBAR(0)nativeTabbarList 和 customTabbarList 都不生效(里面的配置不用管)
// 如果是使用 NATIVE_TABBAR(1),只需要配置 nativeTabbarListcustomTabbarList 不生效
// 如果是使用 CUSTOM_TABBAR(2,3),只需要配置 customTabbarListnativeTabbarList 不生效
export const selectedTabbarStrategy = TABBAR_MAP.CUSTOM_TABBAR_WITH_CACHE
export const selectedTabbarStrategy = TABBAR_MAP.NATIVE_TABBAR
type NativeTabBarItem = TabBar['list'][0]
// TODO: 2/3. 使用 NATIVE_TABBAR 时,更新下面的 tabbar 配置
@@ -48,7 +48,7 @@ interface CustomTabBarItem {
badge?: number | 'dot' // badge 显示一个数字或 小红点(样式可以直接在 tabbar/index.vue 里面修改)
isBulge?: boolean // 是否是中间的鼓包tabbarItem
}
// TODO: 2/3. 使用 CUSTOM_TABBAR(2,3) 时,更新下面的 tabbar 配置
// TODO: 3/3. 使用 CUSTOM_TABBAR(2,3) 时,更新下面的 tabbar 配置
export const customTabbarList: CustomTabBarItem[] = [
{
text: '首页',