1***@163.com
1***@163.com
  • 发布:2020-11-27 14:52
  • 更新:2022-08-07 00:47
  • 阅读:2631

uni-app自定义基座不显示tabBar图标

分类:uni-app

使用安卓自定义基座,tabBar图标不显示。文字还正常显示,请问怎么解决啊?
使用标准基座就没问题,ios的自定义基座也没问题。
只有安卓的自定义基座不显示。

"tabBar": {  
        "color": "#8a8a8a",  
        "selectedColor": "#288EFF",  
        "borderStyle": "black",  
        "backgroundColor": "#ffffff",  
        "list": [{  
                "pagePath": "pages/index/index",  
                "text": "首页",  
                "iconPath": "static/tabarImg/tabbar_1_normal.png",  
                "selectedIconPath": "static/tabarImg/tabbar_1_selected.png"  
            },  
            {  
                "pagePath": "pages/defenseCircle/defenseCircle",  
                "text": "联防圈",  
                "iconPath": "static/tabarImg/tabbar_2_normal.png",  
                "selectedIconPath": "static/tabarImg/tabbar_2_selected.png"  
            },  
            {  
                "pagePath": "pages/applicationCenter/applicationCenter",  
                "text": "应用中心",  
                "iconPath": "static/tabarImg/tabbar_3_normal.png",  
                "selectedIconPath": "static/tabarImg/tabbar_3_selected.png"  
            },  
            {  
                "pagePath": "pages/myInfo/myInfo",  
                "text": "我",  
                "iconPath": "static/tabarImg/tabbar_4_normal.png",  
                "selectedIconPath": "static/tabarImg/tabbar_4_selected.png"  
            }  

        ]  
    },
2020-11-27 14:52 负责人:无 分享
已邀请:
1***@qq.com

1***@qq.com

同问,仁兄解决了吗

4***@qq.com

4***@qq.com - 初来乍到!

同问

1***@qq.com

1***@qq.com

同问+1

hws007

hws007 - 我就是我!

删除app缓存,再试试

秃顶佩奇

秃顶佩奇 - 秃顶佩奇

请问有人解决这个问题了吗?

Yintel

Yintel

可能是因为图标路径有中文导致的

树先生614

树先生614

请问解决了吗

hws007

hws007 - 我就是我!

基座重新再打一个,试试

要回复问题请先登录注册