Commit addb9294 authored by linxin's avatar linxin

修复头像上传问题

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