From 1941e9fc342b3a2cb6d32e9658ad46f29f50a5df Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期一, 22 七月 2024 15:36:11 +0800
Subject: [PATCH] 代码提交
---
wechat_jiaxuan/app.js | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/wechat_jiaxuan/app.js b/wechat_jiaxuan/app.js
index bf87c72..d6e5d3e 100644
--- a/wechat_jiaxuan/app.js
+++ b/wechat_jiaxuan/app.js
@@ -1,4 +1,6 @@
-import { wxLoginCustomer } from './api/index'
+import {
+ wxLoginCustomer
+} from './api/index'
App({
globalData: {
primary: '#B08771',
@@ -10,12 +12,11 @@
if (WindowInfo.safeArea.top > 20) {
this.globalData.bottomLift = WindowInfo.screenHeight - WindowInfo.safeArea.bottom;
}
- //
- const res = wx.getStorageSync('member')
- if (res) {
- this.globalData.userInfo = res
+ // 鎺堟潈鐧诲綍
+ const member = wx.getStorageSync('member')
+ if (member) {
+
} else {
- // 鐧诲綍
wx.login({
timeout: 5000,
success(res) {
@@ -43,5 +44,7 @@
}
})
}
+
+
}
})
\ No newline at end of file
--
Gitblit v1.9.3