From 60310185230d93347ada8968cf98f7f0f65b0b07 Mon Sep 17 00:00:00 2001
From: "@fawn-nine" <1271023382@qq.com>
Date: Thu, 28 Sep 2023 16:58:16 +0800
Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=B8=83=E5=B1=80=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9=20=E8=AE=A2=E5=8D=95=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/eBook/bookContent.vue | 13 +++-
pages/library/library.vue | 146 ++++++++++++++++++++++++++++++------
pages/listen/home.vue | 2 +-
pages/listen/listen.vue | 46 ++++++++----
pages/peanut/home.vue | 2 +-
5 files changed, 166 insertions(+), 43 deletions(-)
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 @@