收藏
回答

苹果手机tabBar背景颜色是黑色的问题

请问各位大佬,微信小程序在安卓机子上和在微信小程序开发者工具的苹果手机上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"

}

]

}


最后一次编辑于  2018-11-14
回答关注问题邀请回答
收藏

1 个回答

  • 是小白啊
    是小白啊
    2018-11-14

    这个配置看下

    2018-11-14
    有用
    回复 3
    • 2018-11-14

      谢谢,已经可以了

      2018-11-14
      回复
    • 杉星
      杉星
      2019-04-01

      你怎么好的,  我的还是这样子

      2019-04-01
      回复
    • 我的昵称有八个字
      我的昵称有八个字
      2019-04-03回复杉星

      把"backgroundColor""white",中的white换成#ffffff 就好了

      2019-04-03
      回复
登录 后发表内容