This commit is contained in:
shijingjing
2022-01-24 12:46:10 +08:00
parent 3b7ca10ef1
commit 196b342a9d
2 changed files with 5 additions and 2 deletions

View File

@@ -21,7 +21,8 @@
</div>
<div class="userInfo">
<div>
<img src="./components/img/user-img.png" alt="" class="userImg" >
<img src="item.photo" alt="" class="userImg" v-if="item.photo">
<img src="./components/img/user-img.png" alt="" class="userImg" v-else>
</div>
<div class="info">
<div class="name">
@@ -172,9 +173,10 @@ export default {
padding-right: 48px;
width: calc(100% - 100px);
.userImg {
padding-right: 32px;
margin-right: 32px;
width: 80px;
height: 80px;
border-radius: 50%;
}
.info {
width: calc(100% - 120px);

View File

@@ -150,6 +150,7 @@ export default {
margin-right: 32px;
width: 80px;
height: 80px;
border-radius: 50%;
}
.userInfo {
width: 100%;