Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
J
jd-vx-app
Project
Project
Details
Activity
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
Administrator
jd-vx-app
Commits
b9a66700
Commit
b9a66700
authored
May 31, 2022
by
lijiongliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
头像优化
parent
b18869e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
userInfo.vue
pagesD/pages/personal/userInfo.vue
+6
-8
No files found.
pagesD/pages/personal/userInfo.vue
View file @
b9a66700
...
...
@@ -239,15 +239,16 @@ export default {
},
select
()
{
let
that
=
this
uni
.
showLoading
({
title
:
"加载中"
,
mask
:
true
})
uni
.
chooseImage
({
count
:
1
,
//默认9
sizeType
:
[
'original'
,
'compressed'
],
//可以指定是原图还是压缩图,默认二者都有
sourceType
:
[
'album'
],
//从相册选择
success
:
function
(
res
)
{
uni
.
showLoading
({
title
:
"加载中"
,
mask
:
true
})
const
tempFilePaths
=
res
.
tempFilePaths
;
uni
.
uploadFile
({
url
:
that
.
http
.
baseUrl
+
'/app/user/upload'
,
...
...
@@ -295,10 +296,7 @@ export default {
});
}
});
},
fail
()
{
uni
.
hideLoading
()
}
}
});
},
...
...
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