在app.json设置tab时,iphone6/7 plus出现选中时,有背景颜色
"tabBar": {
"color": "#ddd",
"selectedColor": "#000",
"backgroundColor": "#fff",
"list": [
{
"pagePath": "pages/index/index",
"text": "首页1",
"iconPath": "images/index1.png",
"selectedIconPath": "images/index2.png"
},
{
"pagePath": "pages/index1/index1",
"text": "首页2",
"iconPath": "images/index3.png",
"selectedIconPath": "images/index4.png"
},
{
"pagePath": "pages/index2/index2",
"text": "首页3",
"iconPath": "images/index5.png",
"selectedIconPath": "images/index6.png"
}
]
}
问题未复现。请提供一下出现问题的机型的微信版本,以及能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
在app.json设置tab时,窗口的底部或顶部有 tab 栏
"tabBar": {
"color": "#ddd",
"selectedColor": "#000",
"backgroundColor": "#fff",
"list": [
{
"pagePath": "pages/index/index",
"text": "首页1",
"iconPath": "images/index1.png",
"selectedIconPath": "images/index2.png"
},
{
"pagePath": "pages/index1/index1",
"text": "首页2",
"iconPath": "images/index3.png",
"selectedIconPath": "images/index4.png"
},
{
"pagePath": "pages/index2/index2",
"text": "首页3",
"iconPath": "images/index5.png",
"selectedIconPath": "images/index6.png"
}
]
}
出现蓝底问题的手机是iphone 7 plus, 微信版本6.7.4,小程序基础库版本2.4.0
(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。按照教程提供下