Commit eaefd5590249acfb657482f5a114b0aa0d9f5b44

Authored by zhiyangdu
1 parent cac563fc

van-image异常图片处理

src/components/palaceGrid/palaceGrid.vue
... ... @@ -10,7 +10,11 @@
10 10 fit="cover"
11 11 lazy-load
12 12 :src="item.img || item"
13   - />
  13 + >
  14 + <template v-slot:error>
  15 + <img class="img" v-lazy="users.logo || item" alt=""/>
  16 + </template>
  17 + </van-image>
14 18 <div v-if="index<8&&item.v === true" class="play_box">
15 19 <img src="static/img/play.png" />
16 20 </div>
... ...
src/components/userAvatarBox/userAvatarBox.vue
... ... @@ -7,7 +7,9 @@
7 7 fit="cover"
8 8 lazy-load
9 9 :src="users.logo || item"
10   - />
  10 + >
  11 + <template v-slot:error><img class="avatar-img" v-lazy="users.logo || item" alt=""/></template>
  12 + </van-image>
11 13 </div>
12 14 <div class="nickname">
13 15 {{users.title}}
... ...