Browse Source

新闻资讯

gzb
wangzhonglu 1 year ago
parent
commit
6d9d6bfcc1
6 changed files with 46 additions and 7 deletions
  1. 0
    0
      css/news_detail.css
  2. 7
    0
      js/news.js
  3. 0
    0
      js/news_detail.js
  4. 5
    5
      sections/comm/header.html
  5. 13
    2
      sections/news.html
  6. 21
    0
      sections/news_detail.html

+ 0
- 0
css/news_detail.css View File


+ 7
- 0
js/news.js View File

@@ -0,0 +1,7 @@
1
+$(function () {
2
+  $(".header_root").load("./comm/header.html");
3
+  $(".footer_root").load("./comm/footer.html");
4
+  // nav传值显示下划线
5
+  $(".header_root").data("nav_info", 5);
6
+  
7
+});

+ 0
- 0
js/news_detail.js View File


+ 5
- 5
sections/comm/header.html View File

@@ -168,15 +168,15 @@
168 168
           let nav_num = $(this).data("nav");
169 169
           $(".header_box > .header_right > .header_nav_item.nav_" + nav_num).addClass("selected");
170 170
           if (nav_num === 1) {
171
-            console.log("产品中心");
171
+            window.location.href = "/sections/product.html";
172 172
           } else if (nav_num === 2) {
173
-            console.log("服务案例");
173
+            window.location.href = "/sections/service.html";
174 174
           } else if (nav_num === 3) {
175
-            console.log("关于我们");
175
+            window.location.href = "/sections/about.html";
176 176
           } else if (nav_num === 4) {
177
-            console.log("申请试用");
177
+            window.location.href = "/sections/trial.html";
178 178
           } else if (nav_num === 5) {
179
-            console.log("新闻资讯");
179
+            window.location.href = "/sections/news.html";
180 180
           } else if (nav_num === 6) {
181 181
             console.log("语言切换");
182 182
           }

+ 13
- 2
sections/news.html View File

@@ -4,7 +4,18 @@
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
-    <title>Document</title>
7
+    <title>河南星火燎原软件科技有限公司</title>
8
+    <link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
9
+    <link rel="stylesheet" href="../librarys/swiper@3.4.2/swiper.min.css" />
10
+    <link rel="stylesheet" href="../css/comm.css" />
11
+    <link rel="stylesheet" href="../css/news.css" />
12
+    <script src="../utils/rem.js"></script>
8 13
   </head>
9
-  <body></body>
14
+  <body>
15
+    <div class="header_root bg_white"></div>
16
+    <div class="footer_root"></div>
17
+    <script src="../librarys/jquery@1.12.4/jquery.min.js"></script>
18
+    <script src="../librarys/swiper@3.4.2/swiper.jquery.min.js"></script>
19
+    <script src="../js/news.js"></script>
20
+  </body>
10 21
 </html>

+ 21
- 0
sections/news_detail.html View File

@@ -0,0 +1,21 @@
1
+<!DOCTYPE html>
2
+<html lang="zh-cn">
3
+  <head>
4
+    <meta charset="UTF-8" />
5
+    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
6
+    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+    <title>河南星火燎原软件科技有限公司</title>
8
+    <link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
9
+    <link rel="stylesheet" href="../librarys/swiper@3.4.2/swiper.min.css" />
10
+    <link rel="stylesheet" href="../css/comm.css" />
11
+    <link rel="stylesheet" href="../css/news_detail.css" />
12
+    <script src="../utils/rem.js"></script>
13
+  </head>
14
+  <body>
15
+    <div class="header_root bg_white"></div>
16
+    <div class="footer_root"></div>
17
+    <script src="../librarys/jquery@1.12.4/jquery.min.js"></script>
18
+    <script src="../librarys/swiper@3.4.2/swiper.jquery.min.js"></script>
19
+    <script src="../js/news_detail.js"></script>
20
+  </body>
21
+</html>

Loading…
Cancel
Save