From 04e7e2af9313f7dc11f34ee28cc4128771528daa Mon Sep 17 00:00:00 2001 From: kola-web Date: Sat, 19 Jul 2025 18:26:25 +0800 Subject: [PATCH] =?UTF-8?q?bug=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/home/index.ts | 13 ++----------- src/pages/home/index.wxml | 2 +- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/src/pages/home/index.ts b/src/pages/home/index.ts index 6039bf2..06586c2 100644 --- a/src/pages/home/index.ts +++ b/src/pages/home/index.ts @@ -111,14 +111,11 @@ Page({ }, }); }, - getList(newPage = 1) { + getList() { wx.ajax({ method: 'GET', url: '?r=xd/doctor/index/get-latest-material', - data: { - page: newPage, - count: 3, - }, + data: {}, }).then((res) => { res.list.forEach((item) => { item.PublishTime = dayjs(item.PublishTime).format('YYYY-MM-DD'); @@ -135,12 +132,6 @@ Page({ }); }); }, - onReachBottom() { - const { page, pages } = this.data.pagination; - if (pages > page) { - this.getList(page + 1); - } - }, handleDetail(e: any) { const { id } = e.currentTarget.dataset; wx.navigateTo({ diff --git a/src/pages/home/index.wxml b/src/pages/home/index.wxml index 409fa55..0160c39 100644 --- a/src/pages/home/index.wxml +++ b/src/pages/home/index.wxml @@ -141,7 +141,7 @@