liukangdong
2024-07-31 997036b27927bcc1e9207a40b7a69c106a10f30c
wechat_staff/app.js
@@ -1,4 +1,7 @@
// app.js
import {
  wxLoginCustomer,
  getMemberInfo
} from './api/index'
App({
  globalData: {
    primary: '#B08771',
@@ -10,7 +13,14 @@
    if (WindowInfo.safeArea.top > 20) {
      this.globalData.bottomLift = WindowInfo.screenHeight - WindowInfo.safeArea.bottom;
    }
    //
    // let menuButtonInfo = wx.getMenuButtonBoundingClientRect();
  }
})
    let users =  wx.getStorageSync('token')
    if(users ==null){
      wx.navigateTo({
        url: '/pages/login/index',
      })
    }else{
      getMemberInfo({goLogin:true}).then(res => {
      })
    }
  },
})