收藏
回答

在上传代码和预览的时候,提示:缺少文件

问题模块
开发者工具

在上传代码和预览的时候,提示:缺少文件, error: iconPath=pages/images/tab_home_normal.png, file not found,但是在编译的时候不报错,且tabbar的icon正常显示。

代码:

"tabBar": {

"list": [

{

"pagePath": "/pages/home/home",

"iconPath":"/pages/images/tab_home_normal.png",

"selectedIconPath":"pages/images/tab_home_press.png",

"text": "首页"

},

{

"pagePath": "pages/company/company",

"text": "公司介绍",

"iconPath": "pages/images/tab_company_normal.png",

"selectedIconPath": "pages/images/tab_company_press.png"

},

{

"pagePath": "pages/goods/goods",

"text": "公司产品",

"iconPath": "pages/images/tab_goods_normal.png",

"selectedIconPath": "pages/images/tab_goods_press.png"

},

{

"pagePath": "pages/we/we",

"text": "联系我们",

"iconPath": "pages/images/tab_we_normal.png",

"selectedIconPath": "pages/images/tab_we_press.png"

}

]

}



最后一次编辑于  2017-09-07  (未经腾讯允许,不得转载)
邀请回答
复制链接收藏关注问题回答

4 个回答