From dcd5065a6ed1b75b0e3c1491d267ab73b4997f11 Mon Sep 17 00:00:00 2001 From: yiming <m13691596795@163.com> Date: 星期四, 06 六月 2024 11:38:59 +0800 Subject: [PATCH] 数字教材详情 --- pages/study/index.js | 30 +++++++++++++++--------------- 1 files changed, 15 insertions(+), 15 deletions(-) diff --git a/pages/study/index.js b/pages/study/index.js index cb9b87e..1e682d6 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); - - } }, @@ -71,6 +56,21 @@ 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); + + } }, getUserInfo() { -- Gitblit v1.9.1