Merge branch 'xie1108'

This commit is contained in:
@fawn-nine
2023-12-05 18:07:28 +08:00

View File

@@ -122,7 +122,7 @@
uni.stopPullDownRefresh();
},
onReachBottom() {
console.log('到底了',this.page+1 , this.totalPage)
// console.log('到底了',this.page+1 , this.totalPage)
if(this.page+1 <= this.totalPage){
this.page++
@@ -195,14 +195,14 @@
})
.then(res => {
if (res.code == 0) {
console.log(res, 'res')
// console.log(res, 'res')
this.bookInfo = res.book
// this.isBuy = res.book.isBuy
// this.freeChapterCount = res.book.freeChapterCount
} else {
console.log(res.msg)
}
console.log(res, 'res基本信息')
// console.log(res, 'res基本信息')
}).catch((error) => {
console.log(error)
})
@@ -228,19 +228,16 @@
.post('book/teach/getBookTeachItems', {
'bookId': this.bookid,
'limit': 20,
'page': this.page
// 'userid': this.userInfo.id,
// 'bookid':
// 'id': this.playid
'page': this.page
})
.then(res => {
if (res.code == 0) {
console.log(res, '章节目录')
console.log( '章节目录',res)
if (res.page.records.length > 0) {
this.libLIst = this.libLIst.concat(res.page.records)
this.status = 3
this.totalPage = res.page.pages
if(this.totalPage = res.page.current){
if(this.totalPage == res.page.current){
this.status = 1
}
} else {