fix:迁移到养宠手册,utils将class类转换成函数

This commit is contained in:
zlong committed 2024-11-18 22:18:39 +08:00
1 parent baa295010a
commit b18cf8c47a
3 files changed
+191 -191

No files matched your search

+8 -8
View File
@@ -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
}