提交 8684255a 编写于 作者: Q qiang

feat: h5 getSystemInfo safeAreaInsets

feat: h5 getSystemInfo safeAreaInsets
上级 f7094833
......@@ -21,7 +21,7 @@ export function getSystemInfoSync () {
var screenWidth = screen.width
var screenHeight = screen.height
var language = navigator.language
var statusBarHeight = 0
var statusBarHeight = safeAreaInsets.top
var osname
var osversion
var model
......@@ -84,7 +84,7 @@ export function getSystemInfoSync () {
const {
top: windowTop,
bottom: windowBottom
} = getWindowOffset(false, true)
} = getWindowOffset()
windowHeight -= windowTop
windowHeight -= windowBottom
......@@ -102,7 +102,13 @@ export function getSystemInfoSync () {
system,
platform,
model,
safeArea
safeArea,
safeAreaInsets: {
top: safeAreaInsets.top,
right: safeAreaInsets.right,
bottom: safeAreaInsets.bottom,
left: safeAreaInsets.left
}
}
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册