This commit is contained in:
shijingjing
2022-04-20 15:37:08 +08:00
parent 81068c24dd
commit 9e26794b24
7 changed files with 16 additions and 20 deletions

View File

@@ -3,8 +3,8 @@
<div class="card-list">
<div class="item" v-for="(item, index) in familyList" :key="index" @click="$linkTo(`./memberInfo?id=${item.id}`)">
<div class="userpic">
<img src="../static/avatar.png" alt="" v-if="item.photo">
<img src="../static/avatar.png" alt="" v-else>
<img :src="item.photo" alt="" v-if="item.photo">
<img src="https://cdn.cunwuyun.cn/dvcp/myFamily/tx.png" alt="" v-else>
</div>
<div class="user-info">
<p class="name">{{ item.name }}</p>
@@ -69,6 +69,7 @@ export default {
height: 96px;
margin-right: 10px;
img {
border-radius: 50%;
width: 100%;
height: 100%;
}