From 7f899b5f769d1646fa85d191263a9df563fa005c Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期二, 23 七月 2024 14:22:45 +0800
Subject: [PATCH] ‘’

---
 wechat_jiaxuan/app.js |   16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/wechat_jiaxuan/app.js b/wechat_jiaxuan/app.js
index bf87c72..17d1f15 100644
--- a/wechat_jiaxuan/app.js
+++ b/wechat_jiaxuan/app.js
@@ -1,4 +1,6 @@
-import { wxLoginCustomer } from './api/index'
+import {
+  wxLoginCustomer
+} from './api/index'
 App({
   globalData: {
     primary: '#B08771',
@@ -10,12 +12,11 @@
     if (WindowInfo.safeArea.top > 20) {
       this.globalData.bottomLift = WindowInfo.screenHeight - WindowInfo.safeArea.bottom;
     }
-    // 
-    const res = wx.getStorageSync('member')
-    if (res) {
-      this.globalData.userInfo = res
+    // 鎺堟潈鐧诲綍
+    const member = wx.getStorageSync('member')
+    if (member && member.token) {
+      
     } else {
-      // 鐧诲綍
       wx.login({
         timeout: 5000,
         success(res) {
@@ -43,5 +44,8 @@
         }
       })
     }
+
+
+
   }
 })
\ No newline at end of file

--
Gitblit v1.9.3