| | |
| | | * @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. |
| | |
| | | export function getStatusBarHeight () { |
| | | try { |
| | | const systemInfo = uni.getSystemInfoSync() |
| | | |
| | | // #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 |