收藏
回答

tabBar.list[0].iconPath 文件不存在

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

"tabBar": {

"color": "#dddddd",

"selectedColor": "#3cc51f",

"backgroundColor": "#000000",

"list": [{

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

"iconPath": "Base64路径",

"selectedIconPath": "http://www.misssystem.top/images/首页-选中.png",

"text": "计时"

},{

"pagePath": "pages/config/config",

"text": "设置"

}]

}

无论是网络路径还转换Base64和本地都是文件不存在


"tabBar": { "color": "#dddddd", "selectedColor": "#3cc51f", "backgroundColor": "#000000", "list": [{ "pagePath": "pages/index/index", "iconPath": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAODUlEQVR4Xu2de6jtRRXH11oTqeULA1+VJhaVpEXXqMgHKohZaZJ6S/MfpUjKtKCHihV2tSekZVJJJtVN1BQVKq28GtfiWmkXI4QSgiwtIstH5uPOWvHLfTSv95w9v9nz+83Mb74b/Mc7s9aaz5oP+5yz98yPCS8QAIFlCTDYgAAILE8AgmB3gMAKBCAItgcIQBDsARCII4B3kDhumNUIAQjSSKOxzDgCECSOG2Y1QgCCNNJoLDOOAASJ44ZZjRCAII00GsuMIwBB4rhhViMEIEjeRm/vnDvGzI4kolcQ0a7MvLOZ/ZWIuv82qur1RHQjET2St9Q2s0OQPH3fV0Q+TETvYuat5pVgZg8T0WWqeiER3T1vPP49HQEIko5lUCQRWcPMZwcN3myQmXkiOkNVL4qZjzn9CUCQ/sxiZ2zjnLuciI6ODbA0z8y+rqrvWzQO5s8nAEHmM0ox4nnOuRuI6MAUwWYxrvPeH0tEmxLGRKjNCECQ4bfEDs65m4ho1QCpbvLed7/gPz5AbIQkIggy7DbYSUTWM/M+A6ZZ770/nIgeHTBHs6EhyHCt301EfsbMLxsuxVORN3jvD8OfgtOThiDpmXYRXzKTY49hwm8x6u3e+0OI6KERc04+FQRJ3+KXisjPuw/80odeOaKZ3amqnST3j517qvkgSNrOdh8A3szML0gbNjyamf1BVd9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NCkPRMQyNCkFBSGcdBkHzwIUg+9sGZIUgwquQDIUhypOkDQpD0TEMjQpBQUhnHQZB88CFIPvbBmSFIMKrkAycjyD3M/KLkeMoIeLz3/qoySnlmFSLyAWb+Som1Jappg/f+jYlibTEMDxl8KbaI3MnM+46RK0MOvINkgD5L+UPv/VuGTD+KIM65n074EcUQZMgdukJsM7tUVU8ZMv0ogojIWmbuHgk2xRcEydRVMztfVc8eMv1Ygkz5ORUQZMgdukJs7/3RRHT9kOlHEYSIdhGR+5h5rHxDMts8NgQZk/Ysl5k9pKo7EdGmIdOPtmFF5ApmPn7IxWSKDUEygDezz6vqx4ZOPZogRLTX7KGSMvSiRo4PQUYGbmYPqOoeRPTg0KnHFIQm+lBJCDL0Lt0svpmdo6prxkg7qiBEtIOI3MbMLx9jcSPlgCAjgZ6ludV7fygRPTFG2rEF6da0q4hsYOY9x1jgCDnwSfoIkLsUZrZRVQ8e40erpSXlEKTLvZNz7loiOnAktkOmwTvIkHSfjn2N9/5EInp0nHRPZsklyP+Si8gaZh70g54RYJYsSPXfxer+nEtEn1DVC0bo5bNSZBVkVs3uIvIpIjqJmbfOAWHBnPgRa0GAW5puZt1fqC5R1fOI6J8DpAgKWYIgS4Vu55xbTUTHEdFWQdUXMMh738l9SwGlbKmEY5xzpxda23JlPUxEa733l5dQd0mClMADNYDAMwhAEGwIEFiBAATB9gABCII9AAJxBPAOEscNsxohAEEaaTSWGUcAgsRxw6xGCECQRhqNZcYRgCBx3DCrEQIQpJFGY5lxBCBIHDfMaoQABGmk0VhmHIH/Avbs/hTLu22EAAAAAElFTkSuQmCC", "selectedIconPath": "http://www.misssystem.top/images/首页-选中.png", "text": "计时" },{ "pagePath": "pages/config/config", "text": "设置" }] }
回答关注问题邀请回答
收藏

2 个回答

  • 晨
    2018-08-26

    你好,tabBar的图标目前只支持本地代码包中的图片

    2018-08-26
    有用
    回复 2
    • 陳~
      陳~
      2018-08-29

      放本地的也会有这个问题,根本不会显示出来

      2018-08-29
      3
      回复
    • 2018-09-06回复陳~

      你试试在硬盘打开,删除你的assets文件夹,是否提示“文件夹访问被拒绝”。

      我也遇到这个问题,目前还不知道怎么解决。

      2018-09-06
      回复
  • Aiden
    Aiden
    2018-08-28

    tabBar的图标目前只支持本地代码包中的图片

    2018-08-28
    有用
    回复 1
    • 陳~
      陳~
      2018-08-29

      放本地的也会有这个问题,根本不会显示出来

      2018-08-29
      回复
登录 后发表内容