显示城市楼盘总数

This commit is contained in:
2021-12-01 10:31:02 +08:00
parent 3b47ee8ea2
commit 04df6e25a2
4 changed files with 12 additions and 1 deletions
@@ -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;
@@ -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;
}
}
@@ -125,6 +125,7 @@
<div class="trend01b">
<#if districtStatBo?? || regionStatBo??>
<#if count??><div><em>${count!}</em><label>楼盘总量</label></div></#if>
<#if districtStatBo??>
<div><em><#if districtStatBo.lastTimeDistrictStat??>${districtStatBo.lastTimeDistrictStat.avgPrice}<#else>暂无</#if></em><label>上周均价(元/㎡)</label></div>
<div><em><#if districtStatBo.districtStat??>${districtStatBo.districtStat.avgPrice}<#else>暂无</#if></em><label>本周均价(元/㎡)</label></div>
@@ -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;}