From e72f509ca0728f571fcf652e1e60d7af970518cf Mon Sep 17 00:00:00 2001
From: yiming <m13691596795@163.com>
Date: 星期四, 06 六月 2024 17:49:57 +0800
Subject: [PATCH] 数字教材跳转阅读器

---
 pages/digitalTextbooks/digitalTextbooksDetails/index.js |   28 +++++++++++++++-------------
 1 files changed, 15 insertions(+), 13 deletions(-)

diff --git a/pages/digitalTextbooks/digitalTextbooksDetails/index.js b/pages/digitalTextbooks/digitalTextbooksDetails/index.js
index b31a042..bf850f1 100644
--- a/pages/digitalTextbooks/digitalTextbooksDetails/index.js
+++ b/pages/digitalTextbooks/digitalTextbooksDetails/index.js
@@ -12,7 +12,7 @@
     isFavourite: true,
     richStyle: 'font-size: 28rpx;color: #333; line-height: 48rpx;text-align: justify;margin: 20rpx; ',
     briefIconClick: {
-      name: "/static/images/bookService/detail/tushujianjie-click.png",
+      name: "/static/images/bookService/detail/tushujianjie-g.png",
     },
     relatedBookData: [],
     publicationDate: '',
@@ -404,20 +404,22 @@
         duration: 1000,
       });
     }
+  },
+
+  // console.log(item, app.config.textReaderUrl);
+  // console.log(token);
+  goRead() {
+
+    const item = this.data.digitalsData
+
+    let token = wx.getStorageSync(app.config.tokenKey)
+    console.log();
+    const URL = app.config.textReaderUrl + '?bookId=' + item.refCode + "&tryPageCount=" + item.probationPage + "&token=" + token
 
 
-
-
-
-
-
-
-
-
-
-
-
-
+    wx.navigateTo({
+      url: '/pages/digitalTextbooks/digitalTextbooksDetails/components/webView/index?refCode=' + item.refCode + "&tryPageCount=" + item.probationPage
+    });
 
   }
 })
\ No newline at end of file

--
Gitblit v1.9.1