Browse Source

新增顾问列表、顾问详情图片更换

anderx 7 years ago
parent
commit
0191d03aec

+ 11 - 0
src/main/java/com/goafanti/common/controller/WebpageController.java

@@ -18,6 +18,7 @@ import org.springframework.web.servlet.ModelAndView;
 import com.goafanti.achievement.service.AchievementInterestService;
 import com.goafanti.achievement.service.AchievementService;
 import com.goafanti.app.bo.ExpertsListBo;
+import com.goafanti.app.bo.consultantListBo;
 import com.goafanti.banners.service.BannersService;
 import com.goafanti.business.bo.JtBusinessCategoryBo;
 import com.goafanti.business.bo.JtBusinessCategoryTree;
@@ -1301,5 +1302,15 @@ public class WebpageController extends BaseController {
 		modelview.addObject("adviserDetail", adviserDetail);
 		return modelview;
 	}
+	/**
+	 * 顾问列表
+	 * @param modelview
+	 * @return
+	 */
+	@RequestMapping(value = "/portal/adviser/adviserList", method = RequestMethod.GET)
+	public ModelAndView adviserList(ModelAndView modelview){
+		modelview.setViewName("/portal/adviser/adviserList");
+		return modelview;
+	}
 	
 }

+ 1 - 1
src/main/java/com/goafanti/common/mapper/UserIdentityMapper.xml

@@ -1190,7 +1190,7 @@ order by
   
   <select id="listInterestedExpert" resultType="com.goafanti.user.bo.UserIdentityBo">
 	 	select 	t.id ,t.uid,u.identify_name as username,t.work_unit as workUnit,t.province,t.area,t.professional_title as professionalTitle,t.industry,t.city,
-		u.type,u.introduction,u.head_portrait_url as headPortraitUrl
+		u.type,u.introduction,t.expert,u.head_portrait_url as headPortraitUrl
 		from user_identity t left JOIN user u on t.uid = u.id
 		left join user_interest ui on ui.to_uid=u.id
 		where ui.from_uid=#{uid,jdbcType=VARCHAR}

+ 1 - 1
src/main/webapp/WEB-INF/views/portal/adviser/adviserDetail.html

@@ -17,7 +17,7 @@
     </div>
     <div class="container">
         <div class="componyLogo">
-            <div><img th:src="${portalHost+'/img/initPic/achievementInit.jpg'}" alt=""></div>
+            <div><img th:src="${portalHost+adviserDetail.personPortraitUrl}" alt=""></div>
             <p><span class="name" th:text="${adviserDetail.username}">李四光</span><span class="position" th:text="${adviserDetail.consultantTypeName}">专利代理人</span></p>
         </div>
         <div class="collectionN active"><span th:class="${adviserDetail.interested}==0?'heart':'heart active'"></span><span class="nubCollect" th:text="${adviserDetail.countInterest}">55</span>次关注</div>

+ 65 - 0
src/main/webapp/WEB-INF/views/portal/adviser/adviserList.html

@@ -0,0 +1,65 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <meta http-equiv="X-UA-Compatible" content="ie=edge">
+    <title>知识产权顾问</title>
+  
+<link th:href="${portalHost+'/vendors.css'}" rel="stylesheet">
+<link th:href="${portalHost+'/newMenu/adviserList.css'}" rel="stylesheet"></head>
+<body>
+      <div th:replace="common::nav('','adviserDetail')"></div>
+    <!-- 中间内容开始 -->
+    <div class="container">
+        <div class="indexSearch">
+            <div class="search-inp">
+                <div class="input-group">
+                    <input type="text" class="form-control demandSearch" placeholder="搜索您要找的顾问。。">
+                    <span class="input-group-btn">
+                        <button class="btn btn-default searchBtn" type="button">
+                            <img th:src="${portalHost+'/img/newMenu/search-icon.jpg'}" alt=""> 搜索
+                        </button>
+                    </span>
+                </div>
+            </div>
+        </div>
+        <div class="adviserList">
+            <ul>
+                
+            </ul>
+        </div>
+        <div class="pagination_box">
+                <nav aria-label="Page navigation" class="clearfix">
+                    <ul class="pagination">
+                        <li class="pagePre">
+                            <a href="#" aria-label="Previous">
+                                <span aria-hidden="true">首页</span>
+                            </a>
+                        </li>
+                        <li class="pageNumber"><a href="#" value="1">1</a></li>
+                        <li class="pageNext">
+                            <a href="#" aria-label="Next">
+                                <span aria-hidden="true">末页</span>
+                            </a>
+                        </li>
+                    </ul>
+                    <div class="inp">
+                        <input type="text" class=""><button class="btn btn-default">跳转</button>
+                    </div>
+                    <span class="totalCount">共0条数据</span>
+                </nav>
+            </div>
+    </div>
+    <!-- 中间内容结束 -->
+    <!-- 公共底部  省略 -->
+    <footer>
+        <div th:replace="common::copyright"></div>
+		<div th:replace="common::login"></div>
+    </footer>
+    <div th:replace="common::footer(~{::script})">
+		<script type="text/javascript" th:src="${portalHost + '/vendors.js'}"></script>
+		<script type="text/javascript" th:src="${portalHost + '/newMenu/adviserList.js'}"></script>
+	</div>
+</body>
+</html>