Commit 2f98d7ca authored by 高宇's avatar 高宇

拍照上传功能加另外的参数

parent b8970ba8
......@@ -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) => {
return new Promise(resolve => {
......
......@@ -2589,6 +2589,8 @@ export default {
this.inspectInfoList.remarks = response.data.remarks
console.log(this.inspectInfoList)
console.log('-----------------------------------------------')
this.inspectJbAl2o3List.jcOneCode = response.data.jcOneCode
this.inspectJbAl2o3List.jcTwoCode = response.data.jcTwoCode
this.inspectJbAl2o3List.oneJcUser = response.data.oneJcUser
this.inspectJbAl2o3List.oneJcDate = response.data.oneJcDate
this.inspectJbAl2o3List.twoJcUser = response.data.twoJcUser
......@@ -2761,9 +2763,13 @@ export default {
},
// 拍照上传
handleTakePhotos() {
console.log('调用前', getToken())
/**
* 调用拍照功能
* subPath 取值为方法名称
* **/
const params = {
flag: 'openCamera',
subPath: 'openCamera',
tokenMsg: getToken()
}
this.$WebView.openCamera(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