From e38c14de9637d22d0a35ae06bede82dcf31b64ec Mon Sep 17 00:00:00 2001
From: YM <479443481@qq.com>
Date: 星期二, 10 九月 2024 16:52:58 +0800
Subject: [PATCH] 1

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

diff --git a/pages/digitalTextbooks/digitalTextbooksDetails/index.js b/pages/digitalTextbooks/digitalTextbooksDetails/index.js
index dee28fb..f664efa 100644
--- a/pages/digitalTextbooks/digitalTextbooksDetails/index.js
+++ b/pages/digitalTextbooks/digitalTextbooksDetails/index.js
@@ -92,7 +92,13 @@
     const token = wx.getStorageSync(app.config.tokenKey)
     if (!token) {
       loginInfo(app, (data) => {
-        if (data) {} else {}
+        if (data) {
+          this.digitalTextbooksDetailsGet(this.data.digitalTextId)
+          this.getType()
+          this.getCertificateList()
+        } else {
+
+        }
       })
     }
     this.digitalTextbooksDetailsGet(this.data.digitalTextId)
@@ -244,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'
       }
@@ -522,7 +528,6 @@
 
   },
   onTabClick(e) {
-    // debugger
     console.log(e);
     let tab = e.currentTarget.dataset.tab;
 

--
Gitblit v1.9.1