From 81c23f9c2f5bdfbe962d0b19a5a80ea7c12f043d Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期三, 10 七月 2024 17:39:02 +0800 Subject: [PATCH] 二维码 --- pages/study/index.js | 31 ++++++++++++++++--------------- 1 files changed, 16 insertions(+), 15 deletions(-) diff --git a/pages/study/index.js b/pages/study/index.js index cb9b87e..490a6ae 100644 --- a/pages/study/index.js +++ b/pages/study/index.js @@ -36,22 +36,7 @@ */ onLoad() { // 妫�鏌ョ櫥褰曠姸鎬� - const token = wx.getStorageSync(app.config.tokenKey) - if (!token) { - loginInfo(app, (data) => { - if (data) { - this.getUserInfo() - this.getStaticsSum(); - this.getDataList(false); - } - }) - } else { - this.getUserInfo() - this.getStaticsSum(); - this.getDataList(false); - - } }, @@ -70,6 +55,21 @@ this.getTabBar().setData({ active: 2 }) + } + const token = wx.getStorageSync(app.config.tokenKey) + if (!token) { + loginInfo(app, (data) => { + if (data) { + this.getUserInfo() + this.getStaticsSum(); + this.getDataList(false); + } + }) + } else { + this.getUserInfo() + this.getStaticsSum(); + this.getDataList(false); + } }, @@ -171,6 +171,7 @@ }) } else { this.setData({ + list: [], skeletonLoding: false, loading: false }) -- Gitblit v1.9.1