From 895f759a54e6193cc63905b88f245fb36d32dccb Mon Sep 17 00:00:00 2001 From: zheng020 Date: Fri, 29 May 2026 17:04:07 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9suqre=E9=87=8C?= =?UTF-8?q?=E9=9D=A2=E7=BB=84=E4=BB=B6=E7=9A=84=E6=A0=B7=E5=BC=8F=E5=92=8C?= =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/pages/square/hot-category-more.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/pages/square/hot-category-more.vue b/frontend/pages/square/hot-category-more.vue index 7dfbc7f..29c8fb6 100644 --- a/frontend/pages/square/hot-category-more.vue +++ b/frontend/pages/square/hot-category-more.vue @@ -113,6 +113,7 @@ const noMore = ref(false) const activeSubTab = ref('all') const likingMap = ref({}) const cardTapTimers = {} +const page = ref(1) // ========== 子标签配置(仅星卡) ========== const starCardSubTabs = [ @@ -153,12 +154,13 @@ const loadData = async (reset = false) => { if (reset) { noMore.value = false items.value = [] + page.value = 1 } loading.value = true try { - const res = await getHotRankingApi(dimension.value, null, 1, 20) + const res = await getHotRankingApi(dimension.value, null, page.value, 20) if (res.code === 200 && res.data?.items) { const newItems = res.data.items.map((item) => { @@ -178,6 +180,8 @@ const loadData = async (reset = false) => { if (res.data.items.length < 20) { noMore.value = true + } else { + page.value++ } } else { noMore.value = true