From be644d4fa5d6829bfcd1d0e9aa0ff46a26bda751 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E9=A3=9E=E6=B4=8B?= <15778543+xufeiyang6017@user.noreply.gitee.com> Date: Fri, 9 Jan 2026 12:00:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=94=AE=E7=A9=BA=E5=95=86?= =?UTF-8?q?=E5=93=81=E4=B8=8A=E6=8B=89=E5=8A=A0=E8=BD=BD=E6=9B=B4=E5=A4=9A?= =?UTF-8?q?=E6=97=B6=E9=A1=B5=E7=A0=81=E9=80=92=E5=A2=9E=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pages/index/index.js b/pages/index/index.js index 157446e..2ca3068 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -774,7 +774,9 @@ Page({ loadingMore: false, isLoading: false, isRefreshing: false, - page: this.data.page + 1, + // 根据当前是否在查询售空商品来更新对应的页码 + page: this.data.isQueryingSoldOut ? this.data.page : this.data.page + 1, + soldOutPage: this.data.isQueryingSoldOut ? this.data.soldOutPage + 1 : this.data.soldOutPage, lastDataTimestamp: new Date().getTime() }) @@ -1123,7 +1125,6 @@ Page({ this.setData({ hasMoreData: soldOutHasMore, isQueryingSoldOut: soldOutHasMore, - soldOutPage: soldOutPageNum + 1, categoryQueryCache: updatedCache, lastDataTimestamp: new Date().getTime(), goodsCache: updatedCache[cacheKey]