项目场景:
微信小程序是学习的第一个项目
问题描述
提示:这里描述项目中遇到的问题:
在图片数据传输过程中图片数据出现丢失的情况:
"tabBar": {
"list": [{
"pagePath": "pages/index/index",
"text": "首页",
"iconPath": "/image/shouye.png",
"selectedIconPath": "/image/shouyea.png"
},
{
"pagePath": "pages/news/news",
"text": "新闻",
"iconPath": "/image/new.png",
"selectedIconPath": "/image/newa.png"
},
{
"pagePath": "pages/case/case",
"text": "就业",
"iconPath": "/image/anlia.png",
"selectedIconPath": "/image/anlia.png"
},
{
"pagePath": "pages/login/login",
"text": "我的",
"iconPath": "/image/me.png",
"selectedIconPath": "/image/mea.png"
}]
},
原因分析:
是不是图片数据导入的方法不对还是xml文件没有导入进去
解决方案:
果然原来是吧index.wxml文件导入错了,换成indeed.wxml文件直接就好了,要记住这次的马虎在代码上面要严谨;