anderx 4 lat temu
rodzic
commit
c21fe348b6

+ 6 - 3
src/main/resources/props/config_local.properties

@@ -60,10 +60,13 @@ template.cacheable=false
 
 avatar.upload.host=//172.16.0.255:3000/upload
 #连接开�
-portal.host=//kedejs.jishutao.com/portal/1.0.18
+
+#portal.host=//kedejs.jishutao.com/portal/1.0.18
+portal.host=//172.16.0.52/portal/1.0.14
+
 #static.host=//kedejs.jishutao.com/client/1.0.4
-static.host=//172.16.0.52/client/1.0.5
-#static.host=//172.16.0.255:3000/1.0.5
+#static.host=//172.16.0.52/client/1.0.5
+static.host=//172.16.0.255:3000/1.0.5
 
 avatar.host=//172.16.0.255:3000
 

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

@@ -384,26 +384,19 @@
     <div class="contentDown" style="height:540px">
         <div class="container">
             <!-- 友情链接 -->
-            <div style="position: relative;top:0;left:0;">
                 <div class="down_left">
                     <p>友情链接</p>
                 </div>
-                <div class="swiper-container" id="swiper5" style="height:70px">
-                    <div class="swiper-wrapper">
-                        <div class="swiper-slide">
-                            <div>
-                               <span style="display:inline-block;padding: 0 10px;" th:each="link:${links}">
-                                   <a style="color:white ; word-wrap: break-word;word-break: normal;"   th:href="${link.url}==''?'javascript:;':${link.url}" th:text="${link.name}"></a>
-                               </span>
-                            </div>
-                        </div>
+                <div class="swiper-container conts" id="swiper5s" style="color: white;max-height: 60px;">
+                    <div class="swiper-wrapper  swipers">
+
 <!--                        <div class="swipers">-->
 
 <!--                        </div>-->
                     </div>
                 </div>
-                <div style="color:white;position: absolute;right:0;bottom:0;z-index: 999" ><a th:href="${basePath+'/portal/link'}">More<sup>+</sup></a></div>
-            </div>
+            <div style="width: 100%;display: flex;justify-content: right;"><a style="color: white" th:href="${basePath+'/portal/link'}">MORE<sup>>>></sup></a></div>
+<!--                <div style="color:white;"><a th:href="${basePath+'/portal/link'}">More<sup>>>></sup></a></div>-->
             <div class="row" style="position: relative;">
                 <div class="down_left col-lg-3 ">
                     <p>产品服务</p>
@@ -480,17 +473,11 @@
 <!--    热门城市 -->
             <div style="display: flex;margin-top: 10px;align-items: center">
                 <div class="down_left">
-                    <p style="width: 80px;text-align: center">热门城市:</p>
+                    <p style="text-align: center;font-size: 17px;width: 80px">热门城市:</p>
                 </div>
-                <div class="swiper-container" id="swiper6x" style="height:20px">
-                    <div class="swiper-wrapper">
-                        <div class="swiper-slide">
-                            <div>
-                                <span style="display:inline-block;padding: 0 10px;" th:each="p:${popularCities}">
-                                    <a style="color:white ; word-wrap: break-word;word-break: normal;"   th:href="${p.url}==''?'javascript:;':${p.url}" th:text="${p.name}"></a>
-                                </span>
-                            </div>
-                        </div>
+                <div class="swiper-container " id="swiper6x" style="max-height:20px;margin:0 0 8px 8px">
+                    <div class="swiper-wrapper slides">
+
                         <!--                        <div class="swipers">-->
 
                         <!--                        </div>-->
@@ -499,7 +486,30 @@
             </div>
         </div>
     </div>
+    <div class="mobail_link">
+        <!-- 友情链接 -->
+        <div class="links">
+            <div class="container">
+                <h2 class="item-title" style="font-size: 18px;text-align: center;"><a style="color:white" href="javascript:;" >友情链接</a></h2>
+                <div class="swiper-container linkCont" id="swiper5ss" style="color: white;max-height: 20px;">
+                    <div class="swiper-wrapper swiperLinks">
+
+                    </div>
+                </div>
+            </div>
+        </div>
+        <!-- 热门城市 -->
+        <div class="links" style="padding-bottom: 20px;">
+            <div class="container">
+                <h2 class="item-title" style="font-size: 18px;text-align: center;"><a style="color:white" href="javascript:;" >热门城市</a></h2>
+                <div class="swiper-container contais" id="swiper6xs" style="color: white;max-height: 20px;">
+                    <div class="swiper-wrapper CitySlide">
 
+                    </div>
+                </div>
+            </div>
+        </div>
+    </div>
     <div class="infoDown">
         <div class="container">
             <span class="info_one">Copyright 2014-2025 湖南科德信息咨询集团有限公司</span>
@@ -623,6 +633,10 @@
     <!-- 导航栏效果、回到顶部 -->
     <script th:if="${type}!='houtai'" th:src="${portalHost+'/js/secode.js'}"></script>
     <script th:if="${type}!='houtai'" th:src="${portalHost+'/js/register.js'}"></script>
+    <script th:src="${portalHost+'/js/link.js'}"></script>
+    <script th:src="${portalHost+'/js/linkMobail.js'}"></script>
+    <script th:src="${portalHost+'/js/city.js'}"></script>
+    <script th:src="${portalHost+'/js/cityMobail.js'}"></script>
     <script th:inline="javascript">
         /*<![CDATA[*/
         window.globalConfig = {};
@@ -636,6 +650,7 @@
         globalConfig.avatarUploadHost = /*[[${avatarUploadHost}]]*/'';
         globalConfig.csrfToken = /*[[${csrf}]]*/'';
         globalConfig.links = /*[[${links}]]*/'';
+        globalConfig.citys = /*[[${popularCities}]]*/'';
         globalConfig.kfqq = '2035994611';
         window.userData = {};
         window.adminData = {};
@@ -649,61 +664,9 @@
         }
         /*]]>*/
     </script>
-    <script th:src="${portalHost+'/js/swiper/swiper.min.js'}"></script>
-    <script>
-        var swiper = new Swiper("#swiper5", {
-            direction : 'vertical',
-            autoplay: {
-                delay: 3000,
-                pauseOnMouseEnter: true,
-            },
-            loop: true,
-            // slidesPerView:2,
-            // grid: {
-            //     fill: 'column',
-            //     rows: 3,
-            // },
 
-        });
-        const link = globalConfig.links;
-        // link.forEach(element => {
-        //     swiper.appendSlide('<div class="swiper-slide" style="display:flex"><div style="padding: 0 4px"><a style="color:white" href='+element.url+' ><span>'+element.name+'</span></a></div></div>');
-        // });
-        // const link = globalConfig.links;
-        // link.forEach(element => {
-        //     $('.links').append('<div class="swiper-slide" ><a style="color:white" href='+element.url+' ><span>'+element.name+'</span></a></div>')
-        // });
-    </script>
-    <script>
-        var swiper = new Swiper("#swiper6x", {
-            direction : 'vertical',
-            autoplay: {
-                delay: 3000,
-                // pauseOnMouseEnter: true,
-            },
-            loop: true,
-            // slidesPerView:2,
-            // grid: {
-            //     fill: 'column',
-            //     rows: 3,
-            // },
+    <script th:src="${portalHost+'/js/swiper/swiper.min.js'}"></script>
 
-        });
-    </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>
     <th:block th:replace="${scripts}" />
 </th:block>
 

+ 8 - 1
src/main/webapp/WEB-INF/views/portal/link.html

@@ -30,7 +30,14 @@
         </header>
         <!-- 主体内容 -->
         <div class="client main" >
-            <div style="height: 60px;line-height: 60px;width: 70vw;margin: 0 auto;text-align: center;color: rgb(11, 103, 189);box-shadow:0px 0px  5px 2px #aaa;font-weight: bolder;">友情链接</div>
+            <div class="secondary-menu news-text">
+                <div class="container">
+                    <ul>
+                        <li class="active"><a href="javascript:;">友情链接</a> </li>
+                    </ul>
+                </div>
+            </div>
+
             <div style="padding:6px 20px;width:70vw;margin: 0 auto;">
               <h3>友情链接</h3>
               <div class="linkAll" style="margin: 6px 0;" >