image使用云存储循环显示图片只能显示1张,报错404
- image使用云存储循环显示图片手机调试只能显示1张,其他两张报错404,开发者工具可以正常显示所有3张
4 回复
麻烦提供一下出现问题的机型和微信版本,并且给个相关的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html),我们定位下问题
我的是110张图片,只显示第一张,也是奇了怪了。图片路径使用云存储的图片路径就是只能显示一张图片。
页面代码:
< view class = "weui-grids2" > < view class = "weui-grid2" hover-class = "weui-grid_active2" wx:for = "{{rows}}" wx:key = "id" > < image src = "{{item.img}}" mode = "widthFix" /> < view class = "weui-grid__label2" >{{item.desc}}</ view > </ view > |
js代码:
var IMAGE_CLOUD_NUMBER_PATH = "cloud://env-memorytools-test-42147a.f2c2-env-memorytools-test-42147a/image/number/130x145/" ; var IMAGE_LOCAL_NUMBER_PATH = "../imgs/number/" ; var numberJson = [ { "sequ" : 0, "num" : "0" , "desc" : "0 呼啦圈" , "img" : IMAGE_CLOUD_NUMBER_PATH+ "0.png" }, { "sequ" : 1, "num" : "1" , "desc" : "1 蜡烛" , "img" : IMAGE_CLOUD_NUMBER_PATH+ "1.png" }, { "sequ" : 2, "num" : "2" , "desc" : "2 大鹅" , "img" : IMAGE_CLOUD_NUMBER_PATH+ "2.png" }, |