微信小程序 tabBar 底部导航栏
(对于底部导航栏,小程序上给出的文档要求里面的item最少2个,最多五个)
app.json
{
"pages": [
"pages/index/index",
"pages/fangliao/fangliao",
"pages/mypage/mypage"
],
"permission": {
"scope.userLocation": {
"desc": "需要获取您的地理位置,请确认授权"
}
},
"window": {
"backgroundTextStyle": "dark",
"navigationBarBackgroundColor": "#ff222c",
"navigationBarTitleText": "7G房",
"navigationBarTextStyle": "white"
},
"tabBar": {
"color": "#b2b2b2",
"selectedColor": "#ff2b0a",
"borderStyle": "white",
"list": [{
"selectedIconPath": "images/navbom01-on.png",
"iconPath": "images/navbom01.png",
"pagePath": "pages/index/index",
"text": "首页"
},
{
"selectedIconPath": "images/navbom02-on.png",
"iconPath": "images/navbom02.png",
"pagePath": "pages/fangliao/fangliao",
"text": "消息"
},
{
"selectedIconPath": "images/navbom03-on.png",
"iconPath": "images/navbom03.png",
"pagePath": "pages/mypage/mypage",
"text": "我的"
}
]
}
}