|
@@ -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;
|