2510966293@qq.com лет назад: 5
Родитель
Сommit
a234c4c452

+ 10 - 0
src/main/java/com/yc/education/controller/admin/AdminsBackController.java

@@ -2,7 +2,9 @@ package com.yc.education.controller.admin;
 
 import com.yc.education.controller.BaseController;
 import com.yc.education.model.Admins;
+import com.yc.education.model.Feedback;
 import com.yc.education.service.AdminsService;
+import com.yc.education.service.IFeedBackService;
 import com.yc.education.util.AjaxMessage;
 import com.yc.education.util.AppConst;
 import com.yc.education.util.SM4;
@@ -37,6 +39,8 @@ public class AdminsBackController extends BaseController {
 	
 	@Autowired
 	private AdminsService adminsService;
+	@Autowired
+	IFeedBackService iFeedBackService; //留言回复
 	
 	/**
 	 * 跳转到后台管理登录页面   Lock-玄清
@@ -106,6 +110,12 @@ public class AdminsBackController extends BaseController {
 			ModelAndView result = new ModelAndView("admin/index");
 			request.getSession().setAttribute(AppConst.Session_Admin, admin);
 			result.addObject("admin", admin);
+			List<Feedback> feedbackList = iFeedBackService.listFeedBackInfo(null,"0",1,Integer.MAX_VALUE);
+			if(feedbackList != null){
+				result.addObject("unread", feedbackList.size());
+			}else{
+				result.addObject("unread", 0);
+			}
 			return result;
 		}else{
 			ModelAndView result = new ModelAndView("admin/login");

+ 1 - 1
src/main/webapp/WEB-INF/jsp/admin/activityNewsList.jsp

@@ -64,7 +64,7 @@
                         class="Hui-iconfont">&#xe600;</i> 添加资讯</a>
                 <i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</i>
                 <c:forEach items="${typeInfo}" var="typeInfo">
-                    <a class="btn btn-primary radius" href="activityNewsList.html?typeId=${typeInfo.id}">${typeInfo.typename}</a>
+                    <a class="btn btn-primary radius" <c:if test="${typeInfo.id==typeId}">style="background-color:#0a6999"</c:if>  href="activityNewsList.html?typeId=${typeInfo.id}">${typeInfo.typename}</a>
                 </c:forEach>
 			</span>
         <span class="r">共有数据:<strong>${pageInfo.total}</strong> 条</span>

+ 1 - 1
src/main/webapp/WEB-INF/jsp/admin/brandList.jsp

@@ -49,7 +49,7 @@
     </div>
     <div class="mt-20">
         <c:forEach items="${letter}" var="letter">
-            <a href="brandList.html?prefix=${letter}" style="font-size: large;letter-spacing: 46px;text-decoration: none">${letter}</a>
+            <a href="brandList.html?prefix=${letter}"  <c:if test="${letter==prefix}">style="color:#0a6999;font-size: large;letter-spacing: 46px;text-decoration: none"</c:if>  style="font-size: large;letter-spacing: 46px;text-decoration: none">${letter}</a>
         </c:forEach>
         <table class="table table-border table-bordered table-bg table-hover table-sort" style="table-layout:fixed">
 

+ 2 - 2
src/main/webapp/WEB-INF/jsp/admin/feedBackList.jsp

@@ -60,9 +60,9 @@
 			<span class="l">
                 <a class="btn btn-danger radius"  href="javascript:;"  id="delete"    ><i class="Hui-iconfont">&#xe6e2;</i>批量删除</a>
                   <i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</i>
-                 <a class="btn btn-primary radius" href="feedBackList.html?isReply=0">未回复</a>
+                 <a class="btn btn-primary radius" <c:if test="${isReplay==0}">style="background-color:#0a6999"</c:if>  href="feedBackList.html?isReply=0">未回复</a>
                  <i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</i>
-                 <a class="btn btn-primary radius" href="feedBackList.html?isReply=1">已回复</a>
+                 <a class="btn btn-primary radius" <c:if test="${isReplay==1}">style="background-color:#0a6999"</c:if>  href="feedBackList.html?isReply=1">已回复</a>
 			</span>
         <span class="r">共有数据:<strong>${pageInfo.total}</strong> 条</span>
     </div>

+ 10 - 16
src/main/webapp/WEB-INF/jsp/admin/index.jsp

@@ -212,24 +212,18 @@
 				</dd>
 			</dl>
 			<dl id="menu-about">
-				<dt>
-					<i class="Hui-iconfont">&#xe692;</i>关于我们<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i>
-				</dt>
-				<dd>
-					<ul>
-						<li><a data-href="aboutList.html" data-title="关于我们" href="javascript:void(0)">关于我们</a></li>
-					</ul>
-				</dd>
+				<a style="text-decoration: none;" data-href="aboutList.html" data-title="关于我们" href="javascript:void(0)">
+					<dt>
+						<i class="Hui-iconfont">&#xe623;</i>关于我们
+					</dt>
+				</a>
 			</dl>
 			<dl id="menu-feedback">
-				<dt>
-					<i class="Hui-iconfont">&#xe692;</i>留言反馈<i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i>
-				</dt>
-				<dd>
-					<ul>
-						<li><a data-href="feedBackList.html" data-title="留言反馈" href="javascript:void(0)">留言反馈</a></li>
-					</ul>
-				</dd>
+				<a style="text-decoration: none;" data-href="feedBackList.html" data-title="留言反馈" href="javascript:void(0)">
+					<dt>
+						<i class="Hui-iconfont">&#xe623;</i>留言反馈 <span style="color: red">${unread}条</span>
+					</dt>
+				</a>
 			</dl>
 			<%--<dl id="menu-message">
 				<dt>

+ 1 - 1
src/main/webapp/WEB-INF/jsp/admin/ownerServiceList.jsp

@@ -55,7 +55,7 @@
                         class="Hui-iconfont">&#xe600;</i> 添加资讯</a>
                 <i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</i>
                 <c:forEach items="${ownerType}" var="ownerType">
-                    <a class="btn btn-primary radius"  href="ownerServiceList.html?typeId=${ownerType.id}">${ownerType.typeName}</a>
+                    <a class="btn btn-primary radius" <c:if test="${ownerType.id==type}">style="background-color:#0a6999"</c:if> href="ownerServiceList.html?typeId=${ownerType.id}">${ownerType.typeName}</a>
                 </c:forEach>
 
 			</span>

+ 1 - 1
src/main/webapp/WEB-INF/jsp/admin/serviceCategoryList.jsp

@@ -71,7 +71,7 @@
 
     <div class="mt-20">
         <c:forEach items="${findall}" var="first">
-            <a class="btn btn-primary radius"  href="serviceCategoryList.html?typeid=${first.id}" style="letter-spacing: 10px;">${first.name}</a>
+            <a class="btn btn-primary radius" <c:if test="${first.id==type}">style="background-color:#0a6999"</c:if>  href="serviceCategoryList.html?typeid=${first.id}" style="letter-spacing: 10px;">${first.name}</a>
         </c:forEach>
         <table class="table table-border table-bordered table-bg table-hover table-sort">
             <thead>