list.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <route lang="json">
  2. {
  3. "style": {
  4. "navigationBarTitleText": "游学计划",
  5. "navigationBarBackgroundColor": "#fff"
  6. }
  7. }
  8. </route>
  9. <script setup lang="ts">
  10. import SectionHeading from '@/components/section-heading.vue'
  11. import { getContents, getStudyTours } from '../../../core/libs/requests'
  12. import dayjs from 'dayjs'
  13. import StudyTourCard from './components/study-tour-card.vue'
  14. import PageHelper from '@/components/page-helper.vue'
  15. const title = computed(() => `${dayjs().year()}年游学计划`)
  16. onMounted(async () => {})
  17. </script>
  18. <template>
  19. <div class="flex flex-col gap-6 p-3.5">
  20. <SectionHeading custom-class="" :title="title"></SectionHeading>
  21. <div
  22. class="mx-3.5 relative top--4 text-justify text-black/40 text-sm font-normal font-['PingFang_SC'] leading-relaxed"
  23. >
  24. *我们为您精心打造了一个独特且极具价值的游学项目。这个项目的核心旨在全方位提升
  25. </div>
  26. <PageHelper :request="getStudyTours" :query="{}">
  27. <template #default="{ source }">
  28. <div class="py-4 flex flex-col gap-6">
  29. <template v-for="(it, index) in source.list" :key="index">
  30. <div class="mx--2.5 my--2.5">
  31. <StudyTourCard custom-class="" :options="it"></StudyTourCard>
  32. </div>
  33. </template>
  34. </div>
  35. </template>
  36. </PageHelper>
  37. </div>
  38. </template>