目前小程序不支持长按识别,只能通过wx.previewImage在新页面中预览图片长按识别或保存。PS:只能识别小程序码
<image src="{{img}}" mode="aspectFit" class="tbwork" bindtap="previewImage" data-src="{{img}}"></image>
//预览图片
previewImage: function (e) {
var current = e.target.dataset.src;
wx.previewImage({
current: current,
urls: [current]
})
},