代码如下,安卓机上预览大图就是黑屏,问题在哪呢 previewImage: function (e) { var that = this; var src = e.currentTarget.dataset.src; var imglist = []; for (var i = 0; i < that.data.detail.fileList.length; i++) { imglist.push(that.data.siteurl + '/data/attachment/forum/'+ that.data.detail.fileList[i].filename) } wx.previewImage({ current: src, urls: imglist }) }
打印一下这个数组imglist
最好亮下代码。
previewImage: function (e) {
var that = this;
var src = e.currentTarget.dataset.src;
var imglist = [];
for (var i = 0; i < that.data.detail.fileList.length; i++) {
imglist.push(that.data.siteurl + '/data/attachment/forum/'+ that.data.detail.fileList[i].filename)
}
wx.previewImage({
current: src,
urls: imglist
})
}
图片地址贴下。