From 8ff9b0d45ac250607afa258cf095c9ac7624f96b Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期一, 09 九月 2024 20:14:59 +0800 Subject: [PATCH] bg --- pages/digitalCourses/digitalCoursesDetails/index.js | 50 ++++++++++++++++++++++++-------------------------- 1 files changed, 24 insertions(+), 26 deletions(-) diff --git a/pages/digitalCourses/digitalCoursesDetails/index.js b/pages/digitalCourses/digitalCoursesDetails/index.js index 23c4db3..ad21895 100644 --- a/pages/digitalCourses/digitalCoursesDetails/index.js +++ b/pages/digitalCourses/digitalCoursesDetails/index.js @@ -281,7 +281,6 @@ } } app.MG.store.getProductDetail(query).then(async res => { - console.log('淇℃伅', res); if (res.datas.purchasedSaleMethodIdList.includes(res.datas.defaultSaleMethodId)) { this.setData({ isBuy: true @@ -692,8 +691,13 @@ onCorrelationBook(e) { const item = e.currentTarget.dataset.item; - this.digitalCoursesDetailsGet(item.id) - this.getPlayerList() + // this.digitalCoursesDetailsGet(item.id) + // this.getPlayerList() + this.onLoad({ + loading: true, + id: item.id, + path: item.idPath + }) }, // 鑾峰彇鐩稿叧璇剧▼ @@ -735,7 +739,7 @@ } }) this.setData({ - relatedBookData: bookArr + relatedBookData: bookArr.slice(0, 6) }) } else { this.setData({ @@ -873,7 +877,6 @@ (data) => { let width = data.width let height = data.height - console.log(width, height) that.setData({ imageWidth: width, imageHeight: height, @@ -893,7 +896,6 @@ (data) => { let width = data.width let height = data.height - console.log(width, height) that.setData({ imageWidth: width, imageHeight: height, @@ -911,13 +913,11 @@ element: 'myCanvas', progress(percent) {}, finish(url) { - console.log("鐢熸垚鐨勫浘鐗囧湴鍧�", url) wx.getFileSystemManager().readFile({ filePath: url, encoding: 'base64', success: (res) => { let MyImageBase64 = 'data:image/jpg;base64,' + res.data - console.log('MyImageBase64', MyImageBase64) that.setData({ cbzsImg: MyImageBase64, pubCertificateHide: false, @@ -948,13 +948,11 @@ element: 'myCanvas1', progress(percent) {}, finish(url) { - console.log("鐢熸垚鐨勫浘鐗囧湴鍧�", url) wx.getFileSystemManager().readFile({ filePath: url, encoding: 'base64', success: (res) => { let MyImageBase641 = 'data:image/jpg;base64,' + res.data - console.log('MyImageBase64', MyImageBase641) that.setData({ rzzsImg: MyImageBase641, pubCertificateHide: false, @@ -1015,22 +1013,22 @@ onCertificate() { - // if (!this.data.isBuy) { - // wx.showToast({ - // title: "璇峰厛璐拱锛屼綋楠屽畬鏁存湇鍔�", - // icon: "none", - // duration: 1000, - // }); - // return false - // } - // if (!this.data.isLearn) { - // wx.showToast({ - // title: "鎮ㄧ殑瀛︿範浠诲姟杩樻湭瀹屾垚锛屾殏涓嶈兘鐢宠璇佷功锛屽姞娌瑰摝锛�", - // icon: "none", - // duration: 1000, - // }); - // return false - // } + if (!this.data.isBuy) { + wx.showToast({ + title: "璇峰厛璐拱锛屼綋楠屽畬鏁存湇鍔�", + icon: "none", + duration: 1000, + }); + return false + } + if (!this.data.isLearn) { + wx.showToast({ + title: "鎮ㄧ殑瀛︿範浠诲姟杩樻湭瀹屾垚锛屾殏涓嶈兘鐢宠璇佷功锛屽姞娌瑰摝锛�", + icon: "none", + duration: 1000, + }); + return false + } if (this.data.isCertificate && this.data.isCertificate.state == 'WaitAudit') { wx.showToast({ title: "鎮ㄧ敵璇风殑璇佷功姝e湪瀹℃牳涓�", -- Gitblit v1.9.1