wechat_jiaxuan/app.js
@@ -1,4 +1,6 @@ import { wxLoginCustomer } from './api/index' import { wxLoginCustomer } from './api/index' App({ globalData: { primary: '#B08771', @@ -10,7 +12,11 @@ if (WindowInfo.safeArea.top > 20) { this.globalData.bottomLift = WindowInfo.screenHeight - WindowInfo.safeArea.bottom; } // // 授权登录 const member = wx.getStorageSync('member') if (member) { } else { wx.login({ timeout: 5000, success(res) { @@ -38,4 +44,7 @@ } }) } } })