diff --git a/src/pages/feed-plan/index.vue b/src/pages/feed-plan/index.vue index 1798e87..df3fdfc 100644 --- a/src/pages/feed-plan/index.vue +++ b/src/pages/feed-plan/index.vue @@ -1,189 +1,10 @@ diff --git a/src/pages/pet-manual/index.vue b/src/pages/pet-manual/index.vue index 46a737e..bfce416 100644 --- a/src/pages/pet-manual/index.vue +++ b/src/pages/pet-manual/index.vue @@ -1,10 +1,189 @@ diff --git a/src/utils/index.ts b/src/utils/index.ts index 9e46897..ffc6194 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -1,10 +1,10 @@ -class ToolFun { - static 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 - } +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 ToolFun +export { + getSafeHeight +}