Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
HBHAndroid
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
1
Merge Requests
1
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
杨秀秀
HBHAndroid
Commits
761ab657
Commit
761ab657
authored
Mar 25, 2024
by
小费同学阿
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消费者 我的页面崩溃fixd
parent
fbacfa96
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
MineViewModel.java
...c/main/java/com/xx/hbhconsumer/ui/mine/MineViewModel.java
+8
-2
No files found.
consumer/src/main/java/com/xx/hbhconsumer/ui/mine/MineViewModel.java
View file @
761ab657
...
...
@@ -271,9 +271,15 @@ public class MineViewModel extends BaseViewModel<MineRequest> {
}).
subscribe
(
new
ApiDisposableObserver
<
MemberInfoBean
>()
{
@Override
public
void
onSuccess
(
MemberInfoBean
resultBean
)
{
Log
.
v
(
"头像头像"
,
resultBean
.
getMemberPicture
());
/*头像赋值*/
avatarImageUrl
.
setValue
(
resultBean
.
getMemberPicture
());
String
memberPicture
=
resultBean
.
getMemberPicture
();
if
(
memberPicture
!=
null
&&
!
memberPicture
.
isEmpty
())
{
Log
.
v
(
"头像头像"
,
resultBean
.
getMemberPicture
());
avatarImageUrl
.
setValue
(
memberPicture
);
}
else
{
memberPicture
=
""
;
avatarImageUrl
.
setValue
(
memberPicture
);
}
integralTotal
.
postValue
(
resultBean
.
getUsableIntegral
());
memberCoupon
.
postValue
(
resultBean
.
getMemberCoupon
());
memberName
.
postValue
(
resultBean
.
getGradeName
());
...
...
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