|
@@ -17,11 +17,16 @@ import TimeLine from './components/time-line.vue'
|
|
import { getByDictType, getContents } from '../../../core/libs/requests'
|
|
import { getByDictType, getContents } from '../../../core/libs/requests'
|
|
import { DictType } from '../../../core/models/moment'
|
|
import { DictType } from '../../../core/models/moment'
|
|
|
|
|
|
-const { data: studyTours, run: setStudyTours } = useRequest(() =>
|
|
|
|
- getContents({ contentType: 'desin_learn' }),
|
|
|
|
|
|
+const { data: studyTours, run: setStudyTours } = useRequest(() => getContents({ contentType: '1' }))
|
|
|
|
+const { data: classmates, run: setClassmates } = useRequest(
|
|
|
|
+ () => getContents({ contentType: '1', contentCategory: '101', pageSize: '2' }),
|
|
|
|
+ { initialData: { list: [] } },
|
|
)
|
|
)
|
|
onMounted(async () => {
|
|
onMounted(async () => {
|
|
await setStudyTours()
|
|
await setStudyTours()
|
|
|
|
+ await setClassmates()
|
|
|
|
+ console.log(classmates.value)
|
|
|
|
+
|
|
console.log(studyTours.value)
|
|
console.log(studyTours.value)
|
|
})
|
|
})
|
|
</script>
|
|
</script>
|
|
@@ -102,12 +107,13 @@ onMounted(async () => {
|
|
</div>
|
|
</div>
|
|
</card>
|
|
</card>
|
|
<section-heading
|
|
<section-heading
|
|
- custom-class="my-6"
|
|
|
|
|
|
+ custom-class=""
|
|
title="同学荟"
|
|
title="同学荟"
|
|
path="/pages/home/classmates/index"
|
|
path="/pages/home/classmates/index"
|
|
></section-heading>
|
|
></section-heading>
|
|
- <class-item></class-item>
|
|
|
|
- <class-item></class-item>
|
|
|
|
|
|
+ <template v-for="(it, i) in classmates.list" :key="i">
|
|
|
|
+ <ClassItem :options="it"></ClassItem>
|
|
|
|
+ </template>
|
|
<section-heading custom-class="my-6" title="设计圈"></section-heading>
|
|
<section-heading custom-class="my-6" title="设计圈"></section-heading>
|
|
<moment-item></moment-item>
|
|
<moment-item></moment-item>
|
|
</view>
|
|
</view>
|