From 314dcacdeecec4dff192b78bad5124b1b29a453d Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期四, 20 二月 2025 15:07:36 +0800
Subject: [PATCH] fix: 页面
---
apps/taro/src/stores/modules/system.ts | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/apps/taro/src/stores/modules/system.ts b/apps/taro/src/stores/modules/system.ts
index 8fdd047..8c5572f 100644
--- a/apps/taro/src/stores/modules/system.ts
+++ b/apps/taro/src/stores/modules/system.ts
@@ -1,6 +1,7 @@
import Taro from '@tarojs/taro';
import { defineStore } from 'pinia';
import { store } from '@/stores';
+import { isWeb } from '@/utils/env';
export interface Options {
path: string;
@@ -68,7 +69,7 @@
this.screenWidth = info.screenWidth;
this.IPhoneXPadding = info.screenHeight - info.safeArea.bottom;
- this.navHeight = info.statusBarHeight + this.navigationBarHeight;
+ this.navHeight = (info.statusBarHeight || 0) + this.navigationBarHeight;
this.safeAreaTop = info.safeArea.top;
@@ -79,7 +80,7 @@
*/
this.bottomNavHeight = 118 * scale;
- this.pageHeight = info.screenHeight - this.navHeight - this.IPhoneXPadding; // 鏃犲簳閮╰abber
+ this.pageHeight = info.screenHeight - this.navHeight - (isWeb ? 0 : this.IPhoneXPadding); // 鏃犲簳閮╰abber
this.pageHeightWithTab = this.pageHeight - this.bottomNavHeight; // 鏈夊簳閮╰abber
},
--
Gitblit v1.9.1