Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
9
91isoft_web_vue
Project
Project
Details
Activity
Releases
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
张伯涛
91isoft_web_vue
Commits
2d4bc7ae
Commit
2d4bc7ae
authored
Mar 04, 2024
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
扫码获取参数,以及拍照token传参
parent
6f81b601
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
index.vue
src/views/setup/index.vue
+7
-3
No files found.
src/views/setup/index.vue
View file @
2d4bc7ae
...
@@ -8,15 +8,17 @@
...
@@ -8,15 +8,17 @@
<el-button
type=
"primary"
@
click=
"handleOutbound"
>
出库
</el-button>
<el-button
type=
"primary"
@
click=
"handleOutbound"
>
出库
</el-button>
<el-button
type=
"primary"
>
入库
</el-button>
<el-button
type=
"primary"
>
入库
</el-button>
</div>
</div>
<div>
扫码获取:
<span>
{{
scanCode
}}
</span></div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
getToken
}
from
'@/utils/auth'
export
default
{
export
default
{
name
:
'Index'
,
name
:
'Index'
,
data
()
{
data
()
{
return
{
return
{
scanCode
:
''
,
}
}
},
},
created
()
{
created
()
{
...
@@ -27,14 +29,16 @@ export default {
...
@@ -27,14 +29,16 @@ export default {
flag
:
'openScan'
flag
:
'openScan'
}
}
this
.
$WebView
.
openScan
(
params
).
then
(
res
=>
{
this
.
$WebView
.
openScan
(
params
).
then
(
res
=>
{
this
.
scanCode
=
res
console
.
log
(
'提交后结果'
,
res
)
console
.
log
(
'提交后结果'
,
res
)
})
})
},
},
/** 拍照按钮*/
/** 拍照按钮*/
handleTakePhotos
()
{
handleTakePhotos
()
{
console
.
log
(
'调用前'
)
console
.
log
(
'调用前'
,
getToken
()
)
const
params
=
{
const
params
=
{
flag
:
'openCamera'
flag
:
'openCamera'
,
tokenMsg
:
getToken
()
}
}
this
.
$WebView
.
openCamera
(
params
).
then
(
res
=>
{
this
.
$WebView
.
openCamera
(
params
).
then
(
res
=>
{
console
.
log
(
'拍照'
,
res
)
console
.
log
(
'拍照'
,
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