u-avatar头像组件

This commit is contained in:
jqtmviyu@gmail.com 2021-03-05 22:07:37 +08:00
parent ef0d1b59fb
commit a1c9b2c072

View File

@ -3,7 +3,7 @@
<!-- 1. 已登录 -->
<block v-if="userInfo.nickName">
<image class="user_avatar_bg" :src="userInfo.avatarUrl" mode="aspectFill"></image>
<image class="user_avatar" :src="userInfo.avatarUrl"></image>
<u-avatar :src="userInfo.avatarUrl" mode="circle" :sex-icon="userInfo.gender===1? 'man' : 'woman'" show-sex="true" size="large" show-level="true" level-icon="level"></u-avatar>
<text class="user_nickName">{{userInfo.nickName}}</text>
</block>
<!-- 2. 未登录 -->