Commit f6b971f92eefe189550d5fc6621bc605a424f58c
1 parent
eaefd559
头像优化
Showing
3 changed files
with
8 additions
and
11 deletions
src/components/palaceGrid/palaceGrid.vue
| ... | ... | @@ -12,7 +12,7 @@ |
| 12 | 12 | :src="item.img || item" |
| 13 | 13 | > |
| 14 | 14 | <template v-slot:error> |
| 15 | - <img class="img" v-lazy="users.logo || item" alt=""/> | |
| 15 | + <img class="img" src="static/img/x.jpg" alt=""/> | |
| 16 | 16 | </template> |
| 17 | 17 | </van-image> |
| 18 | 18 | <div v-if="index<8&&item.v === true" class="play_box"> | ... | ... |
src/components/userAvatarBox/userAvatarBox.less
src/components/userAvatarBox/userAvatarBox.vue
| ... | ... | @@ -2,14 +2,10 @@ |
| 2 | 2 | <div class="user-avatar-box" v-if="users" @click="jump(users)"> |
| 3 | 3 | <div class="box"> |
| 4 | 4 | <div class="avatar-box"> |
| 5 | - <van-image | |
| 5 | + <img | |
| 6 | 6 | class="avatar-img" |
| 7 | - fit="cover" | |
| 8 | - lazy-load | |
| 9 | - :src="users.logo || item" | |
| 10 | - > | |
| 11 | - <template v-slot:error><img class="avatar-img" v-lazy="users.logo || item" alt=""/></template> | |
| 12 | - </van-image> | |
| 7 | + v-lazy="users.logo || item" | |
| 8 | + /> | |
| 13 | 9 | </div> |
| 14 | 10 | <div class="nickname"> |
| 15 | 11 | {{users.title}} | ... | ... |