From 57f1ccddc0c724083a443cb13340ea106e70dabf Mon Sep 17 00:00:00 2001 From: "@fawn-nine" <1271023382@qq.com> Date: Tue, 5 Dec 2023 18:05:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AE=B2=E4=B9=A6bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/talkBook/talkBookML.vue | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/pages/talkBook/talkBookML.vue b/pages/talkBook/talkBookML.vue index af989a8..4e82dd7 100644 --- a/pages/talkBook/talkBookML.vue +++ b/pages/talkBook/talkBookML.vue @@ -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 {