Kaynağa Gözat

Merge commit '941b248a1c47bf5e9a8853f567fcdcf610448386' into gzb

gzb
guozhongbo 1 yıl önce
ebeveyn
işleme
e40966aa2d

+ 1
- 0
index.html Dosyayı Görüntüle

@@ -4,6 +4,7 @@
4 4
     <meta charset="UTF-8" />
5 5
     <meta http-equiv="X-UA-Compatible" content="IE=edge" />
6 6
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+    <meta http-equiv="Cache-Control" content="max-age=7200" />
7 8
     <title>河南星火燎原软件科技有限公司</title>
8 9
     <link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" />
9 10
     <link rel="stylesheet" href="./librarys/swiper@3.4.2/swiper.min.css" />

+ 1
- 0
sections/about.html Dosyayı Görüntüle

@@ -4,6 +4,7 @@
4 4
     <meta charset="UTF-8" />
5 5
     <meta http-equiv="X-UA-Compatible" content="IE=edge" />
6 6
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+    <meta http-equiv="Cache-Control" content="max-age=7200" />
7 8
     <link rel="stylesheet" href="../librarys/swiper@3.4.2/swiper.min.css" />
8 9
     <link rel="stylesheet" href="../css/comm.css" />
9 10
     <link rel="stylesheet" href="../css/about.css" />

+ 1
- 0
sections/comm/footer.html Dosyayı Görüntüle

@@ -4,6 +4,7 @@
4 4
     <meta charset="UTF-8" />
5 5
     <meta http-equiv="X-UA-Compatible" content="IE=edge" />
6 6
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+    <meta http-equiv="Cache-Control" content="max-age=7200" />
7 8
     <title>Document</title>
8 9
     <style>
9 10
       .footer_box {

+ 20
- 9
sections/comm/header.html Dosyayı Görüntüle

@@ -4,6 +4,7 @@
4 4
     <meta charset="UTF-8" />
5 5
     <meta http-equiv="X-UA-Compatible" content="IE=edge" />
6 6
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+    <meta http-equiv="Cache-Control" content="max-age=7200" />
7 8
     <title>Document</title>
8 9
     <style>
9 10
       .header_box {
@@ -142,7 +143,7 @@
142 143
         <div data-nav="5" class="header_nav_item nav_5">
143 144
           <div>新闻资讯</div>
144 145
         </div>
145
-        <div data-nav="6" class="header_nav_item nav_6">
146
+        <div class="header_nav_lang">
146 147
           <div>中文 | English</div>
147 148
         </div>
148 149
         <!-- <div class="header_nav_lang">
@@ -156,7 +157,9 @@
156 157
     <script>
157 158
       $(function() {
158 159
         $(".header_box .header_left").click(function () {
159
-          window.location.href = "/index.html";
160
+          if (window.location.pathname !== "/index.html") {
161
+            window.location.href = "/index.html";
162
+          }
160 163
         });
161 164
         let nav_info = $(".header_root").data("nav_info");
162 165
         $(".header_box > .header_right > .header_nav_item").removeClass("selected");
@@ -168,17 +171,25 @@
168 171
           let nav_num = $(this).data("nav");
169 172
           $(".header_box > .header_right > .header_nav_item.nav_" + nav_num).addClass("selected");
170 173
           if (nav_num === 1) {
171
-            window.location.href = "/sections/product.html";
174
+            if (window.location.pathname !== "/sections/product.html") {
175
+              window.location.href = "/sections/product.html";
176
+            }
172 177
           } else if (nav_num === 2) {
173
-            window.location.href = "/sections/service.html";
178
+            if (window.location.pathname !== "/sections/service.html") {
179
+              window.location.href = "/sections/service.html";
180
+            }
174 181
           } else if (nav_num === 3) {
175
-            window.location.href = "/sections/about.html";
182
+            if (window.location.pathname !== "/sections/about.html") {
183
+              window.location.href = "/sections/about.html";
184
+            }
176 185
           } else if (nav_num === 4) {
177
-            window.location.href = "/sections/trial.html";
186
+            if (window.location.pathname !== "/sections/trial.html") {
187
+              window.location.href = "/sections/trial.html";
188
+            }
178 189
           } else if (nav_num === 5) {
179
-            window.location.href = "/sections/news.html";
180
-          } else if (nav_num === 6) {
181
-            console.log("语言切换");
190
+            if (window.location.pathname !== "/sections/news.html") {
191
+              window.location.href = "/sections/news.html";
192
+            }
182 193
           }
183 194
         });
184 195
         let _pathname = window.location.pathname;

+ 1
- 0
sections/news.html Dosyayı Görüntüle

@@ -4,6 +4,7 @@
4 4
     <meta charset="UTF-8" />
5 5
     <meta http-equiv="X-UA-Compatible" content="IE=edge" />
6 6
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+    <meta http-equiv="Cache-Control" content="max-age=7200" />
7 8
     <title>河南星火燎原软件科技有限公司</title>
8 9
     <link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
9 10
     <link rel="stylesheet" href="../librarys/swiper@3.4.2/swiper.min.css" />

+ 1
- 0
sections/news_detail.html Dosyayı Görüntüle

@@ -4,6 +4,7 @@
4 4
     <meta charset="UTF-8" />
5 5
     <meta http-equiv="X-UA-Compatible" content="IE=edge" />
6 6
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+    <meta http-equiv="Cache-Control" content="max-age=7200" />
7 8
     <title>河南星火燎原软件科技有限公司</title>
8 9
     <link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
9 10
     <link rel="stylesheet" href="../librarys/swiper@3.4.2/swiper.min.css" />

+ 1
- 0
sections/product.html Dosyayı Görüntüle

@@ -4,6 +4,7 @@
4 4
     <meta charset="UTF-8" />
5 5
     <meta http-equiv="X-UA-Compatible" content="IE=edge" />
6 6
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+    <meta http-equiv="Cache-Control" content="max-age=7200" />
7 8
     <link rel="stylesheet" href="../librarys/swiper@3.4.2/swiper.min.css" />
8 9
     <link rel="stylesheet" href="../css/comm.css" />
9 10
     <link rel="stylesheet" href="../css/product.css" />

+ 1
- 0
sections/service.html Dosyayı Görüntüle

@@ -4,6 +4,7 @@
4 4
     <meta charset="UTF-8" />
5 5
     <meta http-equiv="X-UA-Compatible" content="IE=edge" />
6 6
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+    <meta http-equiv="Cache-Control" content="max-age=7200" />
7 8
     <link rel="stylesheet" href="../librarys/swiper@3.4.2/swiper.min.css" />
8 9
     <link rel="stylesheet" href="../css/comm.css" />
9 10
     <link rel="stylesheet" href="../css/service.css" />

+ 1
- 0
sections/trial.html Dosyayı Görüntüle

@@ -4,6 +4,7 @@
4 4
     <meta charset="UTF-8" />
5 5
     <meta http-equiv="X-UA-Compatible" content="IE=edge" />
6 6
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+    <meta http-equiv="Cache-Control" content="max-age=7200" />
7 8
     <link rel="stylesheet" href="../css/comm.css" />
8 9
     <link rel="stylesheet" href="../css/trial.css" />
9 10
     <script src="../utils/rem.js"></script>

Loading…
İptal
Kaydet