feat: migrate static pages to native tabbar
This commit is contained in:
64
app.json
64
app.json
@@ -1,6 +1,9 @@
|
||||
{
|
||||
"pages": [
|
||||
"pages/home/index",
|
||||
"pages/library/index",
|
||||
"pages/ai/index",
|
||||
"pages/profile/index",
|
||||
"pages/login/index"
|
||||
],
|
||||
"subPackages": [
|
||||
@@ -9,6 +12,35 @@
|
||||
"pages": [
|
||||
"pages/workbench/index"
|
||||
]
|
||||
},
|
||||
{
|
||||
"root": "packages/tcm",
|
||||
"pages": [
|
||||
"pages/ai-history/index",
|
||||
"pages/assets/index",
|
||||
"pages/bianzheng/index",
|
||||
"pages/book-detail/index",
|
||||
"pages/search-books/index",
|
||||
"pages/section/index",
|
||||
"pages/placeholder/index"
|
||||
]
|
||||
},
|
||||
{
|
||||
"root": "packages/mingli",
|
||||
"pages": [
|
||||
"pages/hall/index",
|
||||
"pages/bazi/index",
|
||||
"pages/book-detail/index",
|
||||
"pages/search-books/index",
|
||||
"pages/section/index",
|
||||
"pages/interpret/index"
|
||||
]
|
||||
},
|
||||
{
|
||||
"root": "packages/learning",
|
||||
"pages": [
|
||||
"pages/center/index"
|
||||
]
|
||||
}
|
||||
],
|
||||
"preloadRule": {
|
||||
@@ -25,6 +57,38 @@
|
||||
"navigationBarBackgroundColor": "#f5f7fa",
|
||||
"backgroundColor": "#f5f7fa"
|
||||
},
|
||||
"tabBar": {
|
||||
"color": "#9f7c56",
|
||||
"selectedColor": "#8f5c1f",
|
||||
"backgroundColor": "#fff8ee",
|
||||
"borderStyle": "white",
|
||||
"list": [
|
||||
{
|
||||
"pagePath": "pages/home/index",
|
||||
"text": "首页",
|
||||
"iconPath": "pages/home/tab-home.png",
|
||||
"selectedIconPath": "pages/home/tab-home-active.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/library/index",
|
||||
"text": "典籍",
|
||||
"iconPath": "pages/library/tab-library.png",
|
||||
"selectedIconPath": "pages/library/tab-library-active.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/ai/index",
|
||||
"text": "AI",
|
||||
"iconPath": "pages/ai/tab-ai.png",
|
||||
"selectedIconPath": "pages/ai/tab-ai-active.png"
|
||||
},
|
||||
{
|
||||
"pagePath": "pages/profile/index",
|
||||
"text": "我的",
|
||||
"iconPath": "pages/profile/tab-profile.png",
|
||||
"selectedIconPath": "pages/profile/tab-profile-active.png"
|
||||
}
|
||||
]
|
||||
},
|
||||
"networkTimeout": {
|
||||
"request": 10000
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user