|
@ -271,7 +271,7 @@ Page({ |
|
|
getNewsList: function () { |
|
|
getNewsList: function () { |
|
|
let that = this |
|
|
let that = this |
|
|
let para = { |
|
|
let para = { |
|
|
pageIndex: 1, |
|
|
pageIndex: this.data.pageNo, |
|
|
pageSize: 5, |
|
|
pageSize: 5, |
|
|
timestamp: getTimestamp() |
|
|
timestamp: getTimestamp() |
|
|
} |
|
|
} |
|
@ -279,7 +279,7 @@ Page({ |
|
|
that.setData({ |
|
|
that.setData({ |
|
|
first: false, |
|
|
first: false, |
|
|
newsList: that.data.newsList.concat(res.data), |
|
|
newsList: that.data.newsList.concat(res.data), |
|
|
loadMoreType: res.data.length === that.data.pageSize ? "loading" : "none", |
|
|
loadMoreType: res.data.length === 5 ? "loading" : "none", |
|
|
}) |
|
|
}) |
|
|
}).catch(() => { |
|
|
}).catch(() => { |
|
|
that.setData({ |
|
|
that.setData({ |
|
|