- function getSafeHeight(): number {
- const systemInfo: UniApp.GetSystemInfoResult = uni.getSystemInfoSync()
- const safeAreaInsetBottom: number = systemInfo.safeAreaInsets.bottom + systemInfo.safeAreaInsets.top
- const menuButtonInfoHeight: number = uni.getMenuButtonBoundingClientRect().height + 60
- return safeAreaInsetBottom + menuButtonInfoHeight
- }
- export default {
- getSafeHeight
- }
|