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