diff --git a/projects/fangjia-coresite/src/main/java/com/fangjia/coresite/controllers/TrendController.java b/projects/fangjia-coresite/src/main/java/com/fangjia/coresite/controllers/TrendController.java index c3a3756a9..cccf755b8 100644 --- a/projects/fangjia-coresite/src/main/java/com/fangjia/coresite/controllers/TrendController.java +++ b/projects/fangjia-coresite/src/main/java/com/fangjia/coresite/controllers/TrendController.java @@ -188,6 +188,8 @@ public class TrendController { // avgPrice = model.getRegionStatBo().getAvgPrice(); // } + int count = districtService.findCityDistrictCount(city); + model.setCount(count); model.setTrendView(trendView); //model.setLastestHouse(getRelatedHouse(model.getRegion(), avgPrice)); return model; diff --git a/projects/fangjia-coresite/src/main/java/com/fangjia/coresite/model/TrendModel.java b/projects/fangjia-coresite/src/main/java/com/fangjia/coresite/model/TrendModel.java index 6e7cfda75..a06cb6a31 100644 --- a/projects/fangjia-coresite/src/main/java/com/fangjia/coresite/model/TrendModel.java +++ b/projects/fangjia-coresite/src/main/java/com/fangjia/coresite/model/TrendModel.java @@ -53,6 +53,7 @@ public class TrendModel extends BaseModel implements TrendViewModel { private int showBlock; // 小区走势图里显示板块线,不为0时显示 private String errMsg; //错误信息 private int code; //错误code 1成功 -1失败 + private int count; public String getKeyword() { return keyword; } @@ -317,4 +318,11 @@ public class TrendModel extends BaseModel implements TrendViewModel { this.code = code; } + public int getCount() { + return count; + } + + public void setCount(int count) { + this.count = count; + } } diff --git a/projects/fangjia-coresite/src/main/webapp/trend/trend.ftl b/projects/fangjia-coresite/src/main/webapp/trend/trend.ftl index c4fb35940..ea155f653 100644 --- a/projects/fangjia-coresite/src/main/webapp/trend/trend.ftl +++ b/projects/fangjia-coresite/src/main/webapp/trend/trend.ftl @@ -125,6 +125,7 @@
<#if districtStatBo?? || regionStatBo??> + <#if count??>
${count!}
<#if districtStatBo??>
<#if districtStatBo.lastTimeDistrictStat??>${districtStatBo.lastTimeDistrictStat.avgPrice}<#else>鏆傛棤
<#if districtStatBo.districtStat??>${districtStatBo.districtStat.avgPrice}<#else>鏆傛棤
diff --git a/projects/fangjia-static/src/main/webapp/style/fangjia/v5/evaluation.css b/projects/fangjia-static/src/main/webapp/style/fangjia/v5/evaluation.css index 76562e090..7ad6783ae 100644 --- a/projects/fangjia-static/src/main/webapp/style/fangjia/v5/evaluation.css +++ b/projects/fangjia-static/src/main/webapp/style/fangjia/v5/evaluation.css @@ -424,7 +424,7 @@ .trend01a p small{display:block;text-align:center;font-size:12px;color:#999;margin-bottom:10px;} .trend01b{overflow:hidden;} -.trend01b div{width:350px;height:110px;background:url(../../../images/fangjia/v5/evaluation_line.png);border:solid 1px #e7ecf1;padding-top:30px;float:left;margin-right:72px;} +.trend01b div{width:20%;height:110px;background:url(../../../images/fangjia/v5/evaluation_line.png);border:solid 1px #e7ecf1;padding-top:30px;float:left;margin-right:72px;} .trend01b div label{display:block;text-align:center;color:#666;line-height:40px;} .trend01b div em{display:block;text-align:center;font-size:36px;}