ll
liukangdong
2024-08-06 d41f1f707dc643b726a42b9d2a63b186dd9e4f28
wechat_staff/app.js
@@ -13,15 +13,20 @@
    if (WindowInfo.safeArea.top > 20) {
      this.globalData.bottomLift = WindowInfo.screenHeight - WindowInfo.safeArea.bottom;
    }
    let users =  wx.getStorageSync('token')
    if(users ==null){
      wx.navigateTo({
  },
  onShow() {
    let users = wx.getStorageSync('token')
    if (users == null) {
      wx.redirectTo({
        url: '/pages/login/index',
      })
      wx.showLoading({title: '授权登录中'})
    }else{
      getMemberInfo({goLogin:true}).then(res => {
      })
      wx.showLoading({
        title: '授权登录中'
      })
    } else {
      getMemberInfo({
        goLogin: true
      }).then(res => {})
    }
  },
  },
})