收藏
回答

tabBar iconPath问题

框架类型 问题类型 操作系统 工具版本
小程序 Bug Windows 1.02

"tabBar": {

"list": [

{

"pagePath": "pages/posts/post",

"text": "文与字",

        "iconPath": "/images/tab/yuedu.png"

},

      {

"pagePath": "pages/posts/movies/movies",

"text": "光与影",

        "iconPath": "/images/tab/dianying.png"

}

]

}


路径

显示问题:


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

3 个回答

  • 厨子.熙
    厨子.熙
    2018-06-14

    "iconPath":"images/tab/yuedu.png"  没有斜杠

    2018-06-14
    有用
    回复
  • 2018-06-14

    图标都是俩,你咋就传了一个,

    {
            "pagePath": "pages/home/index/index",
            "iconPath": "./img/tabar/default_home.png",
            "selectedIconPath": "./img/tabar/homeH.png",
            "text": "首页"
          },


    2018-06-14
    有用
    回复
  • 安震110
    安震110
    2018-06-14

    清除文件缓存试试

    2018-06-14
    有用
    回复
登录 后发表内容