From 07d966afd92b3bb7e40cccfa300a125000fd69e2 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期三, 31 七月 2024 20:16:42 +0800
Subject: [PATCH] 代码提交
---
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