From 3508c76f824c6632b47aff17b1ec2f2a11c504fc Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期四, 01 八月 2024 14:31:12 +0800
Subject: [PATCH] lll

---
 wechat_staff/app.js |   21 ++++++++++++++++-----
 1 files changed, 16 insertions(+), 5 deletions(-)

diff --git a/wechat_staff/app.js b/wechat_staff/app.js
index 3dc96bb..8b77696 100644
--- a/wechat_staff/app.js
+++ b/wechat_staff/app.js
@@ -1,4 +1,7 @@
-// app.js
+import {
+  wxLoginCustomer,
+  getMemberInfo
+} from './api/index'
 App({
   globalData: {
     primary: '#B08771',
@@ -10,7 +13,15 @@
     if (WindowInfo.safeArea.top > 20) {
       this.globalData.bottomLift = WindowInfo.screenHeight - WindowInfo.safeArea.bottom;
     }
-    // 
-    // let menuButtonInfo = wx.getMenuButtonBoundingClientRect();
-  }
-})
+    let users =  wx.getStorageSync('token') 
+    if(users ==null){
+      wx.navigateTo({
+        url: '/pages/login/index',
+      })
+      wx.showLoading({title: '鎺堟潈鐧诲綍涓�'})
+    }else{
+      getMemberInfo({goLogin:true}).then(res => {  
+      }) 
+    }
+  }, 
+})
\ No newline at end of file

--
Gitblit v1.9.3