Showing
1 changed file
with
4 additions
and
6 deletions
| ... | @@ -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 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:02:10 | 5 | + * @LastEditTime: 2022-06-01 15:40:42 |
| 6 | * @FilePath: /tswj/src/views/client/donateList.vue | 6 | * @FilePath: /tswj/src/views/client/donateList.vue |
| 7 | * @Description: 幼儿园捐赠人捐赠金额排行榜 | 7 | * @Description: 幼儿园捐赠人捐赠金额排行榜 |
| 8 | --> | 8 | --> |
| ... | @@ -62,15 +62,14 @@ | ... | @@ -62,15 +62,14 @@ |
| 62 | 62 | ||
| 63 | <script setup> | 63 | <script setup> |
| 64 | import { onMounted, ref } from 'vue' | 64 | import { onMounted, ref } from 'vue' |
| 65 | -import { useRoute, useRouter } from 'vue-router' | 65 | +import { useRoute } from 'vue-router' |
| 66 | -import { Cookies, $, _, axios, storeToRefs, mainStore, Toast, useTitle } from '@/utils/generatePackage.js' | 66 | +import { useTitle } from '@/utils/generatePackage.js' |
| 67 | //import { } from '@/utils/generateModules.js' | 67 | //import { } from '@/utils/generateModules.js' |
| 68 | import { icon_avatar, no_image, icon_flower, icon_logo } from '@/utils/generateIcons.js' | 68 | import { icon_avatar, no_image, icon_flower, icon_logo } from '@/utils/generateIcons.js' |
| 69 | //import { } from '@/composables' | 69 | //import { } from '@/composables' |
| 70 | import { kgDonateListAPI } from '@/api/C/kg.js' | 70 | import { kgDonateListAPI } from '@/api/C/kg.js' |
| 71 | 71 | ||
| 72 | -const $route = useRoute(); | 72 | +const $route = useRoute() |
| 73 | -const $router = useRouter(); | ||
| 74 | useTitle($route.meta.title); | 73 | useTitle($route.meta.title); |
| 75 | 74 | ||
| 76 | const kgInfo = ref({}); | 75 | const kgInfo = ref({}); |
| ... | @@ -98,7 +97,6 @@ onMounted(async () => { | ... | @@ -98,7 +97,6 @@ onMounted(async () => { |
| 98 | const onLoad = async () => { | 97 | const onLoad = async () => { |
| 99 | const { data } = await kgDonateListAPI({ kg_id, limit: limit.value, offset: offset.value }); | 98 | const { data } = await kgDonateListAPI({ kg_id, limit: limit.value, offset: offset.value }); |
| 100 | donateList.value = [...donateList.value, ...data.donate_list]; | 99 | donateList.value = [...donateList.value, ...data.donate_list]; |
| 101 | - // donateList.value = _.uniqBy(donateList.value, 'id'); | ||
| 102 | offset.value = donateList.value.length; | 100 | offset.value = donateList.value.length; |
| 103 | loading.value = false; | 101 | loading.value = false; |
| 104 | // 数据全部加载完成 | 102 | // 数据全部加载完成 | ... | ... |
-
Please register or login to post a comment