vue 写的H5 ,内嵌在小程序上
<img src="图片路径" style="width: 200px;background-size:100% 100%;height: 200px;-webkit-touch-callout : none;">
直接在微信访问长按就可以实现
微信原生直接写长按识别二维码
aaa(e){
let img = e.target.dataset.src;
wx.previewImage({
current: img,
urls: [img]
})
}
原生识别会弹框,目前原生官方没有提供直接识别二维码功能