uni.getSystemInfo({
success:function(e){
this.$options.globalData.statusBar = e.statusBarHeight
// #ifndef MP
if(e.platform == 'android') {
this.$options.globalData.customBar = e.statusBarHeight + 50
}else {
this.$options.globalData.customBar = e.statusBarHeight + 45
}
// #endif
// #ifdef MP-WEIXIN
//獲取膠囊按鈕的布局位置信息,坐標信息以屏幕左上角為原點
let custom = wx.getMenuButtonBoundingClientRect()
//導航欄高度 = 狀態欄到膠囊的間距(膠囊距上距離-狀態欄高度) * 2 + 膠囊高度 + 狀態欄高度。
this.$options.globalData.customBar = custom.bottom + custom.top - e.statusBarHeight
// #endif
// #ifdef MP-ALIPAY
this.$options.globalData.customBar = e.statusBarHeight + e.titleBarHeight
// #endif
}
})