Browse Source

官网新增关键词等开发

anderx 2 years ago
parent
commit
1bb31170a9
1 changed files with 23 additions and 23 deletions
  1. 23 23
      src/main/webapp/WEB-INF/views/common.html

+ 23 - 23
src/main/webapp/WEB-INF/views/common.html

@@ -9,7 +9,7 @@
     <meta name="applicable-device" content="pc,mobile">
     <meta name="viewport" content="width=device-width,initial-scale=1.0, user-scalable=no">
     <!--http 升级https-->
-<!--    <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"/>-->
+    <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"/>
     <link rel="icon" th:href="${portalHost+'/images/icon/kedexinxi.ico'}"  type="image/x-icon">
     <!--Bootstrap CSS 文件 -->
     <link rel="stylesheet" th:href="${portalHost+'/css/bootstrap.min.css'}">
@@ -689,28 +689,28 @@
         /*]]>*/
     </script>
 <!--第三方插件,客服模块-->
-<!--    <script th:if="${type}!='houtai'">-->
-<!--        var _hmt = _hmt || [];-->
-<!--        (function() {-->
-<!--            var hm = document.createElement("script");-->
-<!--            if((navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i))) {-->
-<!--                hm.src = "https://hm.baidu.com/hm.js?c2a7fd3c1093d8dbd0be9106b4027797"; //移动-->
-<!--                document.getElementById('onlineConsultation').onclick=function(){document.getElementById('nb_toolbar_onlineConsult').click()}-->
-<!--            }else{-->
-<!--                hm.src = "https://hm.baidu.com/hm.js?e20e700f2bb1656e3253cb466c60f15b"; //pc-->
-<!--            }-->
-<!--            var s = document.getElementsByTagName("script")[0];-->
-<!--            s.parentNode.insertBefore(hm, s);-->
-<!--        })();-->
-<!--    </script>-->
-<!--    <script th:if="${type}!='houtai'">-->
-<!--        (function(){-->
-<!--            var bp = document.createElement('script');-->
-<!--            bp.src = '//push.zhanzhang.baidu.com/push.js';-->
-<!--            var s = document.getElementsByTagName("script")[0];-->
-<!--            s.parentNode.insertBefore(bp, s);-->
-<!--        })();-->
-<!--    </script>-->
+    <script th:if="${type}!='houtai'">
+        var _hmt = _hmt || [];
+        (function() {
+            var hm = document.createElement("script");
+            if((navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i))) {
+                hm.src = "https://hm.baidu.com/hm.js?c2a7fd3c1093d8dbd0be9106b4027797"; //移动
+                document.getElementById('onlineConsultation').onclick=function(){document.getElementById('nb_toolbar_onlineConsult').click()}
+            }else{
+                hm.src = "https://hm.baidu.com/hm.js?e20e700f2bb1656e3253cb466c60f15b"; //pc
+            }
+            var s = document.getElementsByTagName("script")[0];
+            s.parentNode.insertBefore(hm, s);
+        })();
+    </script>
+    <script th:if="${type}!='houtai'">
+        (function(){
+            var bp = document.createElement('script');
+            bp.src = '//push.zhanzhang.baidu.com/push.js';
+            var s = document.getElementsByTagName("script")[0];
+            s.parentNode.insertBefore(bp, s);
+        })();
+    </script>
     <th:block th:replace="${scripts}" />
 </th:block>