上传
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* 获取系统信息
|
||||
* @param {boolean} [forceRefresh=false] 强制重新获取(折叠屏场景使用)
|
||||
* @returns {Object}
|
||||
*/
|
||||
export function getSystemInfo() {
|
||||
return uni.getSystemInfoSync()
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取状态栏高度
|
||||
* @param {boolean} [forceRefresh=false]
|
||||
* @returns {number}
|
||||
*/
|
||||
export function getStatusBarHeight() {
|
||||
return getSystemInfo().statusBarHeight || 0
|
||||
}
|
||||
Reference in New Issue
Block a user