Browse Source

bug处理

master
kola-web 6 days ago
parent
commit
04e7e2af93
  1. 13
      src/pages/home/index.ts
  2. 2
      src/pages/home/index.wxml

13
src/pages/home/index.ts

@ -111,14 +111,11 @@ Page({ @@ -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({ @@ -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({

2
src/pages/home/index.wxml

@ -141,7 +141,7 @@ @@ -141,7 +141,7 @@
<swiper
class="swiper"
autoplay
indicator-dots
indicator-dots="{{bannerList.length > 1}}"
indicator-color="rgba(231, 234, 236, 1)"
indicator-active-color="rgba(195, 148, 255, 1)"
>

Loading…
Cancel
Save