收藏
回答

[召唤大V]tabBar,selectedIconPath 文件不存在

小程序代码编译后出现,如下一条错误,怎么找都找不到,求大V指教,万份感谢

如下图:

BUG:

VM796:2 tabBar.list[2].selectedIconPath 文件不存在

(anonymous) @ VM796:2

代码:

"tabBar": {

"backgroundColor":"#ffffff",

"color":"#999999",

"selectedColor":"#CC1004",

"borderStyle":"black",

"list": [{

"pagePath": "pages/cook/cook",

"text": "学做菜",

"iconPath": "pages/images/tab/cook-0.jpg",

"selectedIconPath": "pages/images/tab/cook-1.jpg"

},{

"pagePath": "pages/headline/headline",

"text": "头条",

"iconPath": "pages/images/tab/headline-0.jpg",

"selectedIconPath": "pages/images/tab/headline-1.jpg"

},

{

"pagePath": "pages/food/food",

"text": "美食圈",

"iconPath": "pages/images/tab/food-0.jpg",

"selectedIconPath":"pages/images/tab/food-1.jpg"

},

{

"pagePath": "pages/message/message",

"text": "消息",

"iconPath": "pages/images/tab/message-0.jpg",

"selectedIconPath":"pages/images/tab/message-1.jpg"

},{

"pagePath": "pages/me/me",

"text": "我的",

"iconPath": "pages/images/tab/me-0.jpg",

"selectedIconPath": "pages/images/tab/me-1.jpg"

}


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

2 个回答

  • 流浪
    流浪
    2018-12-31

    我也遇到这个问题,同问。

    2018-12-31
    赞同
    回复
  • POPO
    POPO
    2018-10-05

    图片不能放在 pages 目录里吧

    2018-10-05
    赞同
    回复
登录 后发表内容