@@ -68,7 +68,7 @@ Page({
size,
id
}).then(res => {
- this.page += 1;
+ res.records && res.records.length && (this.page += 1);
this.total = res.total;
const list = [
...this.data.images,
@@ -136,7 +136,6 @@ Page({
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
- if (this.total <= this.data.images.length) return
this.getPhone(this.data.actMeet);
},
@@ -53,7 +53,7 @@ Page({
}).then(r => {
+ r.records && r.records.length && (this.page += 1);
this.total = r.total;
...this.data.videos,
@@ -24,9 +24,13 @@ Page({
category
+ const list = [
+ ...this.data.news,
+ ...(r.records || [])
+ ]
this.setData({
- news: r.records || []
+ news: list
})
@@ -1,4 +1,4 @@
{
- "navigationBarTitleText": "资讯论坛",
+ "navigationBarTitleText": "资讯",
"usingComponents": {}
}