From f4f2891ac617aca6e2a5f1dc8f86ba3f054e3392 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期四, 01 八月 2024 08:52:35 +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