hookehuyr

列表显示内容长短优化

...@@ -49,14 +49,14 @@ const handle = () => { ...@@ -49,14 +49,14 @@ const handle = () => {
49 // 上传视频 49 // 上传视频
50 const show = ref(false); 50 const show = ref(false);
51 const onUpload = (v) => { 51 const onUpload = (v) => {
52 - show.value = true; 52 + // show.value = true;
53 // x_field_1是金数据表单传入的参数,老师上传的格式为:user_id-book_id-perf_id,perf_id 为 0 53 // x_field_1是金数据表单传入的参数,老师上传的格式为:user_id-book_id-perf_id,perf_id 为 0
54 let str = `${props.user_id}-${v.id}-0`; 54 let str = `${props.user_id}-${v.id}-0`;
55 location.href = `${JSJ_FORM_B}?x_field_1=${str}`; 55 location.href = `${JSJ_FORM_B}?x_field_1=${str}`;
56 // BUG: 关闭loading临时处理 56 // BUG: 关闭loading临时处理
57 - setTimeout(() => { 57 + // setTimeout(() => {
58 - show.value = false; 58 + // show.value = false;
59 - }, 2000); 59 + // }, 2000);
60 } 60 }
61 61
62 onBeforeRouteLeave(() => { 62 onBeforeRouteLeave(() => {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
2 * @Author: hookehuyr hookehuyr@gmail.com 2 * @Author: hookehuyr hookehuyr@gmail.com
3 * @Date: 2022-05-30 10:20:34 3 * @Date: 2022-05-30 10:20:34
4 * @LastEditors: hookehuyr hookehuyr@gmail.com 4 * @LastEditors: hookehuyr hookehuyr@gmail.com
5 - * @LastEditTime: 2022-06-02 11:08:29 5 + * @LastEditTime: 2022-06-02 16:34:53
6 * @FilePath: /tswj/src/components/RankingList/index.vue 6 * @FilePath: /tswj/src/components/RankingList/index.vue
7 --> 7 -->
8 <template> 8 <template>
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
16 </div> 16 </div>
17 <div v-else class="text">{{ indexKey + 1 }}</div> 17 <div v-else class="text">{{ indexKey + 1 }}</div>
18 </van-col> 18 </van-col>
19 - <van-col span="17" style="padding: 1rem 0.5rem 1rem 0;"> 19 + <van-col span="18" style="padding: 1rem 0.5rem 1rem 0;">
20 <div :class="[rankInfo.multi_name ? 'height6rem' : 'height3rem', 'kg-name']" @click="go('/client/chooseBook', { kg_id: rankInfo.id })"> 20 <div :class="[rankInfo.multi_name ? 'height6rem' : 'height3rem', 'kg-name']" @click="go('/client/chooseBook', { kg_id: rankInfo.id })">
21 <van-row align="center" justify="center" style="position: relative; top: 50%; transform: translateY(-50%);"> 21 <van-row align="center" justify="center" style="position: relative; top: 50%; transform: translateY(-50%);">
22 <van-col span="4"> 22 <van-col span="4">
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
34 </van-row> 34 </van-row>
35 </div> 35 </div>
36 </van-col> 36 </van-col>
37 - <van-col span="5"> 37 + <van-col>
38 <div class="flower" @click="go('/client/donateList', { kg_id: rankInfo.id })"> 38 <div class="flower" @click="go('/client/donateList', { kg_id: rankInfo.id })">
39 <van-icon :name="icon_flower" color="#c5c5c5" size="1.25rem" style="vertical-align: bottom;" />&nbsp;{{ rankInfo.qty }} 39 <van-icon :name="icon_flower" color="#c5c5c5" size="1.25rem" style="vertical-align: bottom;" />&nbsp;{{ rankInfo.qty }}
40 </div> 40 </div>
...@@ -102,7 +102,11 @@ if (rankInfo.value.name.indexOf(' ') > -1) { ...@@ -102,7 +102,11 @@ if (rankInfo.value.name.indexOf(' ') > -1) {
102 } 102 }
103 } 103 }
104 .flower { 104 .flower {
105 - text-align: center; position: absolute; top: 40%; color: #713610; 105 + text-align: center;
106 + position: absolute;
107 + top: 40%;
108 + right: 0.5rem;
109 + color: #713610;
106 } 110 }
107 111
108 .kg-name { 112 .kg-name {
......
...@@ -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:40:42 5 + * @LastEditTime: 2022-06-02 16:33:56
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="18" style="padding: 1rem 0.5rem 1rem 0;"> 12 + <van-col span="20" 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="6"> 30 + <van-col>
31 <div class="flower"> 31 <div class="flower">
32 - <van-icon :name="icon_flower" color="#c5c5c5" size="1.5rem" style="vertical-align: bottom;" />&nbsp;{{ kgInfo.kg_total }} 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>
...@@ -114,7 +114,7 @@ const onLoad = async () => { ...@@ -114,7 +114,7 @@ const onLoad = async () => {
114 <style lang="less" scoped> 114 <style lang="less" scoped>
115 .wrapper { 115 .wrapper {
116 padding-left: 0.5rem; 116 padding-left: 0.5rem;
117 - padding-right: 1rem; 117 + padding-right: 0.5rem;
118 background-color: #F7F7F7; 118 background-color: #F7F7F7;
119 position: relative; 119 position: relative;
120 120
...@@ -139,7 +139,7 @@ const onLoad = async () => { ...@@ -139,7 +139,7 @@ const onLoad = async () => {
139 text-align: center; 139 text-align: center;
140 position: absolute; 140 position: absolute;
141 top: 40%; 141 top: 40%;
142 - right: 1rem; 142 + right: 0.5rem;
143 color: #713610; 143 color: #713610;
144 font-size: 1.25rem; 144 font-size: 1.25rem;
145 } 145 }
......
...@@ -2,14 +2,14 @@ ...@@ -2,14 +2,14 @@
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-02 16:24:30 5 + * @LastEditTime: 2022-06-02 16:42:09
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="19" style="padding: 1rem 0.5rem 1rem 0;"> 12 + <van-col span="20" 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">
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
27 </van-row> 27 </van-row>
28 </div> 28 </div>
29 </van-col> 29 </van-col>
30 - <van-col span="5"> 30 + <van-col>
31 <div class="flower"> 31 <div class="flower">
32 <van-icon :name="icon_flower" color="#c5c5c5" size="1.25rem" style="vertical-align: bottom;" />&nbsp;{{ kgInfo.kg_total }} 32 <van-icon :name="icon_flower" color="#c5c5c5" size="1.25rem" style="vertical-align: bottom;" />&nbsp;{{ kgInfo.kg_total }}
33 </div> 33 </div>
......