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

'face'

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