project/pages.json

65 lines
1.7 KiB
JSON
Raw Normal View History

2024-07-14 15:48:34 +08:00
{
"pages": [ //pages数组中第一项表示应用启动页参考https://uniapp.dcloud.io/collocation/pages
{
"path": "pages/home/index",
"style": {
"navigationBarTitleText": "老黄历"
}
},
{
"path": "pages/customizate/index",
"style": {
"navigationBarTitleText": "专属黄历"
}
},
{
"path": "pages/almanac/index",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "pages/personalCenter/index",
"style": {
"navigationBarTitleText": "个人中心"
}
}
],
"globalStyle": {
"navigationBarTextStyle": "white",
"navigationBarTitleText": "老黄历",
"navigationBarBackgroundColor": "#C13636",
"backgroundColor": "#ffffff"
},
"tabBar": {
"custom": true, //开启自定义tabBar 不填每次原来的tabbar在重新加载时都回闪现
"color": "#B1B1B1",
"selectedColor": "#C13636",
"borderStyle": "white",
"backgroundColor": "#ffffff",
"list": [{
"pagePath": "pages/home/index",
"iconPath": "static/tabBar5.png",
"selectedIconPath": "static/tabBar5_on.png",
"text": "黄历"
},{
"pagePath": "pages/customizate/index",
"iconPath": "static/tabBar6.png",
"selectedIconPath": "static/tabBar6_on.png",
"text": "专属黄历"
},{
"pagePath": "pages/personalCenter/index",
"iconPath": "static/tabBar7.png",
"selectedIconPath": "static/tabBar7_on.png",
"text": "个人中心"
}]
},
"condition": { //模式配置,仅开发期间生效
"current": 0, //当前激活的模式(list 的索引项)
"list": [{
"name": "", //模式名称
"path": "", //启动页面,必选
"query": "" //启动参数在页面的onLoad函数里面得到
}]
}
}