var that = this ; wx.scanCode({ success: function (res) { var code = res.result; that.setData({ snId: code }) }, fail: function (err) { console.log(err) } }) |
扫描的二维码扫出来是一串编码,要直接获取不想跳转。其他机型测试没有发现问题,目前测试到华为荣耀10调用失败fail,打开浏览器显示了扫描结果。
你好,麻烦提供出现问题的具体机型对应的微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
代码片段:https://developers.weixin.qq.com/s/gl3q7LmC7RaJ
手机机型:华为荣耀10
微信版本号:7.0.6
系统版本:android 9
二维码也提供下,另外华为荣耀10打印出来的fail回调信息截图看下