Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
施宇
/
icsalesProgram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d34fd719
authored
Sep 29, 2019
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
bug
parent
8d7825fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
pages/tab/me/me.js
pages/tab/me/me.js
View file @
d34fd719
...
@@ -62,11 +62,19 @@ Page({
...
@@ -62,11 +62,19 @@ Page({
},
(
res
)
=>
{
},
(
res
)
=>
{
if
(
res
.
errcode
===
0
)
{
if
(
res
.
errcode
===
0
)
{
// 未企业认证的时候优先读取微信头像
// 未企业认证的时候优先读取微信头像
this
.
setData
({
if
(
res
.
data
.
avatar
==
''
)
{
userInfo
:
res
.
data
,
this
.
setData
({
headPic
:
res
.
data
.
avatar
headPic
:
res
.
data
.
wechat_oauth
.
oauth_head
});
});
}
else
{
this
.
setData
({
headPic
:
res
.
data
.
avatar
});
}
this
.
setData
({
userInfo
:
res
.
data
})
}
}
},
true
);
},
true
);
...
...
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