From 4496721cd3af3c68ed4d55218d3e83ea0664c57e Mon Sep 17 00:00:00 2001 From: yiming <m13691596795@163.com> Date: 星期一, 29 四月 2024 17:53:10 +0800 Subject: [PATCH] bug3 --- pages/bibliographyList/index.js | 22 +++++++++++++--------- 1 files changed, 13 insertions(+), 9 deletions(-) diff --git a/pages/bibliographyList/index.js b/pages/bibliographyList/index.js index a4e6b10..f7bba40 100644 --- a/pages/bibliographyList/index.js +++ b/pages/bibliographyList/index.js @@ -217,6 +217,7 @@ }, SysType: 'CmsItem' }).then(res => { + console.log(res); res.datas.forEach(item => { item.determine = true }) @@ -313,6 +314,7 @@ const item = event.currentTarget.dataset.item console.log(item); if (item.fileType == "pdf") { + wx.navigateTo({ url: "/packageBookService/pages/components/webView/index?md5=" + item.freeFile + @@ -320,12 +322,12 @@ item.name + "&fileType=" + item.fileType + "&bookBuy=true" - // "&freePage=" + - // this.data.fileInfo.freePage + + // "&freePage=" + + // this.data.fileInfo.freePage + - // + - // "&bookId=" + - // this.data.bookDetail.id, + + + "&bookId=" + + item.id, }); } else { Toast({ @@ -375,7 +377,7 @@ } - } else if (this.data.tabValue == 1) { + } else if (this.data.tabValue == 2) { if (this.data.teacherList.length < this.data.teacherTotal) { this.setData({ @@ -394,10 +396,12 @@ }, 100) } - console.log(2); - } else if (this.data.tabValue == 2) { - if (this.data.vocationalList.length < this.data.vocationalTotal && this.data.vocationalList.length > 9) { + } else if (this.data.tabValue == 1) { + + console.log(this.data.vocationalList.length); + console.log(this.data.vocationalTotal); + if (this.data.vocationalList.length < this.data.vocationalTotal) { this.setData({ isMore: true, start: this.data.start + 1 -- Gitblit v1.9.1