|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
<template>
|
|
|
<CommonTopBanner title="我的赐福订单">
|
|
<CommonTopBanner title="我的赐福订单">
|
|
|
<SimplePageListLoader :loader="listLoader" :emptyView="{ text: '冷冷清清,等你来添光加彩' }">
|
|
<SimplePageListLoader :loader="listLoader" :emptyView="{ text: '冷冷清清,等你来添光加彩' }">
|
|
|
- <FlexCol gap="gap.md">
|
|
|
|
|
|
|
+ <FlexCol gap="gap.md" padding="padding.md">
|
|
|
<BackgroundBox
|
|
<BackgroundBox
|
|
|
v-for="item in listLoader.list.value"
|
|
v-for="item in listLoader.list.value"
|
|
|
:key="item.id"
|
|
:key="item.id"
|
|
@@ -21,15 +21,17 @@
|
|
|
align="center"
|
|
align="center"
|
|
|
>
|
|
>
|
|
|
<FlexCol>
|
|
<FlexCol>
|
|
|
- <Text fontConfig="lightImportantTitle">{{ item.blessName }}</Text>
|
|
|
|
|
- <Text :size="23" :text="`${item.villageName} ${item.addLight}乡源光/${item.addFruit}乡源果`" />
|
|
|
|
|
|
|
+ <Text fontConfig="lightImportantTitle" fontFamily="SongtiSCBlack">{{ item.blessName }}</Text>
|
|
|
|
|
+ <Text :fontSize="23" :text="`${item.villageName} ${item.addLight}乡源光/${item.addFruit}乡源果`" />
|
|
|
</FlexCol>
|
|
</FlexCol>
|
|
|
- <FlexCol>
|
|
|
|
|
|
|
+ <FlexCol align="flex-end">
|
|
|
<FlexRow align="center" gap="gap.sm">
|
|
<FlexRow align="center" gap="gap.sm">
|
|
|
- <Text :size="23" fontFamily="SongtiSCBlack">¥</Text>
|
|
|
|
|
- <Text :size="40" fontFamily="SongtiSCBlack">{{ item.amount }}</Text>
|
|
|
|
|
|
|
+ <Text :fontSize="23" fontConfig="lightGoldTitle">¥</Text>
|
|
|
|
|
+ <Text fontConfig="lightGoldTitle">{{ item.amount }}</Text>
|
|
|
|
|
+ <Width :width="10" />
|
|
|
|
|
+ <Tag size="small" :text="item.statusText" :type="getStatusTypeByStatusText(item.statusText)" />
|
|
|
</FlexRow>
|
|
</FlexRow>
|
|
|
- <Text :size="23">{{ item.createtime }}</Text>
|
|
|
|
|
|
|
+ <Text fontConfig="secondText">{{ item.createtime }}</Text>
|
|
|
</FlexCol>
|
|
</FlexCol>
|
|
|
</Touchable>
|
|
</Touchable>
|
|
|
</BackgroundBox>
|
|
</BackgroundBox>
|
|
@@ -39,17 +41,19 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
|
|
|
+import { useLoadQuerys } from '@/components/composeabe/LoadQuerys';
|
|
|
|
|
+import { useAuthStore } from '@/store/auth';
|
|
|
|
|
+import { useSimplePageListLoader } from '@/components/composeabe/loader/SimplePageListLoader';
|
|
|
import FlexCol from '@/components/layout/FlexCol.vue';
|
|
import FlexCol from '@/components/layout/FlexCol.vue';
|
|
|
import TreeApi from '@/api/light/TreeApi';
|
|
import TreeApi from '@/api/light/TreeApi';
|
|
|
import SimplePageListLoader from '@/components/loader/SimplePageListLoader.vue';
|
|
import SimplePageListLoader from '@/components/loader/SimplePageListLoader.vue';
|
|
|
-import { useSimplePageListLoader } from '@/components/composeabe/loader/SimplePageListLoader';
|
|
|
|
|
import BackgroundBox from '@/components/display/block/BackgroundBox.vue';
|
|
import BackgroundBox from '@/components/display/block/BackgroundBox.vue';
|
|
|
import Touchable from '@/components/feedback/Touchable.vue';
|
|
import Touchable from '@/components/feedback/Touchable.vue';
|
|
|
import Text from '@/components/basic/Text.vue';
|
|
import Text from '@/components/basic/Text.vue';
|
|
|
-import { useLoadQuerys } from '@/components/composeabe/LoadQuerys';
|
|
|
|
|
-import { useAuthStore } from '@/store/auth';
|
|
|
|
|
import FlexRow from '@/components/layout/FlexRow.vue';
|
|
import FlexRow from '@/components/layout/FlexRow.vue';
|
|
|
import CommonTopBanner from '@/common/components/CommonTopBanner.vue';
|
|
import CommonTopBanner from '@/common/components/CommonTopBanner.vue';
|
|
|
|
|
+import Tag from '@/components/display/Tag.vue';
|
|
|
|
|
+import Width from '@/components/layout/space/Width.vue';
|
|
|
|
|
|
|
|
const { querys } = useLoadQuerys({
|
|
const { querys } = useLoadQuerys({
|
|
|
villageId: 0,
|
|
villageId: 0,
|
|
@@ -58,7 +62,7 @@ const { querys } = useLoadQuerys({
|
|
|
});
|
|
});
|
|
|
const authStore = useAuthStore();
|
|
const authStore = useAuthStore();
|
|
|
|
|
|
|
|
-const listLoader = useSimplePageListLoader(10, async (page, pageSize) => {
|
|
|
|
|
|
|
+const listLoader = useSimplePageListLoader(20, async (page, pageSize) => {
|
|
|
if (!querys.value.villageId || !authStore.userId) {
|
|
if (!querys.value.villageId || !authStore.userId) {
|
|
|
return {
|
|
return {
|
|
|
list: [],
|
|
list: [],
|
|
@@ -77,4 +81,14 @@ const listLoader = useSimplePageListLoader(10, async (page, pageSize) => {
|
|
|
};
|
|
};
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+function getStatusTypeByStatusText(statusText: string): 'warning' | 'success' | 'default' {
|
|
|
|
|
+ switch (statusText) {
|
|
|
|
|
+ case '待支付':
|
|
|
|
|
+ return 'warning';
|
|
|
|
|
+ case '已支付':
|
|
|
|
|
+ return 'success';
|
|
|
|
|
+ default:
|
|
|
|
|
+ return 'default';
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
</script>
|
|
</script>
|