小程序点击查看图片
<block wx:for="{{info.materials}}" wx:key="index">
<image class="img" mode="aspectFill" src="{{item}}" bindtap="previewImage" data-current="{{item}}"></image>
</block>
previewImage(e) {
const data = e.currentTarget.dataset;
wx.previewImage({
current: data.current,
urls: this.data.info.materials,
});
console.log(data,123);
},
