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
7600cc16
Commit
7600cc16
authored
May 23, 2025
by
gengchunlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
小程序 js实现扫码
parent
d38fcbbb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
analyzeQRCode.vue
src/views/component/analyzeQRCode.vue
+7
-3
myMap.vue
src/views/myMap.vue
+1
-1
No files found.
src/views/component/analyzeQRCode.vue
View file @
7600cc16
...
@@ -83,14 +83,18 @@ export default {
...
@@ -83,14 +83,18 @@ export default {
if
(
code
)
{
if
(
code
)
{
console
.
log
(
code
.
data
);
console
.
log
(
code
.
data
);
alert
(
code
.
data
);
//输出解析后的二维码
//输出解析后的二维码
this
.
$emit
(
"getQRCode"
,
code
.
data
)
getQR
(
code
.
data
)
}
}
}
}
requestAnimationFrame
(
tick
);
requestAnimationFrame
(
tick
);
}
}
}
function
getQR
(
val
)
{
that
.
$emit
(
"getQRCode"
,
val
)
}
},
}
}
}
}
...
...
src/views/myMap.vue
View file @
7600cc16
...
@@ -108,7 +108,7 @@
...
@@ -108,7 +108,7 @@
// this.subscanQRCallBack(111)
// this.subscanQRCallBack(111)
// 微信环境下 打开js扫码 (暂时关闭)
// 微信环境下 打开js扫码 (暂时关闭)
if
(
isWeiXin
()
){
if
(
true
){
this
.
showPop
=
true
this
.
showPop
=
true
}
else
{
}
else
{
callMobile
(
"qrcode"
,
{});
callMobile
(
"qrcode"
,
{});
...
...
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