Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xugong
hls-xcmg-vue-app
Commits
addb9294
Commit
addb9294
authored
Dec 04, 2019
by
linxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复头像上传问题
parent
8ae75ec7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
13 deletions
+15
-13
my-info.vue
src/pages/myInfo/my-info.vue
+15
-13
No files found.
src/pages/myInfo/my-info.vue
View file @
addb9294
...
...
@@ -553,27 +553,29 @@ export default {
},
imgUploadTakePicture
(
check_id
)
{
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
=
{
quality
:
100
,
}
let
success
=
function
(
imgUrl
)
{
let
obj
=
{
pkvalue
:
check_id
,
source_type
:
'HLS_APP_USER'
,
picture
:
''
,
check_id
:
check_id
,
filePath
:
''
,
attachment_id
:
''
,
user_id
:
1
,
fileName
:
''
,
}
obj
.
picture
=
imgUrl
obj
.
filePath
=
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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment