升级到152900后,image组件的bindtap事件,取不到图片地址啦,
<image src="{{item.img}}" id="{{index}}" bindtap=“previewImage” class=“photo” mode=“aspectFill” />
//大图预览
previewImage: function (e) {
console.log(e);
var current = e.target.dataset.src;
wx.previewImage({
current: current,
urls: [current]
})
},
current是undefined!!