From 757499cfb8832538ccbc8912e1cac0f55bc9f7d2 Mon Sep 17 00:00:00 2001
From: tangyi <275503107@qq.com>
Date: Tue, 28 Sep 2021 18:22:19 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
css/huaxia.css | 23 +++++++++
htmls/contactUs/contactUs.html | 2 +-
htmls/grzx/personalData.html | 88 ++++------------------------------
js/huaxia.js | 32 +++++++++++--
4 files changed, 59 insertions(+), 86 deletions(-)
diff --git a/css/huaxia.css b/css/huaxia.css
index dfd6d21..4f2a0fd 100644
--- a/css/huaxia.css
+++ b/css/huaxia.css
@@ -2094,6 +2094,16 @@ align-items: flex-end;
.tyhder_btntop{
display: none;
}
+.tyhder_moban{
+ position: fixed;
+ width: 100%;
+ height: 100%;
+ top: 0px;
+ left: 0px;
+ background-color: rgb(0,0,0,0.5);
+ z-index: -1;
+ display: none;
+}
.pod{
/* background-color: rgb(245, 245, 245); */
@@ -5968,4 +5978,17 @@ ul {
}
.tyAboutUs_lxwx img{
width: 100%;
+}
+.tyhder_herader .tyhder_listnavpad{
+ position: fixed;top: 80px;
+ right: 0px;
+ display: block;
+ height: 100%;
+ background-color: #fff;
+}
+.tyhder_listnavpad li{
+ padding: 15px 60px;
+ text-align: center;
+ border-top: 1px solid #E6E6E6;
+ background-color: #fff;
}
\ No newline at end of file
diff --git a/htmls/contactUs/contactUs.html b/htmls/contactUs/contactUs.html
index d2bde95..ffbada3 100644
--- a/htmls/contactUs/contactUs.html
+++ b/htmls/contactUs/contactUs.html
@@ -10,11 +10,11 @@
联系我们
-
+
diff --git a/htmls/grzx/personalData.html b/htmls/grzx/personalData.html
index 45a2ee6..e6a9b6b 100644
--- a/htmls/grzx/personalData.html
+++ b/htmls/grzx/personalData.html
@@ -18,12 +18,12 @@
-
-
+
@@ -1172,69 +1162,7 @@ $(".ty_listnav").addClass("ty_listnavPosition")
-
-
-
+
diff --git a/js/huaxia.js b/js/huaxia.js
index 945eaf0..152fa64 100644
--- a/js/huaxia.js
+++ b/js/huaxia.js
@@ -752,15 +752,37 @@ function getScrollTop() {
document.addEventListener("scroll", myFunction);
function myFunction() {
- if (getScrollTop() > 125) {
+
+
+ if (getScrollTop() > $(".tyhder_herader>img").css("height").split("px")[0]) {
$(".pod").css("position", "fixed")
$(".pod").addClass("dtip")
-
- } else if (getScrollTop() < 125) {
+ $(".mian").css("marginTop", `${$(".tyhder_herader>nav").css("height")}`)
+ $(".tyhder_moban").css("top", `${$(".tyhder_herader>nav").css("height")}`)
+ } else if (getScrollTop() < $(".tyhder_herader>img").css("height").split("px")[0]) {
$(".pod").css("position", "relative")
$(".pod").removeClass("dtip")
-
+ $(".mian").css("marginTop", "0px")
+ $(".tyhder_moban").css("top", `0px`)
+ $(".tyhder_listnavpad").css("top",`${$(".tyhder_herader>nav").css("height")}`)
}
-}
+}
+$(function navdao(params) {
+ // ---
+ let navif = true
+ $(".tyhder_btntopimg").on("click", (e) => {
+ if (navif) {
+ $(".tyhder_moban").css("display", "block")
+ $(".ty_listnav").addClass("ty_listnavPosition")
+ $(".ty_btntopimg").addClass("trans90")
+ $(".tyhder_listnav").addClass("tyhder_listnavpad")
+ $(".tyhder_listnavpad").css("top",`${$(".tyhder_herader").css("height")}`)
+ } else {
+ $(".tyhder_moban").css("display", "none")
+ }
+
+ })
+
+})