hookehuyr

✨ feat: 去掉图片 lazy-load 属性,可能图片读不出来

......@@ -2,7 +2,7 @@
<div class="book-item van-hairline--bottom" @click="handle">
<van-row>
<van-col span="8">
<van-image width="7rem" height="7rem" :src="item.cover" fit="contain" lazy-load style="text-align: center;">
<van-image width="7rem" height="7rem" :src="item.cover" fit="contain" style="text-align: center;">
<template #loading>
<van-loading type="spinner" size="20" />
</template>
......
<template>
<div class="wrapper">
<div class="w-image">
<van-image class="van-hairline--surround avatar" round lazy-load :src="avatar ? avatar : icon_avatar">
<van-image class="van-hairline--surround avatar" round :src="avatar ? avatar : icon_avatar">
<template #error>加载失败</template>
</van-image>
</div>
......
......@@ -4,7 +4,7 @@
<div class="belong-school">
<van-row align="center" justify="center" style="position: relative; top: 50%; transform: translateY(-50%);">
<van-col span="2">
<van-image round width="3rem" height="3rem" lazy-load :src="kgInfo.logo ? kgInfo.logo : icon_logo"
<van-image round width="3rem" height="3rem" :src="kgInfo.logo ? kgInfo.logo : icon_logo"
style="vertical-align: text-bottom;" />
</van-col>
<van-col span="22">
......
<!--
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-05-21 09:35:14
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-06-09 14:55:26
* @FilePath: /tswj/src/views/client/bookDetail.vue
* @Description:
-->
<template>
<div class="book-detail-page content-bg">
<div class="modify-top" />
<div style="height: 1.5rem;" />
<div class="book-detail">
<div style="text-align: center;">
<van-image width="220" height="220" fit="contain" lazy-load :src="bookInfo.cover" />
<van-image width="220" height="220" fit="contain" :src="bookInfo.cover" />
</div>
<div class="book-intro">
<p class="book-post">{{ bookInfo.name }}</p>
......
......@@ -5,7 +5,7 @@
<div v-if="kg_id" :class="[kgInfo.multi_name ? 'height3rem' : 'height3rem', 'belong-school']">
<van-row align="center" justify="center" style="position: relative; top: 50%; transform: translateY(-50%)">
<van-col span="2">
<van-image round width="3rem" height="3rem" lazy-load :src="kgInfo.logo ? kgInfo.logo : icon_logo"
<van-image round width="3rem" height="3rem" :src="kgInfo.logo ? kgInfo.logo : icon_logo"
style="vertical-align: text-bottom" />
</van-col>
<van-col span="22">
......
......@@ -27,7 +27,7 @@
<div style="padding: 1rem; background-color: #F7F7F7;" @click="onClick(item)">
<van-row>
<van-col span="8" style="position: relative;">
<van-image width="8rem" height="5rem" fit="cover" lazy-load :src="item.cover"
<van-image width="8rem" height="5rem" fit="cover" :src="item.cover"
style="vertical-align: text-bottom;">
<template #error>加载失败</template>
</van-image>
......
......@@ -29,7 +29,7 @@
<div class="raw-ref" @click="goToVideoDetail(item)">
<van-row>
<van-col span="8" class="image">
<van-image width="8rem" height="5rem" fit="cover" lazy-load :src="item.cover"
<van-image width="8rem" height="5rem" fit="cover" :src="item.cover"
style="vertical-align: text-bottom;">
<template #error>加载失败</template>
</van-image>
......