|
@@ -41,6 +41,7 @@ import SectionHeading from '@/components/section-heading.vue'
|
|
|
import dayjs from 'dayjs'
|
|
|
import { pick, sort } from 'radash'
|
|
|
import { Activity, StudyTour } from '../../core/libs/models'
|
|
|
+import PageHelperEvo from '@/components/page-helper-evo.vue'
|
|
|
|
|
|
defineOptions({
|
|
|
name: 'Home',
|
|
@@ -100,9 +101,10 @@ onShow(async () => {
|
|
|
pageHelperRef.value?.refresh()
|
|
|
// await setStudyTours()
|
|
|
// setStudyTours()
|
|
|
+ await Promise.all([setHotActivities()])
|
|
|
})
|
|
|
onLoad(async () => {
|
|
|
- await Promise.all([setIndexConfigsData(), setStudyTours(), setHotActivities()])
|
|
|
+ await Promise.all([setIndexConfigsData(), setStudyTours()])
|
|
|
// await setIndexConfigsData()
|
|
|
// await setStudyTours()
|
|
|
swiperData.value = indexConfigsData.value.list.map((it) => ({
|
|
@@ -172,7 +174,7 @@ onShareAppMessage(async ({ from, target }) => {
|
|
|
<ButtonEvo color="red" size="lg">敌无命</ButtonEvo>
|
|
|
</div> -->
|
|
|
<menus></menus>
|
|
|
- <view class="my-6 mx-3.5">
|
|
|
+ <view v-if="hotActivities?.length" class="my-6 mx-3.5">
|
|
|
<HotActivity :items="hotActivities"></HotActivity>
|
|
|
</view>
|
|
|
<view v-if="features.about" class="my-6 mx-3.5" @click="toAbout()">
|
|
@@ -189,7 +191,16 @@ onShareAppMessage(async ({ from, target }) => {
|
|
|
</view>
|
|
|
<view class="mx-3.5 text-5 font-400">设计圈</view>
|
|
|
<view class="mx-3.5">
|
|
|
- <PageHelper ref="pageHelperRef" :request="getCircles" :query="{}">
|
|
|
+ <PageHelperEvo ref="pageHelperRef" :request="getCircles" class="">
|
|
|
+ <template #default="{ source }">
|
|
|
+ <template v-for="it of source.list" :key="it.id">
|
|
|
+ <view class="my-3">
|
|
|
+ <MomentItem :options="it" @like="handleLike"></MomentItem>
|
|
|
+ </view>
|
|
|
+ </template>
|
|
|
+ </template>
|
|
|
+ </PageHelperEvo>
|
|
|
+ <!-- <PageHelper ref="pageHelperRef" :request="getCircles" :query="{}">
|
|
|
<template #default="{ source }">
|
|
|
<template v-for="it of source.list" :key="it.id">
|
|
|
<view class="my-6">
|
|
@@ -197,7 +208,7 @@ onShareAppMessage(async ({ from, target }) => {
|
|
|
</view>
|
|
|
</template>
|
|
|
</template>
|
|
|
- </PageHelper>
|
|
|
+ </PageHelper> -->
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|