var req = require('./utils/request.js')
// app.js
App({
  http: req,
  urls: req.apis,
  data: {

  },
  onLaunch() {
    //获取状态栏高度
    var _self = this
    wx.getSystemInfo({
      success: e => {
        _self.globalData.StatusBar = e.statusBarHeight;
        let capsule = wx.getMenuButtonBoundingClientRect();
        if (capsule) {
          _self.globalData.Custom = capsule;
          _self.globalData.CustomBar = capsule.bottom + capsule.top - e.statusBarHeight;
        } else {
          _self.globalData.CustomBar = e.statusBarHeight + 50;
        }
      }
    })
    //获取手机屏幕高度、宽度
    _self.globalData.windowHeight = wx.getSystemInfoSync().windowHeight
    _self.globalData.windowWidth = wx.getSystemInfoSync().windowWidth
    wx.setInnerAudioOption({
      mixWithOther: false,
      obeyMuteSwitch: false,
      speakerOn: false
    })
  },
  globalData: {
    userInfo: {},
    token: 'T3hrM2Y1eFB5eERaNXQ2bDdxZ3Y4elZVQnl6U3FWdlNBT3dGUENFNlNObjA5MWpTMW1CMG1iaSsvZmxGcERlMzV5RWw5TnplZjVIbmVQRTQ5SkVnWFF3YjdvWnVaRHhrL2l5TUNGWmFZcnJZVzI5UEhJdFVzdG55b3RLOTdKTzhmeFZvZ1hTd29qbnlYeWVSMURiTmpNNGJDOTFVbDVsMk5Ed3FiREh2QnpCN0RRSTM3eVViN2NvK1VQbzZiMXQyL1VodDhPaUwrd2pSU3RTWWFiYWlCbFQ4blZoRHo2c3BObFRaY1pTMjR3cW5VLzl6SEswemNoS0V2SGNLMXJiU2QrdGxOajJXeWtqYWEwbDhOTzRod00xQTdWNUxFOU9Wd1FkUWJwSHoramFPdUJ0MG9UbEJocFUzTkZiUy83Q2xaL2RVSXhLYnNMNGZhYm5DZ1VXOUtVUVVQR2FMQjFqaCs0NVowVDJrMFpjUFdpK0dZb0JKVWxTOCswamVXbkZQUWk5Vi9hQ0h3ci93QzJpVDA1aEt2ZlM1NWlPOW5MTGFNdmhLZDM4K0lscC9jejR2c29ON1dLeXhSbXF3QVNtNQ=='
  },
})