首页小程序导航栏TabBar设置
1、注意区分属性值大小写的区别,比如selectedIconPath如果写成selectediconpath则图片不显示。
2、如果tabBar中设置"postion":"top"则icopath的图片都不再显示。
3、注意{}中如果列出几项,这除最后一项外每一项结尾加逗号,最后一项不用加。
"tabBar": {
"selectedColor": "#1296db",
"list": [{
"pagePath": "pages/index/index",
"text": "首页",
"iconPath": "images/ico-home.png",
"selectedIconPath": "images/ico-home-d.png"
},{
"pagePath": "pages/setting/setting",
"text": "设置",
"iconPath": "images/ico-setting.png",
"selectedIconPath": "images/ico-setting-d.png"
},{
"pagePath": "pages/help/help",
"text": "帮助",
"iconPath": "images/ico-help.png",
"selectedIconPath": "images/ico-help-d.png"
}]
}