getPhoneDistance(){
//设备信息
let app = uni.getSystemInfoSync
let safeArea = app.safeAreaInsets.bottom / 2
//胶囊信息
let menuButtonInfo = uni.getMeunButtonBoundingClientRect()
return{
top: app.statusBarHeight + menuButtonInfo.height + (menuButtonInfo.top - app.sstatusBarHeight)* 2, //导航栏高度
bottom: 50 + safeArea //tabbar高度
}
}