sunjuan 2 éve
szülő
commit
cc8cf176e9

+ 20 - 0
nngkxxdp/src/main/resources/static/natj/dataCenter/index.html

@@ -22,6 +22,7 @@
 </head>
 
 <body>
+<div style="width:100%;height:280px" id="header"></div>
     <div class="main">
         <div class="menu">
             <ul class="tabs">
@@ -196,6 +197,7 @@
             </div>
         </div>
     </div>
+    <div style="width:100%;" id="footer"></div>
 </body>
 <script src="js/jquery-3.5.1.min.js"></script>
 <script src="js/echarts.min.js"></script>
@@ -254,6 +256,14 @@
             $(this).css('visibility', 'hidden');
         }
     })
+    tabsImg.each(function (index) {
+        var name = $(this).data('name');
+        if (tapsIndex == index) {
+            $(this).attr('src', 'images/menu_' + name + 'p.png');
+        } else {
+            $(this).attr('src', 'images/menu_' + name + '.png');
+        }
+    })
 </script>
 <script>
     $(function () {
@@ -319,5 +329,15 @@
         $(this).addClass('click');
     })
 </script>
+<script>
+    setHeader()
+    setFooter()
+    function setHeader(){
+        $("#header").load("https://www.cqna.gov.cn/ggbf_search/ggyr/2022top/head.html")
+    }
 
+    function setFooter(){
+        $("#footer").load("https://www.cqna.gov.cn/ggbf_search/ggyr/2022foot/foot.html")
+    }
+</script>
 </html>