From 04c7b0163caeae4ab1c5da62e301fa993101cfad Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期一, 31 三月 2025 10:40:45 +0800 Subject: [PATCH] bug修改 --- pages/bibliographyList/index.js | 50 +++++++++++++++++++++++++++++--------------------- 1 files changed, 29 insertions(+), 21 deletions(-) diff --git a/pages/bibliographyList/index.js b/pages/bibliographyList/index.js index f1bca7e..932a2c1 100644 --- a/pages/bibliographyList/index.js +++ b/pages/bibliographyList/index.js @@ -70,6 +70,10 @@ }); }, }) + const token = wx.getStorageSync(app.config.tokenKey) + if (token) { + this.getUserInfo() + } }, /** @@ -84,17 +88,7 @@ */ onShow() { // console.log(this.data.value); - // 妫�鏌ョ櫥褰曠姸鎬� - const token = wx.getStorageSync(app.config.tokenKey) - if (!token) { - loginInfo(app, (data) => { - if (data) { - this.getUserInfo() - } - }) - } else { - this.getUserInfo() - } + }, /** @@ -128,9 +122,8 @@ /** * 鐢ㄦ埛鐐瑰嚮鍙充笂瑙掑垎浜� */ - onShareAppMessage() { - - }, + onShareAppMessage() {}, + onShareTimeline() {}, // 鑾峰彇鐧诲綍鐢ㄦ埛韬唤 getUserInfo() { app.MG.identity.getCurrentAppUser().then(res => { @@ -183,7 +176,7 @@ queryType: '*', paging: { start: '0', - size: this.data.start * 9 + size: this.data.start * 12 }, coverSize: { width: 260 @@ -231,7 +224,7 @@ queryType: '*', paging: { start: '0', - size: this.data.start * 9 + size: this.data.start * 12 }, coverSize: { width: 260 @@ -275,7 +268,7 @@ queryType: '*', paging: { start: '0', - size: this.data.start * 9 + size: this.data.start * 12 }, coverSize: { width: 260 @@ -455,10 +448,25 @@ mailbox(e) { const key = e.currentTarget.dataset.key; const item = e.currentTarget.dataset.item; - this.setData({ - Md5: item.datas.freeFile.FileList[0].Md5, - dialogBox: true - }) + // 妫�鏌ョ櫥褰曠姸鎬� + const token = wx.getStorageSync(app.config.tokenKey) + if (!token) { + loginInfo(app, (data) => { + if (data) { + this.getUserInfo() + this.setData({ + Md5: item.datas.freeFile.FileList[0].Md5, + dialogBox: true + }) + } else {} + }) + } else { + this.setData({ + Md5: item.datas.freeFile.FileList[0].Md5, + dialogBox: true + }) + } + // wx.scanCode({ // success: res => { // console.log(res); -- Gitblit v1.9.1