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-02 16:28:19 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5aa7b0ce44a46e5e01a231b1696d5ecc4d77bc33
5aa7b0ce
1 parent
4000f4d2
🌈 style: 图片显示样式调整,列表文字占位长度调整
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
src/components/BookCard/index.vue
src/views/client/bookDetail.vue
src/views/client/rankList.vue
src/components/BookCard/index.vue
View file @
5aa7b0c
...
...
@@ -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" lazy-load style="text-align: center;">
<van-image width="7rem" height="7rem" :src="item.cover"
fit="contain"
lazy-load style="text-align: center;">
<template #:loading>
<van-loading type="spinner" size="20" />
</template>
...
...
src/views/client/bookDetail.vue
View file @
5aa7b0c
...
...
@@ -4,7 +4,7 @@
<div style="height: 1.5rem;" />
<div class="book-detail">
<div style="text-align: center;">
<van-image width="220" height="220" :src="bookInfo.cover" />
<van-image width="220" height="220"
fit="contain" lazy-load
:src="bookInfo.cover" />
</div>
<div class="book-intro">
<p class="book-post">{{ bookInfo.name }}</p>
...
...
src/views/client/rankList.vue
View file @
5aa7b0c
...
...
@@ -2,18 +2,18 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-05-30 13:51:47
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-06-0
1 15:47:05
* @LastEditTime: 2022-06-0
2 16:24:30
* @FilePath: /tswj/src/views/client/donateList.vue
* @Description: 幼儿园儿童捐赠金额排行榜
-->
<template>
<div class="wrapper">
<van-row>
<van-col span="
20
" style="padding: 1rem 0.5rem 1rem 0;">
<van-col span="
19
" style="padding: 1rem 0.5rem 1rem 0;">
<div :class="[kgInfo.multi_name ? 'heightHigh' : 'heightLow', 'kg-name']">
<van-row align="center" justify="center" style="position: relative; top: 50%; transform: translateY(-50%);">
<van-col span="4">
<van-image round width="
4rem" height="4
rem" :src="kgInfo.kg_logo ? kgInfo.kg_logo : icon_logo" style="vertical-align: text-bottom;" />
<van-image round width="
3.5rem" height="3.5
rem" :src="kgInfo.kg_logo ? kgInfo.kg_logo : icon_logo" style="vertical-align: text-bottom;" />
</van-col>
<van-col span="20">
<div v-if="kgInfo.multi_name" style="margin-left: 1.5rem;">
...
...
@@ -27,9 +27,9 @@
</van-row>
</div>
</van-col>
<van-col span="
4
">
<van-col span="
5
">
<div class="flower">
<van-icon :name="icon_flower" color="#c5c5c5" size="1.
5rem" style="vertical-align: bottom;" /> 3000
<van-icon :name="icon_flower" color="#c5c5c5" size="1.
25rem" style="vertical-align: bottom;" /> {{ kgInfo.kg_total }}
</div>
</van-col>
</van-row>
...
...
@@ -118,7 +118,7 @@ const onLoad = async () => {
<style lang="less" scoped>
.wrapper {
padding-left: 0.5rem;
padding-right:
1
rem;
padding-right:
0.5
rem;
background-color: #F7F7F7;
position: relative;
...
...
@@ -143,6 +143,7 @@ const onLoad = async () => {
text-align: center;
position: absolute;
top: 40%;
right: 0.5rem;
color: #713610;
font-size: 1.25rem;
}
...
...
Please
register
or
login
to post a comment