<route lang="json">
{
  "style": {
    "navigationBarTitleText": "游学计划",
    "navigationBarBackgroundColor": "#fff"
  }
}
</route>
<script setup lang="ts">
import SectionHeading from '@/components/section-heading.vue'
import { getAllCategories, getContents, getStudyTours } from '../../../core/libs/requests'
import dayjs from 'dayjs'
import StudyTourCard from './components/study-tour-card.vue'
import { list } from 'radash'

const { data, run: setData } = useRequest(() => getContents({ contentType: '1' }), {
  initialData: { list: [] },
})
const title = computed(() => `${dayjs().year()}年游学计划`)
onMounted(async () => {
  await setData()
  console.log(data.value)
  await getAllCategories()
})
</script>
<template>
  <div class="flex flex-col gap-6 p-3.5">
    <SectionHeading custom-class="" :title="title"></SectionHeading>
    <div
      class="mx-3.5 relative top--4 text-justify text-black/40 text-sm font-normal font-['PingFang SC'] leading-relaxed"
    >
      *我们为您精心打造了一个独特且极具价值的游学项目。这个项目的核心旨在全方位提升
    </div>
    <template v-for="(it, index) in data.list" :key="index">
      <div class="mx--2.5 my--2.5">
        <StudyTourCard custom-class="" :options="it"></StudyTourCard>
      </div>
    </template>
  </div>
</template>
