根据网上的建议,已经将代码很精简了一张图片设为透明
<image style="height: 100%;width: 100%;opacity: 0" src="http://devimg.webf10.com/wech...; />
<view>
<image src="http://devimg.webf10.com/wech...; data-src="http://devimg.webf10.com/wech...; bindtap="previewImage" />
</view>
index.js
previewImage: function(e) {
var current = e.target.dataset.src;
console.log(current)
wx.previewImage({
current: current,
urls: [current]
})
},
可是还是无法在真机上出现弹出识别二维码的选项,只是图片变大了而已,求给一个成功的demo
小程序里是不能识别二维码的