소스 검색

优化样式

Memory_LG 4 달 전
부모
커밋
c5a4f71805

+ 18 - 1
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>
@@ -52,4 +52,21 @@
         <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 - 1
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);
         }

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

@@ -4,16 +4,20 @@
 <!--中间内容开始-->
 <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!}" 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>
+			@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>

+ 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();