Commit addb9294 authored by linxin's avatar linxin

修复头像上传问题

parent 8ae75ec7
...@@ -553,27 +553,29 @@ export default { ...@@ -553,27 +553,29 @@ export default {
}, },
imgUploadTakePicture (check_id) { imgUploadTakePicture (check_id) {
let vm = this let vm = this
let obj = {
pkvalue: check_id,
source_type: 'HLS_APP_USER',
picture: '',
check_id: check_id,
filePath: '',
attachment_id: '',
user_id: 1,
fileName: '',
}
let cameraoptions = { let cameraoptions = {
quality: 100, quality: 100,
} }
let success = function (imgUrl) { let success = function (imgUrl) {
let obj = { obj.picture = imgUrl[0]
pkvalue: check_id, obj.filePath = imgUrl[0]
source_type: 'HLS_APP_USER',
picture: '',
check_id: check_id,
filePath: '',
attachment_id: '',
user_id: 1,
fileName: '',
}
obj.picture = imgUrl
obj.filePath = imgUrl
vm.upLoadObj = obj.picture vm.upLoadObj = obj.picture
// 拍完一张立马执行保存图片逻辑 // 拍完一张立马执行保存图片逻辑
vm.save_picture(obj) vm.save_picture(obj)
} }
let error = function () {} let error = function () {
hlsPopup.showLongCenter('请选择图片')
}
vm.hlsUtil.takePicture(cameraoptions, success, error) vm.hlsUtil.takePicture(cameraoptions, success, error)
}, },
openCamera (ocrType, type) { openCamera (ocrType, type) {
......
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