pages字段和tabBar字段需要同时配置
page.json:
{
"pages": [
{
"path": "pages/home/home/index",
"style": {
"navigationStyle": "custom",
"enablePullDownRefresh": true,
"app-plus": {
"bounce": "none",
"backgroundColorTop": "#ffffff",
"background": "#ffffff",
"titleNView": false,
"scrollIndicator": "none",
"popGesture": "none",
"animationType": "fade-in",
"animationDuration": 200,
"pullToRefresh": {
"support": true,
"style": "circle",
"offset": "64px"
}
}
}
}
],
"tabBar": {
"color": "#666666",
"selectedColor": "#457AE6",
"borderStyle": "#cccccc",
"backgroundColor": "#ffffff",
"list": [
{
"pagePath": "pages/home/home/index",
"text": "首页",
"iconPath": "static/image/bar/app-home.png",
"selectedIconPath": "static/image/bar/app-home-active.png"
},
{
"pagePath": "pages/home/user/my",
"text": "我的",
"iconPath": "static/image/bar/my.png",
"selectedIconPath": "static/image/bar/my-active.png"
}
]
}
}