hookehuyr

🌈 style: 图片显示样式调整,列表文字占位长度调整

...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
2 <div class="book-item van-hairline--bottom" @click="handle"> 2 <div class="book-item van-hairline--bottom" @click="handle">
3 <van-row> 3 <van-row>
4 <van-col span="8"> 4 <van-col span="8">
5 - <van-image width="7rem" height="7rem" :src="item.cover" lazy-load style="text-align: center;"> 5 + <van-image width="7rem" height="7rem" :src="item.cover" fit="contain" lazy-load style="text-align: center;">
6 <template #:loading> 6 <template #:loading>
7 <van-loading type="spinner" size="20" /> 7 <van-loading type="spinner" size="20" />
8 </template> 8 </template>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
4 <div style="height: 1.5rem;" /> 4 <div style="height: 1.5rem;" />
5 <div class="book-detail"> 5 <div class="book-detail">
6 <div style="text-align: center;"> 6 <div style="text-align: center;">
7 - <van-image width="220" height="220" :src="bookInfo.cover" /> 7 + <van-image width="220" height="220" fit="contain" lazy-load :src="bookInfo.cover" />
8 </div> 8 </div>
9 <div class="book-intro"> 9 <div class="book-intro">
10 <p class="book-post">{{ bookInfo.name }}</p> 10 <p class="book-post">{{ bookInfo.name }}</p>
......
...@@ -2,18 +2,18 @@ ...@@ -2,18 +2,18 @@
2 * @Author: hookehuyr hookehuyr@gmail.com 2 * @Author: hookehuyr hookehuyr@gmail.com
3 * @Date: 2022-05-30 13:51:47 3 * @Date: 2022-05-30 13:51:47
4 * @LastEditors: hookehuyr hookehuyr@gmail.com 4 * @LastEditors: hookehuyr hookehuyr@gmail.com
5 - * @LastEditTime: 2022-06-01 15:47:05 5 + * @LastEditTime: 2022-06-02 16:24:30
6 * @FilePath: /tswj/src/views/client/donateList.vue 6 * @FilePath: /tswj/src/views/client/donateList.vue
7 * @Description: 幼儿园儿童捐赠金额排行榜 7 * @Description: 幼儿园儿童捐赠金额排行榜
8 --> 8 -->
9 <template> 9 <template>
10 <div class="wrapper"> 10 <div class="wrapper">
11 <van-row> 11 <van-row>
12 - <van-col span="20" style="padding: 1rem 0.5rem 1rem 0;"> 12 + <van-col span="19" style="padding: 1rem 0.5rem 1rem 0;">
13 <div :class="[kgInfo.multi_name ? 'heightHigh' : 'heightLow', 'kg-name']"> 13 <div :class="[kgInfo.multi_name ? 'heightHigh' : 'heightLow', 'kg-name']">
14 <van-row align="center" justify="center" style="position: relative; top: 50%; transform: translateY(-50%);"> 14 <van-row align="center" justify="center" style="position: relative; top: 50%; transform: translateY(-50%);">
15 <van-col span="4"> 15 <van-col span="4">
16 - <van-image round width="4rem" height="4rem" :src="kgInfo.kg_logo ? kgInfo.kg_logo : icon_logo" style="vertical-align: text-bottom;" /> 16 + <van-image round width="3.5rem" height="3.5rem" :src="kgInfo.kg_logo ? kgInfo.kg_logo : icon_logo" style="vertical-align: text-bottom;" />
17 </van-col> 17 </van-col>
18 <van-col span="20"> 18 <van-col span="20">
19 <div v-if="kgInfo.multi_name" style="margin-left: 1.5rem;"> 19 <div v-if="kgInfo.multi_name" style="margin-left: 1.5rem;">
...@@ -27,9 +27,9 @@ ...@@ -27,9 +27,9 @@
27 </van-row> 27 </van-row>
28 </div> 28 </div>
29 </van-col> 29 </van-col>
30 - <van-col span="4"> 30 + <van-col span="5">
31 <div class="flower"> 31 <div class="flower">
32 - <van-icon :name="icon_flower" color="#c5c5c5" size="1.5rem" style="vertical-align: bottom;" />&nbsp;3000 32 + <van-icon :name="icon_flower" color="#c5c5c5" size="1.25rem" style="vertical-align: bottom;" />&nbsp;{{ kgInfo.kg_total }}
33 </div> 33 </div>
34 </van-col> 34 </van-col>
35 </van-row> 35 </van-row>
...@@ -118,7 +118,7 @@ const onLoad = async () => { ...@@ -118,7 +118,7 @@ const onLoad = async () => {
118 <style lang="less" scoped> 118 <style lang="less" scoped>
119 .wrapper { 119 .wrapper {
120 padding-left: 0.5rem; 120 padding-left: 0.5rem;
121 - padding-right: 1rem; 121 + padding-right: 0.5rem;
122 background-color: #F7F7F7; 122 background-color: #F7F7F7;
123 position: relative; 123 position: relative;
124 124
...@@ -143,6 +143,7 @@ const onLoad = async () => { ...@@ -143,6 +143,7 @@ const onLoad = async () => {
143 text-align: center; 143 text-align: center;
144 position: absolute; 144 position: absolute;
145 top: 40%; 145 top: 40%;
146 + right: 0.5rem;
146 color: #713610; 147 color: #713610;
147 font-size: 1.25rem; 148 font-size: 1.25rem;
148 } 149 }
......