小程序底部导航栏设置

tabBar与window、pages并列,pagePath点击进入的页面路径,selectedIconPath点击选中状态

"tabBar": {
"color": "#353535",
"selectedColor": "#3cc51f",
"borderStyle": "white",
"backgroundColor": "#ffffff",
"list": [
{
"pagePath": "pages/index/index",
"iconPath": "images/man.png",
"selectedIconPath": "images/people.png",
"text": "主页"
},
{
"pagePath": "pages/logs/logs",
"iconPath": "images/people.png",
"selectedIconPath": "images/man.png",
"text": "主题日报"
},
{
"pagePath": "pages/demo/demo",
"iconPath": "images/people.png",
"selectedIconPath": "images/man.png",
"text": "测试"
}
]
}

猜你喜欢

转载自www.cnblogs.com/studyh5/p/9825681.html