最新版的tabbar文字颜色怎么改都是绿色。
开发工具版本:
版本 0.20.191900 (0.20.191900)
微信版本:
6.5.12
iPhone: iOS 10.3.2
代码:
"tabBar": {
"list": [{
"pagePath": "pages/index/index",
"text": "收货",
"iconPath": "images/goodsIn.png",
"selectedIconPath": "images/goodsIn.png",
"color": "#707070",
"selectedColor": "#E1102F"
},
{
"pagePath": "pages/goodsInHistory/goodsInHistory",
"text": "收货记录",
"iconPath": "images/goodsInHistory.png",
"selectedIconPath": "images/goodsInHistory.png",
"color": "#707070",
"selectedColor": "#E1102F"
}]
}
结果:
thx, 你的写法和官方的描述是一样的,是可以的。
但是,奇怪的是,我这有个之前的小程序是我上面那样写的,结果效果也是对的。但是现在再这样写就没效果了。
哪有你这样写的哦
"tabBar": {
"backgroundColor": "#fff",
"borderStyle": "#aaa",
"color": "#999",
"selectedColor": "#e82222",
"list": [
{
"pagePath": "pages/index/index",
"text": "1",
"iconPath": "images/tabbar/index.png",
"selectedIconPath": "images/tabbar/index-select.png"
},
{
"pagePath": "pages/myself/myself",
"text": "2",
"iconPath": "images/tabbar/packet.png",
"selectedIconPath": "images/tabbar/packet-select.png"
}
]
}