书评列表报错

This commit is contained in:
@fawn-nine
2023-12-04 10:25:32 +08:00
parent faf38825cc
commit 0829e6f5b6

View File

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