收藏
回答

tabBar图标显示问题请教

tabBar未选中状态不显示图标,选中状态显示图标。


"pages": [

    "pages/index/index",

    "pages/index2/index",

    "pages/logs/logs"

  ],

"tabBar": {

    "color": "#00000f",

    "selectedColor": "#ff0000",

    "list": [

    {

      "pagePath": "pages/index/index",

      "text": "首页",

      "iconsPath":"icons/home.png",

      "selectedIconPath": "icons/home_active.png"

    },

    {

      "pagePath": "pages/index2/index",

      "text": "导航",

      "iconsPath":"icons/navigation.png",

      "selectedIconPath": "icons/navigation_active.png"

    },

    {

      "pagePath": "pages/logs/logs",

      "text": "日志",

      "iconsPath": "icons/setting.png",

      "selectedIconPath": "icons/setting_active.png"

    }]

  }


回答关注问题邀请回答
收藏

1 个回答

  • 铭锋科技
    铭锋科技
    2019-07-14

    iconsPath,多了个s应该为iconPath

    2019-07-14
    有用 1
    回复 1
    • 鸵鸟
      鸵鸟
      2019-07-14
      谢谢,一直都是程序补全代码,不知道什么时候加了s。QAQ
      2019-07-14
      回复
登录 后发表内容