From d422c7c07b60a2061d587fc65c22dd2cc3006be9 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期三, 31 七月 2024 17:01:13 +0800
Subject: [PATCH] aa
---
wechat_staff/app.js | 20 +++++++++++++++-----
1 files changed, 15 insertions(+), 5 deletions(-)
diff --git a/wechat_staff/app.js b/wechat_staff/app.js
index 3dc96bb..553e978 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,14 @@
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',
+ })
+ }else{
+ getMemberInfo({goLogin:true}).then(res => {
+ })
+ }
+ },
+})
\ No newline at end of file
--
Gitblit v1.9.3