目前小程序不支持长按识别,只能通过wx.previewImage在新页面中预览图片长按识别或保存。PS:只能识别小程序码

    1. <image src="{{img}}" mode="aspectFit" class="tbwork" bindtap="previewImage" data-src="{{img}}"></image>
    1. //预览图片
    2. previewImage: function (e) {
    3. var current = e.target.dataset.src;
    4. wx.previewImage({
    5. current: current,
    6. urls: [current]
    7. })
    8. },