|
@@ -7,6 +7,11 @@ import styles from "./header.module.css";
|
|
|
|
|
|
const HeaderMobile: React.FC = () => {
|
|
const HeaderMobile: React.FC = () => {
|
|
const [showMenu, setShowMenu] = useState("");
|
|
const [showMenu, setShowMenu] = useState("");
|
|
|
|
+
|
|
|
|
+ const hideMenu = () => {
|
|
|
|
+ setShowMenu("hide");
|
|
|
|
+ };
|
|
|
|
+
|
|
return (
|
|
return (
|
|
<>
|
|
<>
|
|
<div className={styles["nav-fixed"]}>
|
|
<div className={styles["nav-fixed"]}>
|
|
@@ -25,22 +30,22 @@ const HeaderMobile: React.FC = () => {
|
|
</div>
|
|
</div>
|
|
<div className={showMenu === "show" ? styles.show : styles.hide}>
|
|
<div className={showMenu === "show" ? styles.show : styles.hide}>
|
|
<div className={styles["nav-sub"]}>
|
|
<div className={styles["nav-sub"]}>
|
|
- <Link className={styles.item} href="#" scroll={true}>
|
|
|
|
|
|
+ <Link className={styles.item} href="#" onClick={() => hideMenu()}>
|
|
首页
|
|
首页
|
|
</Link>
|
|
</Link>
|
|
- <Link className={styles.item} href="/about" scroll={true}>
|
|
|
|
|
|
+ <Link className={styles.item} href="/about">
|
|
关于我们
|
|
关于我们
|
|
</Link>
|
|
</Link>
|
|
- <Link className={styles.item} href="#service" scroll={true}>
|
|
|
|
|
|
+ <Link className={styles.item} href="#service" scroll={true} onClick={() => hideMenu()}>
|
|
业务介绍
|
|
业务介绍
|
|
</Link>
|
|
</Link>
|
|
- <Link className={styles.item} href="#consultant" scroll={true}>
|
|
|
|
|
|
+ <Link className={styles.item} href="#consultant" scroll={true} onClick={() => hideMenu()}>
|
|
顾问介绍
|
|
顾问介绍
|
|
</Link>
|
|
</Link>
|
|
- <Link className={styles.item} href="/caseList" scroll={true}>
|
|
|
|
|
|
+ <Link className={styles.item} href="/caseList">
|
|
经典案例
|
|
经典案例
|
|
</Link>
|
|
</Link>
|
|
- <Link className={styles.item} href="/contactUs" scroll={true}>
|
|
|
|
|
|
+ <Link className={styles.item} href="/contactUs">
|
|
联系我们
|
|
联系我们
|
|
</Link>
|
|
</Link>
|
|
<Link className={styles.item} href={"https://hi-po.com.cn/user/login"}>
|
|
<Link className={styles.item} href={"https://hi-po.com.cn/user/login"}>
|
|
@@ -52,7 +57,7 @@ const HeaderMobile: React.FC = () => {
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div className={styles.nav}>
|
|
|
|
|
|
+ <div className={styles["nav-content"]}>
|
|
<div className={styles.content}>
|
|
<div className={styles.content}>
|
|
<Image
|
|
<Image
|
|
alt="hero"
|
|
alt="hero"
|