index.vue 1.1 KB

123456789101112131415161718192021222324252627282930
  1. <template>
  2. <FlexCol gap="gap.md">
  3. <FlexRow center :padding="[0,30]" gap="gap.md">
  4. <HomeLargeTitle title="村社名片" :active="tab === 'card'" @click="tab = 'card'" />
  5. <HomeLargeTitle title="乡源树" :active="tab === 'tree'" @click="tab = 'tree'">
  6. <template #icon>
  7. <Image src="https://xy.wenlvti.net/app_static/images/village/IconLargeTree.png" :width="45" :height="46" mode="heightFix" />
  8. </template>
  9. </HomeLargeTitle>
  10. </FlexRow>
  11. <Card v-if="tab === 'card'" />
  12. <Tree v-if="tab === 'tree'" />
  13. <Loadmore status="nomore" />
  14. <Height :height="150" />
  15. </FlexCol>
  16. </template>
  17. <script setup lang="ts">
  18. import Loadmore from '@/components/display/loading/Loadmore.vue';
  19. import FlexCol from '@/components/layout/FlexCol.vue';
  20. import Height from '@/components/layout/space/Height.vue';
  21. import Image from '@/components/basic/Image.vue';
  22. import HomeLargeTitle from '@/common/components/parts/HomeLargeTitle.vue';
  23. import FlexRow from '@/components/layout/FlexRow.vue';
  24. import { ref } from 'vue';
  25. import Card from './introd/card.vue';
  26. import Tree from './introd/tree.vue';
  27. const tab = ref('card');
  28. </script>