import './utils/system/index' import './services/index' // 初始化服务 App({ globalData: { /// iPhone底部安全区域 safeBottom: 0.0, /// 窗口高度 windowHeight: 0, }, onLaunch() { /// 获取iPhone底部安全区域 wx.getSystemInfo({ success: res=> { this.globalData.safeBottom = res.screenHeight-res.safeArea.bottom this.globalData.windowHeight = res.windowHeight }, fail: () => {} }) }, })