书评列表报错
This commit is contained in:
@@ -167,7 +167,7 @@ import { data } from 'jquery';
|
|||||||
Files:[],
|
Files:[],
|
||||||
page:1,
|
page:1,
|
||||||
pageSize:10,
|
pageSize:10,
|
||||||
total:0,
|
total:0, // 资源的总页数
|
||||||
status:3,
|
status:3,
|
||||||
shupingList:[],
|
shupingList:[],
|
||||||
bfaid:null,
|
bfaid:null,
|
||||||
@@ -202,14 +202,20 @@ import { data } from 'jquery';
|
|||||||
this.newList = []
|
this.newList = []
|
||||||
this.hotList = []
|
this.hotList = []
|
||||||
this.bookList = []
|
this.bookList = []
|
||||||
|
this.total = 0
|
||||||
this.getBookList(this.commentsListTab, false)
|
this.getBookList(this.commentsListTab, false)
|
||||||
|
|
||||||
},
|
},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
|
if(this.newestpage + 1 <= this.total || this.hotestpage +1 <= this.total || this.booksetpage + 1 <= this.total){
|
||||||
this.newestpage++
|
this.newestpage++
|
||||||
this.hotestpage++
|
this.hotestpage++
|
||||||
this.booksetpage++
|
this.booksetpage++
|
||||||
this.getBookList(this.commentsListTab, false)
|
this.getBookList(this.commentsListTab, false)
|
||||||
|
}else{
|
||||||
|
this.status = 1
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
onLoad(e) {
|
onLoad(e) {
|
||||||
this.windowWidth = uni.getSystemInfoSync().windowWidth;
|
this.windowWidth = uni.getSystemInfoSync().windowWidth;
|
||||||
@@ -261,6 +267,7 @@ import { data } from 'jquery';
|
|||||||
this.newestpage = 1
|
this.newestpage = 1
|
||||||
this.hotestpage = 1
|
this.hotestpage = 1
|
||||||
this.booksetpage = 1
|
this.booksetpage = 1
|
||||||
|
this.total = 0
|
||||||
this.newList = []
|
this.newList = []
|
||||||
this.hotList = []
|
this.hotList = []
|
||||||
this.bookList = []
|
this.bookList = []
|
||||||
@@ -366,6 +373,7 @@ import { data } from 'jquery';
|
|||||||
}else{
|
}else{
|
||||||
this.bookList = this.bookList.concat(res.page.records)
|
this.bookList = this.bookList.concat(res.page.records)
|
||||||
}
|
}
|
||||||
|
this.total = res.page.pages
|
||||||
console.log(this.newList,'this.newList')
|
console.log(this.newList,'this.newList')
|
||||||
// let list = res.page.records
|
// let list = res.page.records
|
||||||
// console.log(list,'list')
|
// console.log(list,'list')
|
||||||
@@ -391,11 +399,11 @@ import { data } from 'jquery';
|
|||||||
// console.log(e,'e')
|
// console.log(e,'e')
|
||||||
// })
|
// })
|
||||||
// }
|
// }
|
||||||
if(res.page.records.length != 10){
|
// if(res.page.records.length != 10){
|
||||||
this.status = 1
|
// this.status = 1
|
||||||
} else {
|
// } else {
|
||||||
this.status = 0
|
this.status = 0
|
||||||
}
|
// }
|
||||||
// uni.hideLoading();
|
// uni.hideLoading();
|
||||||
}).catch((e)=>{
|
}).catch((e)=>{
|
||||||
console.log(e,'e')
|
console.log(e,'e')
|
||||||
|
|||||||
Reference in New Issue
Block a user