From 69c5a8f656c24c4989db30cb1c96e2e970d094d4 Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Tue, 06 Jan 2026 15:25:59 +0800
Subject: [PATCH] feat:界面优化

---
 src/utils/common/index.js |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/src/utils/common/index.js b/src/utils/common/index.js
index c8cacc3..a2bb1d8 100644
--- a/src/utils/common/index.js
+++ b/src/utils/common/index.js
@@ -2,7 +2,7 @@
  * @Author       : yuan
  * @Date         : 2025-10-15 15:52:12
  * @LastEditors  : yuan
- * @LastEditTime : 2025-10-16 17:57:16
+ * @LastEditTime : 2025-12-17 14:09:14
  * @FilePath     : \src\utils\common\index.js
  * @Description  :
  * Copyright 2025 OBKoro1, All Rights Reserved.
@@ -42,7 +42,19 @@
 }
 export function getStatusBarHeight () {
   try {
-    const systemInfo = uni.getSystemInfoSync()
+    const systemInfo = uni.getWindowInfo()
+
+    // #ifdef APP-PLUS
+    return systemInfo.statusBarHeight || 0
+    // #endif
+
+    // #ifdef MP-WEIXIN
+    return 0
+    // #endif
+
+    // #ifdef H5
+    return systemInfo.statusBarHeight || 0
+    // #endif
     return systemInfo.statusBarHeight || 0
   } catch (error) {
     return 0

--
Gitblit v1.9.3