refactor(app): 重构应用主题和页面结构

- 移除动态主题切换功能,改为全局统一深色主题
- 实现自定义TabBar组件替换原生tabBar,解决iOS闪白问题
- 创建main容器页面统一管理三个tab页面的生命周期和状态
- 将所有页面的onShow/onHide等生命周期方法迁移到子组件内部
- 更新页面路径从index改为main,并调整路由跳转逻辑
- 移除theme-mixin和相关主题工具函数
- 统一页面背景色设置,优化用户体验一致性
This commit is contained in:
cg
2026-09-23 20:56:14 +08:00
parent a628b73a80
commit d335ec290a
24 changed files with 399 additions and 357 deletions
+5 -47
View File
@@ -1,17 +1,13 @@
{
"pages": [
{
"path": "pages/index/index",
"path": "pages/main/main",
"style": {
"navigationStyle": "custom",
"navigationBarTitleText": ""
}
},
{
"path": "pages/profile/profile",
"style": {
"navigationStyle": "custom",
"navigationBarTitleText": ""
"navigationBarTitleText": "",
"backgroundColor": "#0B0B14",
"backgroundColorTop": "#0B0B14",
"backgroundColorBottom": "#0B0B14"
}
},
{
@@ -49,18 +45,6 @@
"navigationBarTitleText": ""
}
},
{
"path": "pages/circle/circle",
"style": {
"navigationStyle": "custom",
"navigationBarTitleText": "",
"app-plus": {
"background": "#0B0B14",
"bounceBackground": "#0B0B14",
"animationAlphaBGColor": "#0B0B14"
}
}
},
{
"path": "pages/circle-detail/circle-detail",
"style": {
@@ -139,31 +123,5 @@
"backgroundColorTop": "#0B0B14",
"backgroundColorBottom": "#0B0B14"
},
"tabBar": {
"color": "#9494AC",
"selectedColor": "#E8A838",
"backgroundColor": "#151520",
"borderStyle": "black",
"list": [
{
"pagePath": "pages/index/index",
"text": "首页",
"iconPath": "static/tab-home.png",
"selectedIconPath": "static/tab-home-active.png"
},
{
"pagePath": "pages/circle/circle",
"text": "酒友圈",
"iconPath": "static/tab-circle.png",
"selectedIconPath": "static/tab-circle-active.png"
},
{
"pagePath": "pages/profile/profile",
"text": "我的",
"iconPath": "static/tab-profile.png",
"selectedIconPath": "static/tab-profile-active.png"
}
]
},
"uniIdRouter": {}
}