Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
tswj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2022-06-09 14:56:16 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4e8cc25d32df8f1e1e53e4264d06370652558390
4e8cc25d
1 parent
45ee527f
✨ feat: 去掉图片 lazy-load 属性,可能图片读不出来
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
15 additions
and
7 deletions
src/components/BookCard/index.vue
src/components/RightSideList/index.vue
src/views/business/index.vue
src/views/client/bookDetail.vue
src/views/client/chooseBook.vue
src/views/me/callMe.vue
src/views/me/message.vue
src/components/BookCard/index.vue
View file @
4e8cc25
...
...
@@ -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>
...
...
src/components/RightSideList/index.vue
View file @
4e8cc25
<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>
...
...
src/views/business/index.vue
View file @
4e8cc25
...
...
@@ -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">
...
...
src/views/client/bookDetail.vue
View file @
4e8cc25
<!--
* @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>
...
...
src/views/client/chooseBook.vue
View file @
4e8cc25
...
...
@@ -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">
...
...
src/views/me/callMe.vue
View file @
4e8cc25
...
...
@@ -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>
...
...
src/views/me/message.vue
View file @
4e8cc25
...
...
@@ -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>
...
...
Please
register
or
login
to post a comment