Skip to content

Commit

Permalink
fixed: followView layout display error
Browse files Browse the repository at this point in the history
  • Loading branch information
little-buddy committed Feb 22, 2021
1 parent e57cb8f commit 5402c19
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/pages/userinfo/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ export const useGetFollowList = () => {
} = info

return {
avatarIcon: avatarDetail.identityIconUrl,
avatarIcon: avatarDetail?.identityIconUrl,
avatar: avatarUrl,
followeds,
nickname,
playlistCount,
signature,
vip: vipRights.associator.rights ? vipRights.redVipLevel : 0
vip: vipRights?.associator.rights ? vipRights.redVipLevel : 0
}
})
} catch (e) {
Expand Down
14 changes: 8 additions & 6 deletions src/pages/userinfo/views/follow-view/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@ export const FollowCard = defineComponent({
fit="cover"
src={info.avatar}
></Image>
<Image
width="22"
height="22"
src={info.avatarIcon}
class="follow-card__avataricon"
></Image>
{info.avatarIcon && (
<Image
width="22"
height="22"
src={info.avatarIcon}
class="follow-card__avataricon"
></Image>
)}
</div>
<div class="follow-card__info">
<div class="follow-card__title">
Expand Down
1 change: 1 addition & 0 deletions src/pages/userinfo/views/follow-view/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
display: flex;
flex-wrap: wrap;
justify-content: space-between;
height: auto !important;
}

.follow-card {
Expand Down

0 comments on commit 5402c19

Please sign in to comment.