This commit is contained in:
李瑞
2025-09-14 01:18:23 +08:00
parent c44bd01613
commit 01aad920ad
17 changed files with 569 additions and 352 deletions

View File

@@ -1,8 +1,10 @@
.customerNavbar {
position: sticky;
position: fixed;
top: 0;
left: 0;
z-index: 999;
background-color: #ffffff;
overflow: hidden;
z-index: 999;
width: 100%;
background-color: #fff;
}

View File

@@ -9,12 +9,12 @@ interface IProps {
const CustomNavbar = (props: IProps) => {
const { children } = props;
const { statusNavbarHeightInfo } = useGlobalState();
const { statusBarHeight, navbarHeight } = statusNavbarHeightInfo;
const { statusBarHeight, navBarHeight } = statusNavbarHeightInfo;
return (
<View
className={styles.customerNavbar}
style={{ height: `${navbarHeight}px`, paddingTop: `${statusBarHeight}px`, }}
style={{ height: `${navBarHeight}px`, paddingTop: `${statusBarHeight}px`, }}
>
{children}
</View>