<route lang="yaml">
style:
  navigationBarTitleText: 同学荟
  navigationBarBackgroundColor: '#fff'
</route>
<script setup lang="ts">
import { getClassmates } from '../../../core/libs/requests'
import ClassItem from '../components/class-item.vue'

const { data, run } = useRequest(getClassmates)
onMounted(run)
</script>
<template>
  <view class="mx-3.5">
    <template v-for="it of data" :key="it.id">
      <ClassItem></ClassItem>
    </template>
    <wd-loadmore custom-class="loadmore" state="finished" />
  </view>
</template>
