From d2212709606b4e2af14d6a874f5f827767d7411c Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期一, 29 七月 2024 13:46:27 +0800
Subject: [PATCH] ''

---
 wechat_jiaxuan/pages/index/index.js |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/wechat_jiaxuan/pages/index/index.js b/wechat_jiaxuan/pages/index/index.js
index 2e777c9..e66444b 100644
--- a/wechat_jiaxuan/pages/index/index.js
+++ b/wechat_jiaxuan/pages/index/index.js
@@ -12,6 +12,7 @@
   HYEventBus
 } = require('hy-event-store')
 const eventBus = new HYEventBus()
+const app = getApp()
 Page({
 
   /**
@@ -48,6 +49,11 @@
     HOME_CLASS_B2: '',
     HOME_CLASS_C: '',
   },
+  onLoadLogin(options){
+    // 宸茬粡鐧诲綍锛屽彲浠ヨ蛋渚濊禆token鐨勯�昏緫浜�
+    console.log('棣栭〉鐨刼nLoadLogin',options,`{"token":"${app.globalData.token}"}`);
+    this.initData()
+  },
   onShow() {
     let that = this
     const member = wx.getStorageSync('member')
@@ -70,9 +76,6 @@
   onLoad(options) {
     const member = wx.getStorageSync('member')
     this.initDictData()
-    setTimeout(() => {
-      this.initData()
-    }, 1200)
   },
   changePath(e) {
     let index = e.currentTarget.dataset.type

--
Gitblit v1.9.3