Ver código fonte

默认图修改

liliang4869 7 anos atrás
pai
commit
6577ea979e

+ 6 - 1
src/main/java/com/goafanti/portal/controller/PortalSearchController.java

@@ -11,6 +11,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RequestMethod;
 import org.springframework.web.bind.annotation.RestController;
 
+import com.alibaba.druid.sql.visitor.functions.If;
 import com.goafanti.achievement.service.AchievementService;
 import com.goafanti.common.bo.Result;
 import com.goafanti.common.constant.ErrorConstants;
@@ -63,7 +64,11 @@ public class PortalSearchController extends BaseController {
 		if (StringUtils.isNumeric(pageNo)) {
 			pNo = Integer.parseInt(pageNo);
 		}
-	
+		if(field!=null && field.length()<=0) {
+			field=null;
+		}
+		if(province ==null || province.intValue()<=0)province=null;
+		
 			res.setData(userIdentityService.listSubscriber(url,name, level, field, province, city, area, international, pNo, pSize));
 	
 		return res;

+ 5 - 5
src/main/webapp/WEB-INF/views/portal/index.html

@@ -222,7 +222,7 @@
 						<h3 th:text="${'什么是'+pj.name+'?'}"></h3>
 						<p th:text="${#strings.abbreviate(pj.introduce,90)}"></p>
 						</div>
-						<img th:src="${pj.maxImgUrl}==null?${portalHost+'/img/indexNew8.jpg'}:${avatarUploadHost+pj.maxImgUrl}" alt="" />
+						<img th:src="${pj.maxImgUrl}==null?${portalHost+'/img/initPic/serviceInit.jpg'}:${avatarUploadHost+pj.maxImgUrl}" alt="" />
 					</div>
 					<div class="indexServe_bot">
 						<div>认定好处</div>
@@ -236,7 +236,7 @@
 					</div>
 				</div>
 				<div class="indexServe_long"  th:each="pj1,projectStatus:${projects}" th:if="${projectStatus.index>=3} and ${projectStatus.index<5}" >
-					<img th:src="${pj1.maxImgUrl}==null?${portalHost+'/img/indexNew8.jpg'}:${avatarUploadHost+pj1.maxImgUrl}" alt="" />
+					<img th:src="${pj1.maxImgUrl}==null?${portalHost+'/img/initPic/serviceInit.jpg'}:${avatarUploadHost+pj1.maxImgUrl}" alt="" />
 					<div class="indexServe_bots">
 							<h3 th:text="${'什么是'+pj1.name+'?'}"></h3>
 						<p th:text="${#strings.abbreviate(pj1.introduce,90)}"></p>
@@ -302,7 +302,7 @@
 			<div class="indexGroom_tables chengguo" >
 			<a  th:each="a:${achievements}" th:href="@{/portal/technologyTrading/achievementDetail(id=${a.id},type=${a.dataCategory})}" >
 					<div>
-						<img th:src="${a.firstPicture}==null?${portalHost+'/img/indexNewTab.jpg'}:${avatarUploadHost+a.firstPicture}" alt="" />
+						<img th:src="${a.firstPicture}==null?${portalHost+'/img/initPic/achievementInit.jpg'}:${avatarUploadHost+a.firstPicture}" alt="" />
 						<div>
 							<h3 th:text="${a.name}"></h3>
 							<p th:text="${a.introduction}"></p>
@@ -319,7 +319,7 @@
 				
 				<a th:each="d:${demands}" th:href="@{/portal/technologyTrading/demandDetail(id=${d.id},type=${d.dataCategory})}">
 					<div >
-						<img th:src="${d.pictureUrl}==null?${portalHost+'/img/indexNewTab.jpg'}:${avatarUploadHost+d.pictureUrl}" alt="" />
+						<img th:src="${d.pictureUrl}==null?${portalHost+'/img/initPic/demandInit.jpg'}:${avatarUploadHost+d.pictureUrl}" alt="" />
 						<div>
 							<h3 th:text="${d.name}">风力发电领域内高效率变化内高效率变化</h3>
 							<p th:text="${d.problemDes}">风力发电领域内高效率变化内高效率变化风力发电领域内高效率变化内高效率变化风力发电领域内高效率变化内高效率变化</p>
@@ -351,7 +351,7 @@
 				
 					<a  th:each="e:${experts}" th:href="@{/portal/subscriberDetail(uid=${e.uid},type=0)}" >
 						<div>
-							<img th:src="${e.headPortraitUrl}==null?${portalHost+'/img/indexNew14.jpg'}:${avatarUploadHost+e.headPortraitUrl}" alt="" />
+							<img th:src="${e.headPortraitUrl}==null?${portalHost+'/img/initPic/policyInit.jpg'}:${avatarUploadHost+e.headPortraitUrl}" alt="" />
 							<div class="indexExpert_basc">
 								<h3 th:text="${e.username}">张三</h3>
 								<span>/</span>

Diferenças do arquivo suprimidas por serem muito extensas
+ 1 - 1
src/main/webapp/WEB-INF/views/portal/service/serviceDetails.html


Diferenças do arquivo suprimidas por serem muito extensas
+ 1 - 1
src/main/webapp/WEB-INF/views/portal/service/serviceIndex.html


+ 5 - 5
src/main/webapp/WEB-INF/views/portal/technologyTrading/achievement.html

@@ -95,7 +95,7 @@
             <ul>
                 <li th:each="ra:${recentAchievements}" >
                 <a th:href="@{/portal/technologyTrading/achievementDetail(id=${ra.id},type=${ra.dataCategory})}">
-                    <img th:src="${ra.firstPicture}==null?${portalHost+'/img/newMenu/achievement_2.jpg'}:${avatarUploadHost+ra.firstPicture}" alt="">
+                    <img th:src="${ra.firstPicture}==null?${portalHost+'/img/initPic/achievementInit.jpg'}:${avatarUploadHost+ra.firstPicture}" alt="">
                     <div>
                             <p th:text="${#strings.abbreviate(ra.name,15)}"></p>
                             <p><span class="orange" th:text="${ra.dataCategoryS}"></span>
@@ -125,7 +125,7 @@
                 <li class="col-sm-4" th:each="hota:${hotAchievements}">
                   <a th:href="@{/portal/technologyTrading/achievementDetail(id=${hota.id},type=${hota.dataCategory})}">
                     <div>
-                        <img th:src="${hota.firstPicture}==null?${portalHost+'/img/newMenu/achievement_8.jpg'}:${avatarUploadHost+hota.firstPicture}" alt="">
+                        <img th:src="${hota.firstPicture}==null?${portalHost+'/img/initPic/achievementInit.jpg'}:${avatarUploadHost+hota.firstPicture}" alt="">
                         <div>
                             <h4 th:text="${hota.name}">高压电极加热技术和蓄热技术巨物无...</h4>
                             <p><span class="orange" th:text="${hota.interestCount}==null?'已关注:0人':${'已关注'+hota.interestCount+'人'}">
@@ -173,7 +173,7 @@
                         <li class="col-sm-4" th:each="pts:${patents}">
                           <a th:href="@{/portal/technologyTrading/achievementDetail(id=${pts.id},type=${pts.dataCategory})}">
                             <div>
-                                <img th:src="${pts.firstPicture}==null?${portalHost+'/img/newMenu/achievement_14.jpg'}:${avatarUploadHost+pts.firstPicture}" alt="">
+                                <img th:src="${pts.firstPicture}==null?${portalHost+'/img/initPic/achievementInit.jpg'}:${avatarUploadHost+pts.firstPicture}" alt="">
                                 <p th:text="${pts.name}"></p>
                             </div>
                             </a>
@@ -199,7 +199,7 @@
                     <li th:each="pt,ptStat:${practicalTechnology}" th:if="${ptStat.index}<5">
                       <a th:href="@{/portal/technologyTrading/achievementDetail(id=${pt.id},type=${pt.dataCategory})}">
                         <div class="imgBj" >
-                            <img th:src="${pt.firstPicture}==null?${portalHost+'/img/newMenu/achievement_19.jpg'}:${avatarUploadHost+pt.firstPicture}" alt="">   
+                            <img th:src="${pt.firstPicture}==null?${portalHost+'/img/initPic/achievementInit.jpg'}:${avatarUploadHost+pt.firstPicture}" alt="">   
                             <span></span>
                         </div>
                         <div class="txts">
@@ -220,7 +220,7 @@
                       
                         <li  th:each="pt,ptStat:${practicalTechnology}" th:if="${ptStat.index}>=5 and ${ptStat.index}<8">
                           <a th:href="@{/portal/technologyTrading/achievementDetail(id=${pt.id},type=${pt.dataCategory})}">
-                            <img th:src="${pt.firstPicture}==null?${portalHost+'/img/newMenu/achievement_19.jpg'}:${avatarUploadHost+pt.firstPicture}" alt="">
+                            <img th:src="${pt.firstPicture}==null?${portalHost+'/img/initPic/achievementInit.jpg'}:${avatarUploadHost+pt.firstPicture}" alt="">
                             <div class="practicalGrounpTxt">
                                 <div class="txts">
                                     <h5 th:text="${pt.name}"></h5>

+ 3 - 3
src/main/webapp/WEB-INF/views/portal/technologyTrading/achievementDetail.html

@@ -34,7 +34,7 @@
 					</div>
 					<div class="big_img">
 						<div th:if="${achievementdetail.firstPicture} == null ">
-							<img th:src="${portalHost+'/img/indexNewTab.jpg'}" alt=""/>
+							<img th:src="${portalHost+'/img/initPic/achievementInit.jpg'}" alt=""/>
 						</div>
 						<div th:if="${achievementdetail.firstPicture} != null ">
 							<img th:src= "${avatarUploadHost+achievementdetail.firstPicture}"alt=""  />
@@ -78,7 +78,7 @@
 						<div th:each="reboutiqueachievement:${reboutiqueachievement}" class="pointer" >
 							
 							<div th:if="${reboutiqueachievement.firstPicture} == null " >
-								<img th:src="${portalHost+'/img/indexNewTab.jpg'}" alt=""/>
+								<img th:src="${portalHost+'/img/initPic/achievementInit.jpg'}" alt=""/>
 							</div>
 							<div th:if="${reboutiqueachievement.firstPicture} != null ">
 								<img th:src="${avatarUploadHost+reboutiqueachievement.firstPicture}" alt=""/>
@@ -103,7 +103,7 @@
 					<ul>
 						<li th:each="reachievementlist:${guess}">
 							<div th:if="${reachievementlist.firstPicture} == null " >
-								<img th:src="${portalHost+'/img/indexNewTab.jpg'}" alt=""/>
+								<img th:src="${portalHost+'/img/initPic/achievementInit.jpg'}" alt=""/>
 							</div>
 							<div th:if="${reachievementlist.firstPicture} != null " >
 								<img th:src="${avatarUploadHost+reachievementlist.firstPicture}" alt=""/>

Diferenças do arquivo suprimidas por serem muito extensas
+ 1 - 1
src/main/webapp/WEB-INF/views/portal/technologyTrading/achievementList.html


+ 2 - 2
src/main/webapp/WEB-INF/views/portal/technologyTrading/demand.html

@@ -283,7 +283,7 @@
 						<li th:each="companyDemandList:${companyDemandList}">
 						<a th:href="@{/portal/technologyTrading/demandDetail(id=${companyDemandList.id},type=${companyDemandList.dataCategory})}">
 						<img
-							th:src="${companyDemandList.pictureUrl}==null?${portalHost+'/img/newMenu/demand-9.png'}:${avatarUploadHost +companyDemandList.pictureUrl}"
+							th:src="${companyDemandList.pictureUrl}==null?${portalHost+'/img/initPic/demandInit.jpg'}:${avatarUploadHost +companyDemandList.pictureUrl}"
 							alt="">
 							<p th:text="${companyDemandList.name}"></p>
 							</a>
@@ -338,7 +338,7 @@
 					<li class="col-sm-4" th:each="plsdemand:${proLearnStudyDemandList}">
 						<a th:href="@{/portal/technologyTrading/demandDetail(id=${plsdemand.id},type=${plsdemand.dataCategory})}">
 						<div class="imgLeft">
-							<img th:if="${plsdemand.pictureUrl}==null" th:src="${portalHost+'/img/newMenu/demand-17.jpg'}" alt="">
+							<img th:if="${plsdemand.pictureUrl}==null" th:src="${portalHost+'/img/initPic/demandInit.jpg'}" alt="">
 							<img th:if="${plsdemand.pictureUrl}!=null" th:src="${avatarUploadHost+plsdemand.pictureUrl}" alt="">
 						</div>
 						<div class="imgRight">

+ 3 - 3
src/main/webapp/WEB-INF/views/portal/technologyTrading/demandDetail.html

@@ -27,7 +27,7 @@
 					</div>
 					<div class="big_img">
 						<div th:if="${demand.firstPic} == null " >
-							<img th:src="${portalHost+'/img/indexNewTab.jpg'}" alt=""/>
+							<img th:src="${portalHost+'/img/initPic/demandInit.jpg'}" alt=""/>
 						</div>
 						<div th:if="${demand.firstPic} != null " >
 							<img th:src= "${avatarUploadHost+demand.firstPic}"alt="" />
@@ -61,7 +61,7 @@
 						<div th:each="reboutiquedemand:${reboutiquedemand}" class="pointer">
 							
 							<div th:if="${reboutiquedemand.firstPic} == null " >
-								<img th:src="${portalHost+'/img/indexNewTab.jpg'}" alt=""/>
+								<img th:src="${portalHost+'/img/initPic/demandInit.jpg'}" alt=""/>
 							</div>
 							<div th:if="${reboutiquedemand.firstPic} != null" >
 								<img th:src="${avatarUploadHost+reboutiquedemand.firstPic}" alt=""/>
@@ -85,7 +85,7 @@
 					<ul>
 						<li th:each="redemandlist:${redemandlist}"> 
 							<div th:if="${redemandlist.firstPic} == null " >
-								<img th:src="${portalHost+'/img/indexNewTab.jpg'}" alt=""/>
+								<img th:src="${portalHost+'/img/initPic/demandInit.jpg'}" alt=""/>
 							</div>
 							<div th:if="${redemandlist.firstPic} != null" >
 								<img th:src="${avatarUploadHost+redemandlist.firstPic}" alt=""/>

Diferenças do arquivo suprimidas por serem muito extensas
+ 1 - 1
src/main/webapp/WEB-INF/views/portal/technologyTrading/demandList.html