From a9c680d3fcde05afbbca0bb03f95e75027608b22 Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期六, 07 九月 2024 15:47:59 +0800
Subject: [PATCH] btn

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

diff --git a/pages/digitalTextbooks/digitalTextbooksDetails/index.js b/pages/digitalTextbooks/digitalTextbooksDetails/index.js
index 01c7c66..acd91b7 100644
--- a/pages/digitalTextbooks/digitalTextbooksDetails/index.js
+++ b/pages/digitalTextbooks/digitalTextbooksDetails/index.js
@@ -89,6 +89,18 @@
     this.setData({
       digitalTextId: options.id
     })
+    const token = wx.getStorageSync(app.config.tokenKey)
+    if (!token) {
+      loginInfo(app, (data) => {
+        if (data) {
+          this.digitalTextbooksDetailsGet(this.data.digitalTextId)
+          this.getType()
+          this.getCertificateList()
+        } else {
+
+        }
+      })
+    }
     this.digitalTextbooksDetailsGet(this.data.digitalTextId)
     this.getType()
     this.getCertificateList()
@@ -238,7 +250,7 @@
           isBuy: false
         })
       }
-      res.datas.publicationDate = moment(res.datas.publicationDate).format('YYYY骞碝M鏈圖D鏃�')
+      res.datas.publicationDate = moment(res.datas.publicationDate).format('YYYY骞碝M鏈�')
       if (res.datas.icon == '') {
         res.datas.icon = '/static/images/default-book-img.png'
       }

--
Gitblit v1.9.1