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

拍照函数添加subPath传参

parent 5201646f
......@@ -13,7 +13,7 @@
<span>实现调用存储功能(带相册,文件资源功能)</span>
</div>
<div class="button_row">
<el-button type="primary" @click="handlePpenCameraAll">拍照3</el-button>
<el-button type="primary" @click="handleOpenCameraAll">拍照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 {
})
},
/** 全部实现功能(带相机,相册,文件资源功能)*/
handlePpenCameraAll() {
handleOpenCameraAll() {
const params = {
subPath: 'openCameraAll',
tokenMsg: getToken()
}
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