From e6e0218a1abd7395d00ade401c6ea6a02e7c3ece Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期四, 01 八月 2024 18:20:28 +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