fix:迁移到养宠手册,utils将class类转换成函数
This commit is contained in:
1 parent
baa295010a
commit
b18cf8c47a
3 files changed
+191
-191
No files matched your search
+8
-8
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user