From 12e72812d28c95394a17ec495985d44aff1c77f7 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期三, 06 十一月 2024 15:13:22 +0800 Subject: [PATCH] 文档资源查看优化 --- packageDomain/pages/resourceDetails/document/index.js | 8 ++------ assets/js/config.js | 3 +-- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/assets/js/config.js b/assets/js/config.js index ddf9b8f..cff2b6a 100644 --- a/assets/js/config.js +++ b/assets/js/config.js @@ -5,8 +5,7 @@ // export const epubUrl = "http://182.92.203.7:3007/epubReadMobile/"; export const epubUrl = "https://jsek.bnuic.com/epubReadMobile/#/"; // export const pdfUrl = "http://182.92.203.7:3007/pdfRead/"; -// const pdfUrl = "https://jsek.bnuic.com/pdfRead" // 姝e紡 -export const pdfUrl = "http://192.168.3.196:8080/pdfRead" +const pdfUrl = "https://jsek.bnuic.com/pdfRead" // 姝e紡 export const requestTimeOut = 300000; // 璇锋眰瓒呮椂鏃堕棿 export const tokenKey = "jsek-token"; export const userInfoKey = "website-front-userInfo"; // 鐢ㄦ埛淇℃伅key diff --git a/packageDomain/pages/resourceDetails/document/index.js b/packageDomain/pages/resourceDetails/document/index.js index 0f5bb65..2001062 100644 --- a/packageDomain/pages/resourceDetails/document/index.js +++ b/packageDomain/pages/resourceDetails/document/index.js @@ -50,7 +50,6 @@ wx.setNavigationBarTitle({ title: '璧勬簮璇︽儏' }); - console.log(options); const systInfo = wx.getSystemInfoSync(); const menu = wx.getMenuButtonBoundingClientRect(); // 鑳跺泭淇℃伅 const navBarHeight = (menu.top - systInfo.statusBarHeight) * 2 + menu.height; // 瀵艰埅鏍忛珮搴� @@ -105,7 +104,7 @@ this.setData({ pauseTime: Date.now() }) - if (wx.getStorageSync(app.config.tokenKey) && epubObj && epubObj.bookBuy) { + if (wx.getStorageSync(app.config.tokenKey)) { let duration = this.data.pauseTime - this.data.startTime this.count(duration) } @@ -118,7 +117,7 @@ this.setData({ pauseTime: Date.now() }) - if (wx.getStorageSync(app.config.tokenKey) && epubObj && epubObj.bookBuy) { + if (wx.getStorageSync(app.config.tokenKey)) { let duration = this.data.pauseTime - this.data.startTime this.count(duration) } @@ -195,7 +194,6 @@ query.storeInfo = this.data.storeInfo } app.MG.store.getProductDetail(query).then((res) => { - console.log(res); res.datas.cmsDatas[0].datas.forEach((item) => { if (this.data.productLinkPath == item.productLinkPath) { this.handleTeachData(item) @@ -338,7 +336,6 @@ handleTap: function () { const naturalResources = this.data.naturalResources; naturalResources.forEach(function (item) { - // console.log(item); }); }, @@ -375,7 +372,6 @@ const { trigger } = e.detail; - console.log(trigger); this.setData({ visible: false, }); -- Gitblit v1.9.1