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 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

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