|
@@ -100,13 +100,13 @@ const handleLike = async (options) => {
|
|
const setHotActivities = async () => {
|
|
const setHotActivities = async () => {
|
|
const res = await Promise.all([
|
|
const res = await Promise.all([
|
|
getStudyTours({ headRecommend: 1 }).then((res) =>
|
|
getStudyTours({ headRecommend: 1 }).then((res) =>
|
|
- res.data.list.map((it) => ({ type: 'studyTour', data: it, startAt: it.applyStartTime })),
|
|
|
|
|
|
+ res.data.list.map((it) => ({ type: 'studyTour', data: it, startAt: it.headRecommendTime })),
|
|
),
|
|
),
|
|
getActivities({ headRecommend: 1 }).then((res) =>
|
|
getActivities({ headRecommend: 1 }).then((res) =>
|
|
- res.data.list.map((it) => ({ type: 'activity', data: it, startAt: it.applyStartTime })),
|
|
|
|
|
|
+ res.data.list.map((it) => ({ type: 'activity', data: it, startAt: it.headRecommendTime })),
|
|
),
|
|
),
|
|
])
|
|
])
|
|
- hotActivities.value = sort(res.flat(), (it) => it.startAt) as any
|
|
|
|
|
|
+ hotActivities.value = sort(res.flat(), (it) => it.startAt, true) as any
|
|
}
|
|
}
|
|
const handlePlay = async (id) => {
|
|
const handlePlay = async (id) => {
|
|
const body = pick(swiperData.value?.find((it) => it.data.id === id).data, ['id', 'status'])
|
|
const body = pick(swiperData.value?.find((it) => it.data.id === id).data, ['id', 'status'])
|