Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
template_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
杨硕
template_vue
Commits
2f98d7ca
Commit
2f98d7ca
authored
Mar 11, 2024
by
高宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
拍照上传功能加另外的参数
parent
b8970ba8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
1 deletion
+23
-1
WebViewContact.js
src/utils/WebViewContact.js
+16
-0
templateFirst.vue
src/views/template/templateFirst.vue
+7
-1
No files found.
src/utils/WebViewContact.js
View file @
2f98d7ca
...
@@ -8,6 +8,22 @@ export const openCamera = (params) => {
...
@@ -8,6 +8,22 @@ export const openCamera = (params) => {
})
})
})
})
}
}
// 拍照取相册 实现调用存储功能(带相册,文件资源功能)
export
const
openCameraStorage
=
(
params
)
=>
{
return
new
Promise
(
resolve
=>
{
DS_BRIDGE
.
call
(
'openCameraStorage'
,
params
,
res
=>
{
resolve
(
res
)
})
})
}
// 全部实现功能(带相机,相册,文件资源功能)
export
const
openCameraAll
=
(
params
)
=>
{
return
new
Promise
(
resolve
=>
{
DS_BRIDGE
.
call
(
'openCameraAll'
,
params
,
res
=>
{
resolve
(
res
)
})
})
}
// 扫码
// 扫码
export
const
openScan
=
(
params
)
=>
{
export
const
openScan
=
(
params
)
=>
{
return
new
Promise
(
resolve
=>
{
return
new
Promise
(
resolve
=>
{
...
...
src/views/template/templateFirst.vue
View file @
2f98d7ca
...
@@ -2589,6 +2589,8 @@ export default {
...
@@ -2589,6 +2589,8 @@ export default {
this
.
inspectInfoList
.
remarks
=
response
.
data
.
remarks
this
.
inspectInfoList
.
remarks
=
response
.
data
.
remarks
console
.
log
(
this
.
inspectInfoList
)
console
.
log
(
this
.
inspectInfoList
)
console
.
log
(
'-----------------------------------------------'
)
console
.
log
(
'-----------------------------------------------'
)
this
.
inspectJbAl2o3List
.
jcOneCode
=
response
.
data
.
jcOneCode
this
.
inspectJbAl2o3List
.
jcTwoCode
=
response
.
data
.
jcTwoCode
this
.
inspectJbAl2o3List
.
oneJcUser
=
response
.
data
.
oneJcUser
this
.
inspectJbAl2o3List
.
oneJcUser
=
response
.
data
.
oneJcUser
this
.
inspectJbAl2o3List
.
oneJcDate
=
response
.
data
.
oneJcDate
this
.
inspectJbAl2o3List
.
oneJcDate
=
response
.
data
.
oneJcDate
this
.
inspectJbAl2o3List
.
twoJcUser
=
response
.
data
.
twoJcUser
this
.
inspectJbAl2o3List
.
twoJcUser
=
response
.
data
.
twoJcUser
...
@@ -2761,9 +2763,13 @@ export default {
...
@@ -2761,9 +2763,13 @@ export default {
},
},
// 拍照上传
// 拍照上传
handleTakePhotos
()
{
handleTakePhotos
()
{
console
.
log
(
'调用前'
,
getToken
())
/**
* 调用拍照功能
* subPath 取值为方法名称
* **/
const
params
=
{
const
params
=
{
flag
:
'openCamera'
,
flag
:
'openCamera'
,
subPath
:
'openCamera'
,
tokenMsg
:
getToken
()
tokenMsg
:
getToken
()
}
}
this
.
$WebView
.
openCamera
(
params
).
then
(
res
=>
{
this
.
$WebView
.
openCamera
(
params
).
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