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 | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/pages/digitalTextbooks/digitalTextbooksDetails/index.js b/pages/digitalTextbooks/digitalTextbooksDetails/index.js index 01c7c66..f664efa 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' } @@ -516,7 +528,6 @@ }, onTabClick(e) { - // debugger console.log(e); let tab = e.currentTarget.dataset.tab; -- Gitblit v1.9.1