From d0830f5b4976eb2a7066a16dadc37ce1985bf730 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期四, 15 八月 2024 09:37:55 +0800
Subject: [PATCH] ll
---
wechat_jiaxuan/app.js | 39 +++++++++++++++++++++------------------
1 files changed, 21 insertions(+), 18 deletions(-)
diff --git a/wechat_jiaxuan/app.js b/wechat_jiaxuan/app.js
index 55d4c10..0d84e2d 100644
--- a/wechat_jiaxuan/app.js
+++ b/wechat_jiaxuan/app.js
@@ -4,7 +4,8 @@
} from './api/index'
import CustomHook from 'spa-custom-hooks';
let globalData = {
- token: wx.getStorageSync('token'),
+ // token: wx.getStorageSync('token'),
+ token: '',
primary: '#B08771',
bottomLift: ''
}
@@ -24,6 +25,8 @@
if (WindowInfo.safeArea.top > 20) {
this.globalData.bottomLift = WindowInfo.screenHeight - WindowInfo.safeArea.bottom
}
+ },
+ onShow(op) {
// 鎺堟潈鐧诲綍
var userId = null
if (op.query.scene) {
@@ -85,12 +88,14 @@
}
})
} else {
- // if (op.query.scene) {
- // let temp = op.query.scene.split('_')
- // wx.navigateTo({
- // url: `${pathMap[temp[1]]}?id=${temp[0]}&userId=${temp[2]}`,
- // })
- // }
+ this.globalData.token = token
+ wx.setStorageSync('member', res.data)
+ if (op.query.scene) {
+ let temp = op.query.scene.split('_')
+ wx.navigateTo({
+ url: `${pathMap[temp[1]]}?id=${temp[0]}&userId=${temp[2]}`,
+ })
+ }
}
})
} else {
@@ -134,17 +139,15 @@
}
})
}
- },
- onShow(options) {
- const token = wx.getStorageSync('token') || ''
- if(token){
- if (options.query.scene) {
- let temp = options.query.scene.split('_')
- wx.navigateTo({
- url: `${pathMap[temp[1]]}?id=${temp[0]}&userId=${temp[2]}`,
- })
- }
- }
+ // const token = wx.getStorageSync('token') || ''
+ // if(token){
+ // if (options.query.scene) {
+ // let temp = options.query.scene.split('_')
+ // wx.navigateTo({
+ // url: `${pathMap[temp[1]]}?id=${temp[0]}&userId=${temp[2]}`,
+ // })
+ // }
+ // }
}
})
CustomHook.install({
--
Gitblit v1.9.3