This commit is contained in:
2026-08-17 11:01:21 +08:00
parent 6e07cab51f
commit 255573ed06
705 changed files with 8762 additions and 36677 deletions
+17
View File
@@ -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
}