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-23 15:56:59 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
da396bce18f04c4b0c12c93fbc059319fbd63c19
da396bce
1 parent
837c0215
fix 扫描功能测试
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
src/views/bieyuan/map.vue
src/views/bieyuan/map.vue
View file @
da396bc
<!--
* @Date: 2023-05-19 14:54:27
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-09-23 1
4:54:34
* @LastEditTime: 2024-09-23 1
5:50:51
* @FilePath: /map-demo/src/views/bieyuan/map.vue
* @Description: 公众地图主体页面
-->
...
...
@@ -95,6 +95,7 @@ import pageInfo from '@/views/bieyuan/info.vue'
import audioBackground1 from '@/components/audioBackground1.vue'
import { mapState, mapActions } from 'pinia'
import { mainStore } from '@/store'
import { parseQueryString } from '@/utils/tools'
const GPS = {
PI: 3.14159265358979324,
...
...
@@ -639,12 +640,14 @@ export default {
scanType: ["qrCode","barCode"], // 可以指定扫二维码还是一维码,默认二者都有
success: (res) => {
var result = res.resultStr; // 当needResult 为 1 时,扫码返回的结果
// TODO: 等待真实扫描数据结构
let id = parseQueryString(result).id;
let marker_id = parseQueryString(result).marker_id;
// 跳转详情页
this.$router.push({
path: '/bieyuan/info',
query: {
id
: this.$route.query.id
,
marker_id
: '2098987'
id,
marker_id
}
})
}
...
...
Please
register
or
login
to post a comment