//展示圖片
showImg: function (e) {
console.log(e, 135)
var that = this;
var imgAry = that.data.dataInfo.imageList
var a = imgAry.map(function (value, index) {
return value.thumb
})
console.log(a)
wx.previewImage({
urls: a,
current: e.currentTarget.dataset.thumb
})
},
把數據解析成路徑 及函數 根據對應的路徑 和urls數組集合賦值就可以了