This commit is contained in:
Aiden 2024-10-10 10:55:12 +08:00
parent b6dd431e18
commit 7806772a32
2 changed files with 3 additions and 4 deletions

View File

@ -35,13 +35,12 @@ const backhandle = () => {
if (pages.length === 1) return; if (pages.length === 1) return;
uni.navigateBack(); uni.navigateBack();
}; };
const currentWebView = plus.webview.getWebviewById("wv");
const root = document.documentElement; const root = document.documentElement;
root.style.setProperty( root.style.setProperty(
"--statusBarHeight", "--statusBarHeight",
`${ `${
plus.storage.getItem("RunTime") === "app" currentWebView.RunTime === "app" ? plus.navigator.getStatusbarHeight() : 0
? plus.navigator.getStatusbarHeight()
: 0
}px` }px`
); );
</script> </script>

View File

@ -4,7 +4,7 @@
<view class="container-box"> <view class="container-box">
<view class="title"> <view class="title">
<span>登录</span> <span>登录</span>
<span style="color: #efc54e">仓库管理v1.0</span> <span style="color: #efc54e">仓库管理v1.1</span>
</view> </view>
<view>使用你的手机号登录</view> <view>使用你的手机号登录</view>
<view class="login"> <view class="login">