From c6c73b7d709322052b9cd6777b3d6657e0d43d30 Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期六, 07 九月 2024 14:37:32 +0800
Subject: [PATCH] bug

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

diff --git a/pages/digitalTextbooks/digitalTextbooksDetails/index.js b/pages/digitalTextbooks/digitalTextbooksDetails/index.js
index 01c7c66..d787b87 100644
--- a/pages/digitalTextbooks/digitalTextbooksDetails/index.js
+++ b/pages/digitalTextbooks/digitalTextbooksDetails/index.js
@@ -89,6 +89,12 @@
     this.setData({
       digitalTextId: options.id
     })
+    const token = wx.getStorageSync(app.config.tokenKey)
+    if (!token) {
+      loginInfo(app, (data) => {
+        if (data) {} else {}
+      })
+    }
     this.digitalTextbooksDetailsGet(this.data.digitalTextId)
     this.getType()
     this.getCertificateList()
@@ -238,7 +244,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