diff --git a/pages/eBook/bookContent.vue b/pages/eBook/bookContent.vue index 27d9e90..a9824c9 100644 --- a/pages/eBook/bookContent.vue +++ b/pages/eBook/bookContent.vue @@ -3,7 +3,8 @@ - + + @@ -19,10 +20,10 @@ - - + + @@ -218,6 +219,12 @@ this.getComments() }, + // 去讲书 + goJiangShu(){ + uni.navigateTo({ + url: '../talkBook/talkBookDetail?bookId='+ this.bookId + }); + }, // 去听书 gotoListen(){ uni.navigateTo({ diff --git a/pages/library/library.vue b/pages/library/library.vue index 3a06316..c1e44b6 100644 --- a/pages/library/library.vue +++ b/pages/library/library.vue @@ -28,7 +28,7 @@ - + 已购图书 @@ -42,14 +42,70 @@ - - - - - + + + + + + + + + + + + {{item.name}} + + 作者:暂无 + {{item.authorName}} + + + + + + + + + + + + + 打 卡 + + + + + + + + + + 听 书 + + + + + + + 评 书 + + + + + + + + + + + 讲 书 + + + - {{item.name}} + + @@ -71,7 +127,8 @@ - + {{item.name}} @@ -163,7 +220,7 @@ // this.loadingNow = true console.log('到底了') if (this.contentShow == 1) { - if (this.page+1 <= this.totalPage) { + if (this.page + 1 <= this.totalPage) { this.page++ this.status = 0 this.getfreeBook() @@ -206,7 +263,7 @@ goPingshu(val) { console.log('评书', val) uni.navigateTo({ - url: '../comments/comments?bookid=' + val, + url: '../comments/comments?bookid=' + val.id, }); }, contentButtonClick(e) { @@ -228,12 +285,12 @@ if (res.page.records.length > 0) { this.bookList = this.bookList.concat(res.page.records) this.totalPage = res.page.pages - if(this.page == this.totalPage){ + if (this.page == this.totalPage) { this.status = 1 - }else{ + } else { this.status = 3 } - + } else { this.bookList = [] } @@ -269,7 +326,12 @@ }); }, - + noOp(){ + uni.showToast({ + title:'该书未开通此功能', + icon:'none' + }) + }, // 跳转详情页 goDetail(item) { console.log(item, 'goDetail-----') @@ -285,11 +347,23 @@ }); }, + // 跳转到讲书 + goJiangShu(val){ + uni.navigateTo({ + url: '../talkBook/talkBookDetail?bookId='+ val.id + }) + }, + // 跳转到打卡 + goDaKa(val){ + uni.navigateTo({ + url: '../clock/clock?bookid='+ val.id + }) + }, // 跳转到听书详情 goToListenFree(item) { // console.log(item,'item') uni.navigateTo({ - url: "../listen/listen?bookid=" + item.bookId + "&fengImg=" + item.image // 前台播放版本 + url: "../listen/listen?bookid=" + item.id // 前台播放版本 }); }, // 跳转11 @@ -304,7 +378,33 @@