From 7806772a323b8a25659bd852214fc068a6513de9 Mon Sep 17 00:00:00 2001 From: xuminyui <576362016@qq.com> Date: Thu, 10 Oct 2024 10:55:12 +0800 Subject: [PATCH 1/4] fix --- src/components/navBar/index.vue | 5 ++--- src/pages/login/index.vue | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/navBar/index.vue b/src/components/navBar/index.vue index befadef..e176013 100644 --- a/src/components/navBar/index.vue +++ b/src/components/navBar/index.vue @@ -35,13 +35,12 @@ const backhandle = () => { if (pages.length === 1) return; uni.navigateBack(); }; +const currentWebView = plus.webview.getWebviewById("wv"); const root = document.documentElement; root.style.setProperty( "--statusBarHeight", `${ - plus.storage.getItem("RunTime") === "app" - ? plus.navigator.getStatusbarHeight() - : 0 + currentWebView.RunTime === "app" ? plus.navigator.getStatusbarHeight() : 0 }px` ); diff --git a/src/pages/login/index.vue b/src/pages/login/index.vue index 5a31c9c..355a7a0 100644 --- a/src/pages/login/index.vue +++ b/src/pages/login/index.vue @@ -4,7 +4,7 @@ 登录 - 仓库管理v1.0 + 仓库管理v1.1 使用你的手机号登录 From a60fce1f7746571db5850536193f9b2a569feaf6 Mon Sep 17 00:00:00 2001 From: xuminyui <576362016@qq.com> Date: Thu, 10 Oct 2024 10:58:44 +0800 Subject: [PATCH 2/4] fix --- src/pages/login/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/login/index.vue b/src/pages/login/index.vue index 355a7a0..44b1d7c 100644 --- a/src/pages/login/index.vue +++ b/src/pages/login/index.vue @@ -4,7 +4,7 @@ 登录 - 仓库管理v1.1 + 仓库管理 使用你的手机号登录