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 @@