苹果手机tabBar背景颜色是黑色的问题
发布于 4 年前 作者 gangdai 14367 次浏览 来自 问答

请问各位大佬,微信小程序在安卓机子上和在微信小程序开发者工具的苹果手机上tabBar显示的背景颜色都正常,但是到了苹果真机上tabBar背景颜色是黑色的,只有选中了才不是黑色的,请问这个如何解决呢?谢谢

安卓真机显示正常:

微信开发者工具苹果模拟机子显示正常:

苹果真机上显示不正常,背景色是黑色的,tabBar字看不清,只有点了才看得清:

tabBar代码是这样的:

“tabBar”: {

“color”: “#9DACB7F”,

“selectedColor”: “#78C652”,

“borderStyle”: “white”,

“backgroundColor”: “white”,

“list”: [

{

“pagePath”: “pages/index/index”,

“text”: “首页”,

“iconPath”: “images/tabBar2/home.png”,

“selectedIconPath”: “images/tabBar2/home-selected.png”

},

{

“pagePath”: “pages/recommend/recommend”,

“text”: “匹配”,

“iconPath”: “images/tabBar2/match.png”,

“selectedIconPath”: “images/tabBar2/match-selected.png”

},

{

“pagePath”: “pages/video-audio/video-audio”,

“text”: “视听”,

“iconPath”: “images/tabBar2/video-audio.png”,

“selectedIconPath”: “images/tabBar2/video-audio-selected.png”

},

{

“pagePath”: “pages/game/index”,

“text”: “答题”,

“iconPath”: “images/tabBar2/answer.png”,

“selectedIconPath”: “images/tabBar2/answer-selected.png”

},

{

“pagePath”: “pages/about/about”,

“text”: “我的”,

“iconPath”: “images/tabBar2/about.png”,

“selectedIconPath”: “images/tabBar2/about-selected.png”

}

]

}

1 回复

这个配置看下

回到顶部