From 2da083225417ef7007842b84e7276242faeb0e35 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期一, 05 八月 2024 16:18:58 +0800
Subject: [PATCH] lll

---
 wechat_jiaxuan/app.js |   26 ++++++++++++++------------
 1 files changed, 14 insertions(+), 12 deletions(-)

diff --git a/wechat_jiaxuan/app.js b/wechat_jiaxuan/app.js
index 55d4c10..9503c79 100644
--- a/wechat_jiaxuan/app.js
+++ b/wechat_jiaxuan/app.js
@@ -4,7 +4,8 @@
 } from './api/index'
 import CustomHook from 'spa-custom-hooks';
 let globalData = {
-  token: wx.getStorageSync('token'),
+  // token: wx.getStorageSync('token'),
+  token: '',
   primary: '#B08771',
   bottomLift: ''
 }
@@ -24,6 +25,8 @@
     if (WindowInfo.safeArea.top > 20) {
       this.globalData.bottomLift = WindowInfo.screenHeight - WindowInfo.safeArea.bottom
     }
+  },
+  onShow(op) {
     // 鎺堟潈鐧诲綍
     var userId = null
     if (op.query.scene) {
@@ -85,6 +88,7 @@
             }
           })
         } else {
+          this.globalData.token = token
           // if (op.query.scene) {
           //   let temp = op.query.scene.split('_')
           //   wx.navigateTo({
@@ -134,17 +138,15 @@
         }
       })
     }
-  },
-  onShow(options) {
-    const token = wx.getStorageSync('token') || ''
-    if(token){
-      if (options.query.scene) {
-        let temp = options.query.scene.split('_')
-        wx.navigateTo({
-          url: `${pathMap[temp[1]]}?id=${temp[0]}&userId=${temp[2]}`,
-        })
-      }
-    }
+    // const token = wx.getStorageSync('token') || ''
+    // if(token){
+    //   if (options.query.scene) {
+    //     let temp = options.query.scene.split('_')
+    //     wx.navigateTo({
+    //       url: `${pathMap[temp[1]]}?id=${temp[0]}&userId=${temp[2]}`,
+    //     })
+    //   }
+    // }
   }
 })
 CustomHook.install({

--
Gitblit v1.9.3