小程序底部tabBar样式

小程序底部tabBar代码,添加于app.json

"tabBar": {
"color": "#222",
"selectedColor": "#f10",
"borderStyle": "black",
"backgroundColor": "#fff",
"list": [
{
"pagePath": "pages/index/index",
"iconPath": "pages/images/icon/01.png",
"text": "首页"
},
{
"pagePath": "pages/about/about01",
"iconPath": "pages/images/icon/02.png",
"text": "关于我们"
},
{
"pagePath": "pages/news/news",
"iconPath": "pages/images/icon/03.png",
"text": "新闻中心"
},
{
"pagePath": "pages/contact/contact",
"iconPath": "pages/images/icon/04.png",
"text": "联系我们"
}
]
},

你可能感兴趣的:(小程序底部tabBar样式)