This commit is contained in:
xuhe@fangjia.com
2018-04-16 14:04:32 +08:00
parent a1f0378b7b
commit 89a097a8cb
+21 -10
View File
@@ -64,7 +64,7 @@
<div class="item-title"><label><b>{{name}}</b></label><span class="span01">{{cityRegion}}</span></div>
</div>
<div class="item-title-row">
<div class="item-title"><small><label v-if="roomCount > 0">{{roomCount}}室</label><label v-if="hallCount > 0">{{hallCount}}厅</label>&nbsp;&nbsp;{{area}}m&nbsp;&nbsp;<label v-if="floor > 0 && height">{{floor}}/{{height}}层</label></small></div>
<div class="item-title"><small>{{houseRoomNum}}&nbsp;&nbsp;{{area}}m&nbsp;&nbsp;{{floor_height}}</small></div>
</div>
</div>
</div>
@@ -78,7 +78,7 @@
<a class="add alert-text-title"><i class="icon icon-houseLevel"></i>{{estatetype}}</a>
</div>
<div class="card-content">
<div class="card-content-inner">{{Math.round(totalPrice/10000)}}<span>万</span></div>
<div class="card-content-inner">{{totalPrice}}<span>万</span></div>
</div>
<div class="card-footer">
<span>
@@ -352,11 +352,9 @@ var baseInfo = new Vue({
name : "",
address:"",
cityRegion:"",
roomCount: "",
hallCount: "",
houseRoomNum: "",
area: "",
floor: "",
height: "",
floor_height: "",
liveStatus:"",
estatetype:"",
totalPrice:"",
@@ -411,11 +409,19 @@ function init(){
baseInfo.name = houseInfo.name;
baseInfo.address = houseInfo.address;
baseInfo.cityRegion=houseInfo.city+"-"+houseInfo.region;
baseInfo.roomCount= houseInfo.roomCount;
baseInfo.hallCount= houseInfo.hallCount;
baseInfo.houseRoomNum= houseInfo.houseRoomNum;
baseInfo.area= houseInfo.area;
baseInfo.floor= houseInfo.floor;
baseInfo.height= houseInfo.height;
var floor_height = "";
if(houseInfo.floor!=0){
floor_height = houseInfo.floor;
}
if(houseInfo.height!=0){
floor_height += "/" + houseInfo.height;
}
if(floor_height!=""){
floor_height+="层";
}
baseInfo.floor_height= floor_height;
if(houseInfo.liveStatus){
baseInfo.liveStatus=houseInfo.liveStatus;
}else{
@@ -435,6 +441,11 @@ function init(){
}
baseInfo.estatetype=houseInfo.estatetype;
baseInfo.totalPrice=houseInfo.totalPrice;
if(houseInfo.totalPrice==0){
baseInfo.totalPrice = "暂无";
}else{
baseInfo.totalPrice = (houseInfo.totalPrice/10000).toFixed(2)
}
baseInfo.price=houseInfo.price;
baseInfo.totalScore=houseInfo.totalScore;
baseInfo.index=response.data.data.index;