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
1af8c4b4
Commit
1af8c4b4
authored
Mar 11, 2024
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
拍照函数添加subPath传参
parent
5201646f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
index.vue
src/views/setup/index.vue
+5
-2
No files found.
src/views/setup/index.vue
View file @
1af8c4b4
...
...
@@ -13,7 +13,7 @@
<span>
实现调用存储功能(带相册,文件资源功能)
</span>
</div>
<div
class=
"button_row"
>
<el-button
type=
"primary"
@
click=
"handle
P
penCameraAll"
>
拍照3
</el-button>
<el-button
type=
"primary"
@
click=
"handle
O
penCameraAll"
>
拍照3
</el-button>
<span>
全部实现功能(带相机,相册,文件资源功能)
</span>
</div>
<!--
</div>
-->
...
...
@@ -58,6 +58,7 @@ export default {
console
.
log
(
'调用前'
,
getToken
())
const
params
=
{
flag
:
'openCamera'
,
subPath
:
'openCamera'
,
tokenMsg
:
getToken
()
}
this
.
$WebView
.
openCamera
(
params
).
then
(
res
=>
{
...
...
@@ -69,6 +70,7 @@ export default {
/** 拍照取相册按钮*/
handleTakePhotosAlbum
()
{
const
params
=
{
subPath
:
'openCameraStorage'
,
tokenMsg
:
getToken
()
}
this
.
$WebView
.
openCameraStorage
(
params
).
then
(
res
=>
{
...
...
@@ -77,8 +79,9 @@ export default {
})
},
/** 全部实现功能(带相机,相册,文件资源功能)*/
handle
P
penCameraAll
()
{
handle
O
penCameraAll
()
{
const
params
=
{
subPath
:
'openCameraAll'
,
tokenMsg
:
getToken
()
}
this
.
$WebView
.
openCameraAll
(
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