Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
contraceptives_app
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ynby
contraceptives_app
Commits
e5752a6e
Commit
e5752a6e
authored
Oct 21, 2020
by
gengchunlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
ee60e74d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
myMap.vue
src/views/myMap.vue
+8
-8
No files found.
src/views/myMap.vue
View file @
e5752a6e
...
...
@@ -55,6 +55,14 @@
},
created
()
{
},
mounted
()
{
this
.
createMap
();
// 将qrcodeContent方法绑定到window下面,提供给外部调用
document
.
addEventListener
(
"qrcodeContent"
,
this
.
subscanQRCallBack
);
},
beforeDestroy
()
{
//销毁
document
.
removeEventListener
(
"qrcodeContent"
,
this
.
subscanQRCallBack
);
},
methods
:
{
ScanCode
()
{
let
pars
=
{
...
...
@@ -238,14 +246,6 @@
this
.
$router
.
push
({
path
:
`/siteDetails`
,
query
:{
info
:
JSON
.
stringify
(
info
)}});
},
},
mounted
()
{
this
.
createMap
();
// 将subscanQRCallBack方法绑定到window下面,提供给外部调用
document
.
addEventListener
(
"qrcodeContent"
,
this
.
subscanQRCallBack
);
},
beforeDestroy
()
{
document
.
removeEventListener
(
"qrcodeContent"
,
this
.
subscanQRCallBack
);
},
}
</
script
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment