小程序底部导航栏设置

 

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": "测试"
}
]
}

小程序底部导航栏设置

上一篇:js判断是否是ie浏览器、360浏览器兼容模式、QQ浏览器兼容模式、搜狗浏览器兼容模式,弹出提示使用别的浏览器打开


下一篇:npm 报错 request to https://registry.cnpmjs.org/vue failed, reason: Hostname/IP does not match certificate‘