[召唤大V]tabBar,selectedIconPath 文件不存在
发布于 6 年前 作者 qiang26 6070 次浏览 来自 问答

小程序代码编译后出现,如下一条错误,怎么找都找不到,求大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”

}

2 回复

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

图片不能放在 pages 目录里吧

回到顶部