Преглед изворни кода

增加图片
修复新闻切换失败

HW пре 4 година
родитељ
комит
14365f7e97

+ 6 - 5
html/common.html

@@ -442,7 +442,7 @@
                         <div class="line01"></div>
                         <div class="line02"></div>
                     </div>
-                    
+
                 </div>
             </div>
             <div class="infoDown">
@@ -451,6 +451,10 @@
                     <a href="https://beian.miit.gov.cn/" target="_blank"><span th:text="${beian}"></span></a>
                 </div>
             </div>
+            <div class="infoDown" style="height: 80px;">
+                <div class="container">
+                </div>
+            </div>
             <div class="footer-submit">
                 <div class="submit-body">
                     <span style="color: white; font-size: 20px; margin-right: 20px;">请留下您的联系方式,我们将尽快为您回电!</span>
@@ -509,7 +513,6 @@
 	<!-- JQuery 引入 -->
     <script th:if="${type}!='houtai'" th:src="${portalHost+'/js/jquery/jquery-2.2.4.min.js'}"></script>
 	<!-- 导航栏效果、回到顶部 -->
-    <script th:if="${type}!='houtai'" th:src="${portalHost+'/js/secode.js'}"></script>
 		<script th:inline="javascript">
 			/*<![CDATA[*/
 			window.globalConfig = {};
@@ -520,12 +523,10 @@
 			globalConfig.uploadPath = /*[[${uploadPath}]]*/'';
 			globalConfig.avatarHost = /*[[${avatarHost}]]*/'';
 			globalConfig.avatarUploadHost = /*[[${avatarUploadHost}]]*/'';
-			globalConfig.csrfToken = /*[[${csrf}]]*/'';
 			globalConfig.remoteHost= /*[[${remoteHost}]]*/''
-			window.userData = {};
-			window.adminData = {};
 			/*]]>*/
 		</script>
+        <script th:if="${type}!='houtai'" th:src="${portalHost+'/js/secode.js'}"></script>
 		<th:block th:replace="${scripts}" />
 	</th:block>
 

BIN
js/portal/1.0.10/images/logo_gx.jpg


BIN
js/portal/1.0.10/images/logo_gx.png


js/portal/1.0.10/images/logo.jpg → js/portal/1.0.10/images/logo_gz.jpg


BIN
js/portal/1.0.10/images/logo_sjz.jpg


BIN
js/portal/1.0.10/images/logo_sjz.png


BIN
js/portal/1.0.10/images/wx_gx.png


js/portal/1.0.10/images/wx.png → js/portal/1.0.10/images/wx_gz.png


BIN
js/portal/1.0.10/images/wx_sjz.png


+ 4 - 3
js/portal/1.0.10/js/new.js

@@ -74,11 +74,12 @@ function newFn() {
     $(this)
       .parent()
       .addClass("active");
-    if ($(this).html() == "全部") {
+    let index = $(".secondary-menu a").index($(this));
+    if (index === 0) {
       window.sessionStorage.setItem("newType", undefined);
-    } else if ($(this).html() == "科德新闻") {
+    } else if (index === 1) {
       window.sessionStorage.setItem("newType", 0);
-    } else if ($(this).html() == "行业资讯") {
+    } else if (index === 2) {
       window.sessionStorage.setItem("newType", 1);
     }
     var type = window.sessionStorage.getItem("newType");

+ 8 - 4
js/portal/1.0.10/js/secode.js

@@ -1,7 +1,5 @@
-// var api = "http://kede.jishutao.com";
 var api = window.location.protocol+'//'+window.location.host;
-var avatarUploadHost = "http://js.gzkede.com/upload";
-// var avatarUploadHost = "http://s.kedexinxi.com/upload";
+var avatarUploadHost = globalConfig.avatarUploadHost;
 var newUrl = window.location.protocol+'//'+window.location.host+"/portal/newsDetails";
 var timeClick;
 
@@ -1946,7 +1944,13 @@ $(function() {
       }
     };
     //调用分页
-    page_ctrl(obj_2);
+    try{
+      if(page_ctrl && typeof(page_ctrl) === "function"){
+        page_ctrl();
+      }
+    }catch(e){
+
+    }
   }
   activitiesPage1();
 });

Разлика између датотеке није приказан због своје велике величине
+ 0 - 1662
js/portal/1.0.10/js/secode111.js