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 && member.token) { } else { // 登录 wx.login({ timeout: 5000, success(res) { @@ -43,5 +44,8 @@ } }) } } })