From ba796764248d822e1e107d7df5ee86515e8b3ab7 Mon Sep 17 00:00:00 2001 From: Default User Date: Sat, 3 Jan 2026 15:57:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=BD=9C=E5=9C=A8bug?= =?UTF-8?q?=EF=BC=9A=E7=A7=BB=E9=99=A4=E6=97=A0=E9=99=90=E9=80=92=E5=BD=92?= =?UTF-8?q?=E9=A3=8E=E9=99=A9=EF=BC=8C=E4=BC=98=E5=8C=96pageSize=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/goods/index.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/pages/goods/index.js b/pages/goods/index.js index 2971579..262aa60 100644 --- a/pages/goods/index.js +++ b/pages/goods/index.js @@ -28,7 +28,7 @@ Page({ isLoading: false, isRefreshing: false, // 下拉刷新状态 currentPage: 1, - pageSize: 100, + pageSize: 20, hasMore: true, searchKeyword: '', activeFilter: 'all', // 当前筛选条件:all, small, large @@ -290,17 +290,6 @@ Page({ hasMore: hasMore, total: total }) - - // 如果是第一页,且筛选后的数据不足,尝试加载下一页 - if (this.data.currentPage === 1 && hasMore && filteredList.length < this.data.pageSize) { - console.log('筛选后数据不足,继续加载下一页') - this.setData({ - currentPage: this.data.currentPage + 1 - }) - // 递归调用loadGoodsList,继续加载下一页 - this.loadGoodsList() - return - } } else { console.log('没有产品数据返回') this.setData({