Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
h5
Overview
Overview
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
vanke
h5
Commits
f9207d15
Commit
f9207d15
authored
Jul 03, 2020
by
wangyalan-git
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
库存统计,领用记录,库存统计,领用详情
parent
4ceba86b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
17 deletions
+1
-17
index.html
public/index.html
+0
-8
scan.vue
src/views/Admin/scan.vue
+1
-9
No files found.
public/index.html
View file @
f9207d15
...
...
@@ -25,14 +25,6 @@
// 声明需要监听的事件,声明后可通过 document.addEventListener 绑定监听函数
// jsEventList: ['appear', 'disappear']
})
window
.
qing
.
call
(
'scanQRCode'
,
{
success
:
function
(
res
)
{
}
})
// 监听appear事件
qing
.
on
(
'appear'
,
function
(
res
)
{
})
</script>
</body>
</html>
src/views/Admin/scan.vue
View file @
f9207d15
...
...
@@ -56,18 +56,10 @@ export default {
methods
:
{
// 员工二维码扫描
scanQrCode
()
{
console
.
log
(
'扫描'
,
window
.
qing
)
window
.
qing
.
config
({
debug
:
true
,
// 声明需要调用的API
jsApiList
:
[
'scanQRCode'
]
// 声明需要监听的事件,声明后可通过 document.addEventListener 绑定监听函数
// jsEventList: ['appear', 'disappear']
})
window
.
qing
.
call
(
'scanQRCode'
,
{
needResult
:
1
,
success
:
function
(
result
)
{
const
data
=
JSON
.
parse
(
result
.
data
.
qrcode_str
)
const
data
=
JSON
.
parse
(
result
.
data
)
checkQcode
(
data
).
then
(
res
=>
{
console
.
log
(
'校验结果'
,
res
)
getMemberInfo
({
memberId
:
data
.
memberId
}).
then
(
res
=>
{
...
...
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