Commit f35e4012 authored by 李晓兵's avatar 李晓兵

'face'

parent 7bc24bb4
......@@ -383,11 +383,12 @@ export default {
})
},
takePhonto (status) {
let vm = this
hlsPopup.showPopup({
title: '提示',
content: `请自拍一张`,
onConfirm: () => {
this.takePhontoOpenCamera(status)
vm.takePhontoOpenCamera(status)
},
})
},
......@@ -395,10 +396,10 @@ export default {
takePhontoOpenCamera (status) {
let vm = this
let obj = {
'pkvalue': check_id,
'pkvalue': vm.confirm_id,
'source_type': 'PRJ_CDD_ITEM_CHECK',
'picture': '',
'check_id': check_id,
'check_id': vm.confirm_id,
'filePath': '',
'attachment_id': '',
'user_id': 1,
......@@ -406,7 +407,7 @@ export default {
}
let cameraoptions = {
quality: 100,
cameraDirection: 1,
// cameraDirection: 1,
}
let success = function (imgdata) {
obj.filePath = imgdata
......
......@@ -278,7 +278,7 @@ export default {
popoverOptions: CameraPopoverOptions,
saveToPhotoAlbum: window.localStorage.savePhoto || false,
correctOrientation: true,
cameraDirection: cameraoption.cameraDirection || 0
//cameraDirection: cameraoption.cameraDirection || 0
}
navigator.camera.getPicture(onSuccess, onFail, options)
} else {
......
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