| | |
| | | import Community from './community.vue' |
| | | import { SwiperChangeEvent } from '@dcloudio/uni-app' |
| | | import { useGlobal } from '@/composables/useGlobal' |
| | | import { number } from 'uview-plus/libs/function/test' |
| | | const { $http, $message, $store } = useGlobal() |
| | | import { FilmWorks } from '@/types/index' |
| | | import { formatRelativeTime } from '@/utils/time' |
| | |
| | | const communityPage = ref(1) |
| | | const communitySize = 10 |
| | | const communityStatus = ref('loading') |
| | | |
| | | |
| | | const getCommunitys = async () => { |
| | | if (communityStatus.value === 'nomore') return |
| | | |
| | |
| | | communityStatus.value = 'noMore' |
| | | } |
| | | } |
| | | const getCommunitys_bak = async () => { |
| | | communitys.value = await getFilmWorks(FilmWorksCategory.COMMUNITY, 10, 1); |
| | | } |
| | | // 内容精选 |
| | | const getFilmWorks = async (type: String, pageSize: Number, currentPage: Number) => { |
| | | const { |
| | |
| | | $message.showToast('系统异常,无法获取数据') |
| | | return null; |
| | | } |
| | | |
| | | } |
| | | |
| | | // 下一页 |