Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
map-demo
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2024-09-20 18:32:29 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a9836bc806e1be48ee365cfea2c23bd32f379b3f
a9836bc8
1 parent
552ccf03
fix 测试扫描功能
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
src/views/bieyuan/map.vue
src/views/bieyuan/map.vue
View file @
a9836bc
<!--
* @Date: 2023-05-19 14:54:27
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-09-20 1
7:45:35
* @LastEditTime: 2024-09-20 1
8: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
}
})
}
});
// 识别率太低
...
...
Please
register
or
login
to post a comment