فهرست منبع

Merge remote-tracking branch 'origin/master'

lyq 4 ماه پیش
والد
کامیت
d165307218
20فایلهای تغییر یافته به همراه117 افزوده شده و 69 حذف شده
  1. 5 5
      src/main/java/com/sooka/common/utils/JsonUtil.java
  2. 5 5
      src/main/java/com/sooka/module/api/vo/ApiResult.java
  3. 2 2
      src/main/resources/templates/www/tuiyijunren/content-yzgw.html
  4. 10 0
      src/main/resources/templates/www/tuiyijunren/content-zslb.html
  5. 20 3
      src/main/resources/templates/www/tuiyijunren/include/header-index.html
  6. 3 3
      src/main/resources/templates/www/tuiyijunren/include/header.html
  7. 12 4
      src/main/resources/templates/www/tuiyijunren/index.html
  8. 1 1
      src/main/resources/templates/www/tuiyijunren/list-cyfw.html
  9. 1 1
      src/main/resources/templates/www/tuiyijunren/list-dpsg.html
  10. 1 6
      src/main/resources/templates/www/tuiyijunren/list-jyxx.html
  11. 1 1
      src/main/resources/templates/www/tuiyijunren/list-seek.html
  12. 1 1
      src/main/resources/templates/www/tuiyijunren/list-xlts.html
  13. 9 9
      src/main/resources/templates/www/tuiyijunren/list-yzgw.html
  14. 1 1
      src/main/resources/templates/www/tuiyijunren/list-zcxc.html
  15. 2 2
      src/main/resources/templates/www/tuiyijunren/list-zhfw.html
  16. 1 1
      src/main/resources/templates/www/tuiyijunren/list-zph.html
  17. 17 14
      src/main/resources/templates/www/tuiyijunren/list-zslb.html
  18. 11 0
      src/main/resources/templates/www/tuiyijunren/list-zsrz.html
  19. 3 3
      src/main/resources/templates/www/tuiyijunren/list-zx.html
  20. 11 7
      src/main/resources/templates/www/tuiyijunren/listForSearch.html

+ 5 - 5
src/main/java/com/sooka/common/utils/JsonUtil.java

@@ -11,9 +11,9 @@ import java.util.Map;
 
 public class JsonUtil {
 
-    private final static Integer DEFAULT_ERROR_CODE = 1;
+    private final static Integer DEFAULT_ERROR_CODE = 500;
 
-    private final static Integer DEFAULT_SUCCESS_CODE = 0;
+    private final static Integer DEFAULT_SUCCESS_CODE = 200;
 
 
     /*后台框架请求成功JSON*/
@@ -144,7 +144,7 @@ public class JsonUtil {
     /* API接口请求成功返回JSON */
     public static String toSuccessResultJSON(String msg,List list){
         ApiResult result = new ApiResult<List>();
-        result.setStatusCode(DEFAULT_SUCCESS_CODE);
+        result.setCode(DEFAULT_SUCCESS_CODE);
         result.setMsg(msg);
         result.setData(list);
         return JSON.toJSONString(result);
@@ -153,7 +153,7 @@ public class JsonUtil {
     /* API接口请求成功返回JSON */
     public static String toSuccessResultJSON(String msg,Object object){
         ApiResult result = new ApiResult();
-        result.setStatusCode(DEFAULT_SUCCESS_CODE);
+        result.setCode(DEFAULT_SUCCESS_CODE);
         result.setMsg(msg);
         if(!CmsUtil.isNullOrEmpty(object)) {
             result.setData(object);
@@ -163,7 +163,7 @@ public class JsonUtil {
     /* API接口请求错误返回JSON */
     public static String toErrorResultJSON(String msg){
         ApiResult result = new ApiResult();
-        result.setStatusCode(DEFAULT_ERROR_CODE);
+        result.setCode(DEFAULT_ERROR_CODE);
         result.setMsg(msg);
         return JSON.toJSONString(result);
     }

+ 5 - 5
src/main/java/com/sooka/module/api/vo/ApiResult.java

@@ -8,16 +8,16 @@ package com.sooka.module.api.vo;
  **/
 public class ApiResult<T> {
 
-    private int statusCode;
+    private int code;
     private String msg;
     private T data;
 
-    public int getStatusCode() {
-        return statusCode;
+    public int getCode() {
+        return code;
     }
 
-    public void setStatusCode(int statusCode) {
-        this.statusCode = statusCode;
+    public void setCode(int code) {
+        this.code = code;
     }
 
     public String getMsg() {

+ 2 - 2
src/main/resources/templates/www/tuiyijunren/content-yzgw.html

@@ -6,7 +6,7 @@
 
 <!--中间内容开始-->
 <div class="er_content">
-	<div class="dqwz"><span>当前位置:<a href="${frontPath}/${site.siteId}">网站首页</a>><a href="${frontPath}/${site.siteId}/1237.html">优质岗位</a></span></div>
+	<div class="dqwz"><span>当前位置:<a href="${frontPath}/${site.siteId}">网站首页</a>><a href="${frontPath}/${site.siteId}/1221.html">就业信息</a>><a href="${frontPath}/${site.siteId}/${category.categoryId}.html">${category.categoryName}</a></span></div>
 	<div class="news_txt jy_news">
 		<div class="jy_news_top">
 			<h1>${content.title!}</h1>
@@ -26,7 +26,7 @@
 				<span class="lx">${content.company_industry}</span>
 				<span class="ry">${content.company_size!}</span>
 				<!--<span class="rz">不需要融资</span>-->
-				<a class="qy_more" href="${content.company_home!}">公司主页</a>
+				<a class="qy_more" target="_blank" href="${content.company_home!}">公司主页</a>
 			</div>
 
 		</div>

+ 10 - 0
src/main/resources/templates/www/tuiyijunren/content-zslb.html

@@ -11,9 +11,19 @@
 		<p>${content.content}</p>
 	</div>
 </div>
+<script>
+
+	$(function () {
+		$('.navi').removeClass("on")
+		let id = "1244";
+		$("#"+id).addClass("on");
+	});
+</script>
 <!--中间内容结束-->
 <!--底部开始-->
 @includeFileTemplate("/www/tuiyijunren/include/footer.html"){}
 <!--底部结束-->
 </body>
+
+
 </html>

+ 20 - 3
src/main/resources/templates/www/tuiyijunren/include/header-index.html

@@ -12,7 +12,7 @@
     <script src="${resPath}/tuiyijunren/images/dist/aos.js"></script>
     <script src="${resPath}/tuiyijunren/images/ft-carousel.min.js" type="text/javascript"></script>
     <script src="${resPath}/tuiyijunren/images/jquery.carouFredSel-6.0.4-packed.js" type="text/javascript"></script>
-    <script src="${ctxPath}/static/js/register/header-index.js"></script>
+<!--    <script src="${ctxPath}/static/js/register/header-index.js"></script>-->
 </head>
 
 <body>
@@ -48,8 +48,25 @@
         <a href="${frontPath}/${site.siteId}/1229.html">学历提升</a>
         <a href="${frontPath}/${site.siteId}/1236.html">综合服务</a>
         <a href="${frontPath}/${site.siteId}/1238.html">孵化基地</a>
-        <a  href="${frontPath}/${site.siteId}/1241.html">合作企业</a>
-        <a href="${frontPath}/${site.siteId}/1244.html">证书认证</a>
+        <a href="${frontPath}/${site.siteId}/1241.html">合作企业</a>
+        <a id="1244" href="${frontPath}/${site.siteId}/1244.html">证书认证</a>
     </div>
 </div>
+<script>
+    var showState = false;
+    $.ajax({
+        url: "/getInfo",
+        type: "post",
+        async: false,
+        success: function (data) {
+            var obj = eval(data);
+            showState = obj.status;
+            if (showState) {
+                $("#exit").prepend(obj.nickname).show();
+            } else {
+                $("#login").show();
+            }
+        }
+    });
+</script>
 <!--导航结束-->

+ 3 - 3
src/main/resources/templates/www/tuiyijunren/include/header.html

@@ -43,7 +43,7 @@
         <a class="navi" href="${frontPath}/${site.siteId}/1236.html">综合服务</a>
         <a class="navi" href="${frontPath}/${site.siteId}/1238.html">孵化基地</a>
         <a class="navi" href="${frontPath}/${site.siteId}/1241.html">合作企业</a>
-        <a class="navi" href="${frontPath}/${site.siteId}/1244.html">证书认证</a>
+        <a class="navi" id="1244" href="${frontPath}/${site.siteId}/1244.html">证书认证</a>
     </div>
 </div>
 <script>
@@ -51,13 +51,13 @@
         [], // 网站首页
         [1217], // 最新动态
         [1213, 1215, 1216], // 政策宣传
-        // [1213], // 就业信息
+        [1220,1221, 1222, 1223, 1224, 1245], // 就业信息
         [1226, 1227], // 创业服务
         [1229, 1230, 1231], // 学历提升
         [1236, 1235, 1234, 1233], // 综合服务
         [1238, 1239, 1240], // 孵化基地
         [1241], // 合作企业
-        // [1213], // 证书认证
+        [1249, 1248], // 证书认证
     ]
     let url = window.location.href;
     let id = url.split(".html")[0].split("/")[5] * 1;

+ 12 - 4
src/main/resources/templates/www/tuiyijunren/index.html

@@ -10,7 +10,9 @@
             html += renderSalaryTreatment(salary_treatment);
             html += '</h4>';
             html += '<p><span class="address">'+address+'</span>'+renderExperienceAndEducation(experience_and_education)+'</p>';
-            html += '<a class="zp_more" href="'+url+'">查看详细</a>';
+            if(showState){
+                html += '<a class="zp_more" href="'+url+'">查看详细</a>';
+            }
             html += '</div>';
             $("#"+id).append(html);
         }
@@ -60,7 +62,9 @@
                         <div class="date"><b>${bean.inputdate,dateFormat="dd"}</b><i>${bean.inputdate,dateFormat="yyyy-MM"}</i></div>
                         <div class="text">
                             <p>${bean.title!}</p>
-                            <span>${bean.description!}</span>
+                            <span>
+                                ${isNotEmpty(bean.description)&&strutil.length(bean.description)>70?strutil.subStringTo(bean.description,0,70)+"...":bean.description}
+                            </span>
                         </div>
                     </a>
                 </#cms_content_list>
@@ -73,7 +77,9 @@
                         <div class="date"><b>${bean.inputdate,dateFormat="dd"}</b><i>${bean.inputdate,dateFormat="yyyy-MM"}</i></div>
                         <div class="text">
                             <p>${bean.title!}</p>
-                            <span>${bean.description!}</span>
+                            <span>
+                                ${isNotEmpty(bean.description)&&strutil.length(bean.description)>70?strutil.subStringTo(bean.description,0,70)+"...":bean.description}
+                            </span>
                         </div>
                     </a>
                 </#cms_content_list>
@@ -86,7 +92,9 @@
                         <div class="date"><b>${bean.inputdate,dateFormat="dd"}</b><i>${bean.inputdate,dateFormat="yyyy-MM"}</i></div>
                         <div class="text">
                             <p>${bean.title!}</p>
-                            <span>${bean.description!}</span>
+                            <span>
+                                ${isNotEmpty(bean.description)&&strutil.length(bean.description)>70?strutil.subStringTo(bean.description,0,70)+"...":bean.description}
+                            </span>
                         </div>
                     </a>
                 </#cms_content_list>

+ 1 - 1
src/main/resources/templates/www/tuiyijunren/list-cyfw.html

@@ -14,7 +14,7 @@
 	<div class="er_right fl">
 		<div class="news_list">
 			<#cms_pagination siteId="${site.siteId}" categoryId="${categoryId}" page="${page}" moreNum="6" var="page">
-				<#cms_content_list siteId="${site.siteId}" categoryId="${categoryId}" orderBy="3" isHot="0" hasChild="0" isRecommend="0" size="4" titleLen="24" var="bean" pageNumber="${page.current}">
+				<#cms_content_list siteId="${site.siteId}" categoryId="${categoryId}" orderBy="3" isHot="0" hasChild="0" isRecommend="0" size="4" titleLen="22" var="bean" pageNumber="${page.current}">
 					<a class="news_list_div clearfix" href="${bean.url!}">
 						<img src="${bean.thumb!}" alt="${bean.title!}"/>
 						<div class="news_list_text">

+ 1 - 1
src/main/resources/templates/www/tuiyijunren/list-dpsg.html

@@ -22,7 +22,7 @@
 	<div class="er_right fl">
 		<div class="zyjn_list clearfix">
 			<#cms_pagination siteId="${site.siteId}" categoryId="${categoryId}" page="${page}" moreNum="6" var="page">
-				<#cms_content_list siteId="${site.siteId}" categoryId="${categoryId}" orderBy="3" isHot="0" hasChild="0" isRecommend="0" size="4" titleLen="24" var="bean" pageNumber="${page.current}">
+				<#cms_content_list siteId="${site.siteId}" categoryId="${categoryId}" orderBy="3" isHot="0" hasChild="0" isRecommend="0" size="6" titleLen="22" var="bean" pageNumber="${page.current}">
 					<div class="zyjn_list_div">
 							<img src="${bean.thumb!}" alt="${bean.title!}"/>
 							<h1>${bean.title!}</h1>

+ 1 - 6
src/main/resources/templates/www/tuiyijunren/list-jyxx.html

@@ -1,11 +1,6 @@
 <!--头部开始-->
 @includeFileTemplate("/www/tuiyijunren/include/header.html"){}
 <!--头部结束-->
-<style>
-    .yincang{
-        display: none;
-    }
-</style>
 <script src="${ctxPath}/static/js/register/jyxx.js"></script>
 <!--中间内容开始-->
 <div class="er_content clearfix">
@@ -21,7 +16,7 @@
 	<div class="er_right fl">
 		<div class="news_list">
 			<#cms_pagination siteId="${site.siteId}" categoryId="${categoryId}" page="${page}" moreNum="6" var="page">
-				<#cms_content_list siteId="${site.siteId}" categoryId="${categoryId}" orderBy="3" isHot="0" hasChild="0" isRecommend="0" size="4" titleLen="24" var="bean" pageNumber="${page.current}">
+				<#cms_content_list siteId="${site.siteId}" categoryId="${categoryId}" orderBy="3" isHot="0" hasChild="0" isRecommend="0" size="4" titleLen="22" var="bean" pageNumber="${page.current}">
 					<a class="news_list_div clearfix" href="${bean.url!}">
 						<img src="${bean.thumb!}" alt="${bean.title!}"/>
 						<div class="news_list_text">

+ 1 - 1
src/main/resources/templates/www/tuiyijunren/list-seek.html

@@ -14,7 +14,7 @@
 		@}
 		<dl>
 			<#cms_pagination siteId="${site.siteId}" categoryId="${categoryId}" page="${page}" moreNum="6" var="page">
-				<#cms_content_list siteId="${site.siteId}" categoryId="${categoryId}" orderBy="3" isHot="0" hasChild="0" isRecommend="0" size="12" titleLen="24" var="bean" pageNumber="${page.current}">
+				<#cms_content_list siteId="${site.siteId}" categoryId="${categoryId}" orderBy="3" isHot="0" hasChild="0" isRecommend="0" size="12" titleLen="22" var="bean" pageNumber="${page.current}">
 					<a href="${bean.url!}">
 						<dd>
 							<div class="teacher">

+ 1 - 1
src/main/resources/templates/www/tuiyijunren/list-xlts.html

@@ -14,7 +14,7 @@
 	<div class="er_right fl">
 		<div class="news_list">
 			<#cms_pagination siteId="${site.siteId}" categoryId="${categoryId}" page="${page}" moreNum="6" var="page">
-				<#cms_content_list siteId="${site.siteId}" categoryId="${categoryId}" orderBy="3" isHot="0" hasChild="0" isRecommend="0" size="3" titleLen="24" var="bean" pageNumber="${page.current}">
+				<#cms_content_list siteId="${site.siteId}" categoryId="${categoryId}" orderBy="3" isHot="0" hasChild="0" isRecommend="0" size="3" titleLen="22" var="bean" pageNumber="${page.current}">
 					<a class="news_list_div clearfix" href="${bean.url!}">
 						<img src="${bean.thumb!}" alt="${bean.title!}"/>
 						<div class="news_list_text">

+ 9 - 9
src/main/resources/templates/www/tuiyijunren/list-yzgw.html

@@ -54,7 +54,7 @@
             <span>其他</span>
         </div>
         <div class="yzgw_list clearfix" id="it">
-            <#cms_content_list siteId="${site.siteId}" categoryId="${categoryId}" orderBy="2" isHot="0" hasChild="0" isRecommend="0" size="99" titleLen="24" var="bean">
+            <#cms_content_list siteId="${site.siteId}" categoryId="${categoryId}" orderBy="2" isHot="0" hasChild="0" isRecommend="0" size="99" titleLen="22" var="bean">
                 <script>
                     renderContent("${bean.title!}","${bean.pay!}","${bean.salary_treatment!}","${bean.address!}",
                     "${bean.experience_and_education!}","${bean.url}","${bean.tag}","it","IT/互联网服务业");
@@ -62,7 +62,7 @@
             </#cms_content_list>
         </div>
         <div class="yzgw_list clearfix" id="qiche">
-            <#cms_content_list siteId="${site.siteId}" categoryId="${categoryId}" orderBy="2" isHot="0" hasChild="0" isRecommend="0" size="99" titleLen="24" var="bean">
+            <#cms_content_list siteId="${site.siteId}" categoryId="${categoryId}" orderBy="2" isHot="0" hasChild="0" isRecommend="0" size="99" titleLen="22" var="bean">
                 <script>
                     renderContent("${bean.title!}","${bean.pay!}","${bean.salary_treatment!}","${bean.address!}",
                         "${bean.experience_and_education!}","${bean.url}","${bean.tag}","qiche","汽车/制造");
@@ -70,7 +70,7 @@
             </#cms_content_list>
         </div>
         <div class="yzgw_list clearfix" id="lingshou">
-            <#cms_content_list siteId="${site.siteId}" categoryId="${categoryId}" orderBy="2" isHot="0" hasChild="0" isRecommend="0" size="99" titleLen="24" var="bean">
+            <#cms_content_list siteId="${site.siteId}" categoryId="${categoryId}" orderBy="2" isHot="0" hasChild="0" isRecommend="0" size="99" titleLen="22" var="bean">
                 <script>
                     renderContent("${bean.title!}","${bean.pay!}","${bean.salary_treatment!}","${bean.address!}",
                         "${bean.experience_and_education!}","${bean.url}","${bean.tag}","lingshou","贸易/零售");
@@ -78,7 +78,7 @@
             </#cms_content_list>
         </div>
         <div class="yzgw_list clearfix" id="fangdichan">
-            <#cms_content_list siteId="${site.siteId}" categoryId="${categoryId}" orderBy="2" isHot="0" hasChild="0" isRecommend="0" size="99" titleLen="24" var="bean">
+            <#cms_content_list siteId="${site.siteId}" categoryId="${categoryId}" orderBy="2" isHot="0" hasChild="0" isRecommend="0" size="99" titleLen="22" var="bean">
                 <script>
                     renderContent("${bean.title!}","${bean.pay!}","${bean.salary_treatment!}","${bean.address!}",
                         "${bean.experience_and_education!}","${bean.url}","${bean.tag}","fangdichan","房地产/建筑");
@@ -86,7 +86,7 @@
             </#cms_content_list>
         </div>
         <div class="yzgw_list clearfix" id="yiliao">
-            <#cms_content_list siteId="${site.siteId}" categoryId="${categoryId}" orderBy="2" isHot="0" hasChild="0" isRecommend="0" size="99" titleLen="24" var="bean">
+            <#cms_content_list siteId="${site.siteId}" categoryId="${categoryId}" orderBy="2" isHot="0" hasChild="0" isRecommend="0" size="99" titleLen="22" var="bean">
                 <script>
                     renderContent("${bean.title!}","${bean.pay!}","${bean.salary_treatment!}","${bean.address!}",
                         "${bean.experience_and_education!}","${bean.url}","${bean.tag}","yiliao","医疗/化工");
@@ -94,7 +94,7 @@
             </#cms_content_list>
         </div>
         <div class="yzgw_list clearfix" id="xiaofei">
-            <#cms_content_list siteId="${site.siteId}" categoryId="${categoryId}" orderBy="2" isHot="0" hasChild="0" isRecommend="0" size="99" titleLen="24" var="bean">
+            <#cms_content_list siteId="${site.siteId}" categoryId="${categoryId}" orderBy="2" isHot="0" hasChild="0" isRecommend="0" size="99" titleLen="22" var="bean">
                 <script>
                     renderContent("${bean.title!}","${bean.pay!}","${bean.salary_treatment!}","${bean.address!}",
                         "${bean.experience_and_education!}","${bean.url}","${bean.tag}","xiaofei","消费品");
@@ -102,7 +102,7 @@
             </#cms_content_list>
         </div>
         <div class="yzgw_list clearfix" id="wenhua">
-            <#cms_content_list siteId="${site.siteId}" categoryId="${categoryId}" orderBy="2" isHot="0" hasChild="0" isRecommend="0" size="99" titleLen="24" var="bean">
+            <#cms_content_list siteId="${site.siteId}" categoryId="${categoryId}" orderBy="2" isHot="0" hasChild="0" isRecommend="0" size="99" titleLen="22" var="bean">
                 <script>
                     renderContent("${bean.title!}","${bean.pay!}","${bean.salary_treatment!}","${bean.address!}",
                         "${bean.experience_and_education!}","${bean.url}","${bean.tag}","wenhua","文化/传媒");
@@ -110,7 +110,7 @@
             </#cms_content_list>
         </div>
         <div class="yzgw_list clearfix" id="jinrong">
-            <#cms_content_list siteId="${site.siteId}" categoryId="${categoryId}" orderBy="2" isHot="0" hasChild="0" isRecommend="0" size="99" titleLen="24" var="bean">
+            <#cms_content_list siteId="${site.siteId}" categoryId="${categoryId}" orderBy="2" isHot="0" hasChild="0" isRecommend="0" size="99" titleLen="22" var="bean">
                 <script>
                     renderContent("${bean.title!}","${bean.pay!}","${bean.salary_treatment!}","${bean.address!}",
                         "${bean.experience_and_education!}","${bean.url}","${bean.tag}","jinrong","金融");
@@ -118,7 +118,7 @@
             </#cms_content_list>
         </div>
         <div class="yzgw_list clearfix" id="qita">
-            <#cms_content_list siteId="${site.siteId}" categoryId="${categoryId}" orderBy="2" isHot="0" hasChild="0" isRecommend="0" size="99" titleLen="24" var="bean" >
+            <#cms_content_list siteId="${site.siteId}" categoryId="${categoryId}" orderBy="2" isHot="0" hasChild="0" isRecommend="0" size="99" titleLen="22" var="bean" >
                 <script>
                     renderContent("${bean.title!}","${bean.pay!}","${bean.salary_treatment!}","${bean.address!}",
                         "${bean.experience_and_education!}","${bean.url}","${bean.tag}","qita","其他");

+ 1 - 1
src/main/resources/templates/www/tuiyijunren/list-zcxc.html

@@ -14,7 +14,7 @@
     <div class="er_right fl">
         <div class="news_list">
             <#cms_pagination siteId="${site.siteId}" categoryId="${categoryId}" page="${page}" moreNum="6" var="page">
-                <#cms_content_list siteId="${site.siteId}" categoryId="${categoryId}" orderBy="2" isHot="0" hasChild="0" isRecommend="0" size="4" titleLen="24" var="bean" pageNumber="${page.current}">
+                <#cms_content_list siteId="${site.siteId}" categoryId="${categoryId}" orderBy="2" isHot="0" hasChild="0" isRecommend="0" size="4" titleLen="22" var="bean" pageNumber="${page.current}">
                     <a class="news_list_div clearfix" href="${bean.url!}">
                         <img src="${bean.thumb!}" alt="${bean.title!}"/>
                         <div class="news_list_text">

+ 2 - 2
src/main/resources/templates/www/tuiyijunren/list-zhfw.html

@@ -17,10 +17,10 @@
                 <#cms_content_list pageNumber="${page.current}" siteId="${site.siteId}" categoryId="${categoryId}" orderBy="3" isHot="0" hasChild="0" isRecommend="0" size="4" titleLen="22" var="bean">
                     <a class="news_list_div clearfix" href="${bean.url!}">
                         <img src="${bean.thumb!}" alt="${bean.title!}" style="width: 150px !important;"/>
-                        <div class="news_list_text">
+                        <div class="news_list_text" style="width: 760px;">
                             <h2>${bean.title!}</h2>
                             <h2>${bean.category.categoryId!}</h2>
-                            <span style="height: auto !important;">${bean.keywords!}</span>
+                            <span style="height: auto !important;">‌电话‌:${bean.keywords!}</span>
                             <span>${bean.description!}</span>
 <!--                            <p><i class="date">${bean.inputdate,dateFormat="yyyy年MM月dd日"}</i><i class="djl">点击量:${bean.viewNum!}</i></p>-->
                         </div>

+ 1 - 1
src/main/resources/templates/www/tuiyijunren/list-zph.html

@@ -6,7 +6,7 @@
 	<!--列表开始-->
 	<div class="news_list">
 		<#cms_pagination siteId="${site.siteId}" categoryId="${categoryId}" page="${page}" moreNum="6" var="page" >
-		<#cms_content_list siteId="${site.siteId}" categoryId="${categoryId}" orderBy="3" isHot="0" hasChild="0" isRecommend="0" size="5" titleLen="24" var="bean" pageNumber="${page.current}">
+		<#cms_content_list siteId="${site.siteId}" categoryId="${categoryId}" orderBy="3" isHot="0" hasChild="0" isRecommend="0" size="5" titleLen="22" var="bean" pageNumber="${page.current}">
 		<a class="news_list_div clearfix" href="${bean.url!}">
 			<img src="${bean.thumb!}" alt="${bean.title!}"/>
 			<div class="news_list_text">

+ 17 - 14
src/main/resources/templates/www/tuiyijunren/list-zslb.html

@@ -4,25 +4,28 @@
 <!--中间内容开始-->
 <div class="er_content">
 		<div class="news_list">
-			@for(item in model.list){
-			<a class="news_list_div clearfix" href="${frontPath}/${siteId}/${item.categoryId}/${item.contentId}.html">
-				<img src="${item.thumb!}" alt="${item.title!}"/>
-				<div class="news_list_text">
-					<h2>${item.title!}</h2>
-					<h2>${item.keywords!}</h2>
-					<span>${item.description!}</span>
-					<p><i class="date">${item.inputdate,dateFormat="yyyy年MM月dd日"}</i><i class="djl">点击量:${item.viewNum!}</i></p>
-				</div>
-			</a>
+			@if(isNotEmpty(model.list)){
+				@for(item in model.list){
+				<a class="news_list_div clearfix" href="${frontPath}/${siteId}/${item.categoryId}/${item.contentId}.html">
+					<img src="${item.thumb!}" alt="${item.title!}" style="width: 150px !important;"/>
+					<div class="news_list_text">
+						<h2>${item.title!}</h2>
+						<h2>${item.keywords!}</h2>
+						<span>${item.description!}</span>
+						<p><i class="date">${item.inputdate,dateFormat="yyyy年MM月dd日"}</i><i class="djl">点击量:${item.viewNum!}</i></p>
+					</div>
+				</a>
+				@}
+			@}else{
+				<p style="text-align: center;font-size: 18px;">未查询到相关结果</p>
 			@}
 		</div>
-		<div class="fenye">
-			@includeFileTemplate("/www/tuiyijunren/include/page.html"){}
-		</div>
 </div>
 <script>
+
 	$(function () {
-		let id = "${categoryId}";
+		$('.navi').removeClass("on")
+		let id = "1244";
 		$("#"+id).addClass("on");
 	});
 </script>

+ 11 - 0
src/main/resources/templates/www/tuiyijunren/list-zsrz.html

@@ -62,6 +62,17 @@
             show_err_msg('姓名与联系电话至少填写一个!');
             return false;
         }
+
+        if(username.trim() !== '' &&username.length > 4){
+            show_err_msg("请输入合法的姓名")
+            return false;
+        }
+
+        if(telephone.trim() !== '' && telephone.length > 11){
+            show_err_msg("请输入合法的联系电话")
+            return false;
+        }
+
         if (certificateType === '0' || certificateType.trim() === '') {
             show_err_msg('请选择证书类别! ')
             $('#certificateNum').focus();

+ 3 - 3
src/main/resources/templates/www/tuiyijunren/list-zx.html

@@ -7,7 +7,7 @@
 		<!-- 就业咨询 -->
 		<h1><img src="${resPath}/tuiyijunren/images/zx-49.png"/>就业咨询</h1>
 		<dl>
-			<#cms_content_list siteId="${site.siteId}" categoryId="1252" orderBy="2" isHot="0" hasChild="0" isRecommend="0" size="3" titleLen="24" var="bean">
+			<#cms_content_list siteId="${site.siteId}" categoryId="1252" orderBy="2" isHot="0" hasChild="0" isRecommend="0" size="3" titleLen="22" var="bean">
 				<a href="${bean.url!}">
 					<dd>
 						<div class="teacher">
@@ -29,7 +29,7 @@
 		<!-- 创业咨询 -->
 		<h1><img src="${resPath}/tuiyijunren/images/zx-50.png"/>创业咨询</h1>
 		<dl>
-			<#cms_content_list siteId="${site.siteId}" categoryId="1253" orderBy="2" isHot="0" hasChild="0" isRecommend="0" size="3" titleLen="24" var="bean">
+			<#cms_content_list siteId="${site.siteId}" categoryId="1253" orderBy="2" isHot="0" hasChild="0" isRecommend="0" size="3" titleLen="22" var="bean">
 				<a href="${bean.url!}">
 					<dd>
 						<div class="teacher">
@@ -51,7 +51,7 @@
 		<!-- 其他咨询 -->
 		<h1><img src="${resPath}/tuiyijunren/images/zx-51.png"/>其他咨询</h1>
 		<dl>
-			<#cms_content_list siteId="${site.siteId}" categoryId="1254" orderBy="2" isHot="0" hasChild="0" isRecommend="0" size="3" titleLen="24" var="bean">
+			<#cms_content_list siteId="${site.siteId}" categoryId="1254" orderBy="2" isHot="0" hasChild="0" isRecommend="0" size="3" titleLen="22" var="bean">
 				<a href="${bean.url!}">
 					<dd>
 						<div class="teacher">

+ 11 - 7
src/main/resources/templates/www/tuiyijunren/listForSearch.html

@@ -3,13 +3,17 @@
 <!--头部结束-->
 <div class="er_content">
 	<div class="news_list">
-		@for(item in model.list){
-			<a class="hzqy_list_div clearfix" href="${frontPath}/${siteId}/${item.categoryId}/${item.contentId}.html" style="color: #1b1b1b">
-				<div class="hzqy_list_text">
-					<h2>${item.title!}</h2>
-					<span>发布时间:${item.inputdate,dateFormat="YYYY-MM-dd"}</span>
-				</div>
-			</a>
+		@if(isNotEmpty(model.list)){
+			@for(item in model.list){
+				<a class="hzqy_list_div clearfix" href="${frontPath}/${siteId}/${item.categoryId}/${item.contentId}.html" style="color: #1b1b1b">
+					<div class="hzqy_list_text">
+						<h2>${item.title!}</h2>
+						<span>发布时间:${item.inputdate,dateFormat="YYYY-MM-dd"}</span>
+					</div>
+				</a>
+			@}
+		@}else{
+			<p style="text-align: center;font-size: 18px;">未查询到相关结果</p>
 		@}
 	</div>
 </div>