上传头像

This commit is contained in:
duan
2024-05-16 13:52:38 +08:00
parent 855e165bff
commit bf3df88987
3 changed files with 69 additions and 11 deletions

View File

@@ -2,15 +2,15 @@
<view class="container">
<view class="user-info-wrap" @click="clickinformation">
<view style="width: 108rpx; height: 108rpx;border-radius: 50%;">
<image style="width: 108rpx; height: 108rpx; border-radius: 50%;" v-if="userInfo.avatar"
:src="userInfo.avatar" mode="aspectFill" >
<image style="width: 108rpx; height: 108rpx; border-radius: 50%;" v-if="userInfo.headImg"
:src="userInfo.headImg" mode="aspectFill" >
</image>
<image style="width: 108rpx; height: 108rpx; border-radius: 50%;" v-else src="@/static/avatar.png"
mode="aspectFill">
</image>
</view>
<view class="info flex-colum-start">
<text class="phone">{{userInfo.telephone || '无'}}</text>
<text class="phone">{{userInfo.nickName || '无'}}</text>
</view>
</view>
<view class="userinfoone">