hookehuyr

fix 测试扫描功能

<!--
* @Date: 2023-05-19 14:54:27
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-09-20 17:45:35
* @LastEditTime: 2024-09-20 18:30:30
* @FilePath: /map-demo/src/views/bieyuan/map.vue
* @Description: 公众地图主体页面
-->
......@@ -602,10 +602,17 @@ export default {
},
scanQrcode() {
wx.scanQRCode({
needResult: 0, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果,
needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果,
scanType: ["qrCode","barCode"], // 可以指定扫二维码还是一维码,默认二者都有
success: function (res) {
success: (res) => {
var result = res.resultStr; // 当needResult 为 1 时,扫码返回的结果
this.$router.push({
path: '/bieyuan/info',
query: {
id: this.$route.query.id,
marker_id: result
}
})
}
});
// 识别率太低
......