Commit 1af8c4b4 authored by 张伯涛's avatar 张伯涛

拍照函数添加subPath传参

parent 5201646f
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<span>实现调用存储功能(带相册,文件资源功能)</span> <span>实现调用存储功能(带相册,文件资源功能)</span>
</div> </div>
<div class="button_row"> <div class="button_row">
<el-button type="primary" @click="handlePpenCameraAll">拍照3</el-button> <el-button type="primary" @click="handleOpenCameraAll">拍照3</el-button>
<span>全部实现功能(带相机,相册,文件资源功能)</span> <span>全部实现功能(带相机,相册,文件资源功能)</span>
</div> </div>
<!-- </div>--> <!-- </div>-->
...@@ -58,6 +58,7 @@ export default { ...@@ -58,6 +58,7 @@ export default {
console.log('调用前', getToken()) console.log('调用前', getToken())
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 => {
...@@ -69,6 +70,7 @@ export default { ...@@ -69,6 +70,7 @@ export default {
/** 拍照取相册按钮*/ /** 拍照取相册按钮*/
handleTakePhotosAlbum() { handleTakePhotosAlbum() {
const params = { const params = {
subPath: 'openCameraStorage',
tokenMsg: getToken() tokenMsg: getToken()
} }
this.$WebView.openCameraStorage(params).then(res => { this.$WebView.openCameraStorage(params).then(res => {
...@@ -77,8 +79,9 @@ export default { ...@@ -77,8 +79,9 @@ export default {
}) })
}, },
/** 全部实现功能(带相机,相册,文件资源功能)*/ /** 全部实现功能(带相机,相册,文件资源功能)*/
handlePpenCameraAll() { handleOpenCameraAll() {
const params = { const params = {
subPath: 'openCameraAll',
tokenMsg: getToken() tokenMsg: getToken()
} }
this.$WebView.openCameraAll(params).then(res => { this.$WebView.openCameraAll(params).then(res => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment