This commit is contained in:
zongzhimin
2018-04-13 14:43:37 +08:00
parent a033f1fcde
commit 4b3fd623c6
2 changed files with 47 additions and 39 deletions
@@ -183,7 +183,7 @@ function constructHtmlContent(results, xqOneMonthUpDownRangeMap, cityAvgPriceMap
htmlContent = htmlContent +"<div class='item-inner'><div class='item-title-row'>";
htmlContent = htmlContent +"<div class='item-title'>"+result.name+"<span class='span01'>"+result.city+"-"+result.region+"</span></div>";
htmlContent = htmlContent +"</div><div class='item-title-row'>";
htmlContent = htmlContent +"<div class='item-title'><small>"+result.roomCount+"室"+result.hallCount+"厅&nbsp;&nbsp;"+result.area+"m&nbsp;&nbsp;"+result.floor+"/"+result.height+"层</small></div>";
htmlContent = htmlContent +"<div class='item-title'><small>"+result.roomCount+"室"+result.hallCount+"厅&nbsp;&nbsp;"+result.area+"㎡ &nbsp;&nbsp;"+result.floor+"/"+result.height+"层</small></div>";
htmlContent = htmlContent +"</div><div class='item-subtitle'>";
//对应城市地区小区30天涨跌幅
//动态构建key
+46 -38
View File
@@ -54,10 +54,10 @@
<div class="card cardPrice cardPrice01" id="house_price">
<div class="card-header">
<span>评估总价</span>
<span>均价:<em>{{avg_price}}元/㎡</em></span>
<span>均价:<em>{{avg_price}}</em></span>
</div>
<div class="card-content">
<div class="card-content-inner">{{total_price}}<span>万</span></div>
<div class="card-content-inner">{{total_price}}<span>{{w}}</span></div>
</div>
<div class="card-footer">
<span>
@@ -166,7 +166,8 @@ $.config = {router: false}
compare_word:"",
compare_money:"",
words:"",
p:""
p:"",
w:""
}
})
// var evaluate_msg = new Vue({
@@ -221,9 +222,14 @@ $.config = {router: false}
h = response.data.data
house_info.name = h.name
house_info.city_region = h.city+"-"+h.region
house_info.house_type = (h.roomCount==0?"":h.roomCount+"室")+(h.hallCount==0?"":h.hallCount+"厅 ")+(h.area==0?"":h.area+"m ")+((h.floor==0||h.height==0)?"":h.floor+"/"+h.height+"层")
house_price.total_price = h.totalPrice==0?"暂无":(h.totalPrice/10000).toFixed(0)
house_price.avg_price = h.avgPrice==0?"暂无":h.avgPrice
house_info.house_type = (h.roomCount==0?"":h.roomCount+"室")+(h.hallCount==0?"":h.hallCount+"厅 ")+(h.area==0?"":h.area+"㎡ ")+((h.floor==0||h.height==0)?"":h.floor+"/"+h.height+"层")
if(h.totalPrice==0){
house_price.total_price = "暂无";
}else{
house_price.total_price = (h.totalPrice/10000).toFixed(0)
house_price.w = "万"
}
house_price.avg_price = h.avgPrice==0?"暂无":h.avgPrice+"元/㎡"
house_price.percentage_30=h.oneMonthUpDownRange==0?"暂无":h.oneMonthUpDownRange
if(h.oneMonthUpDownRange<0){
house_price.arrow="icon icon-arrow-green"
@@ -277,6 +283,39 @@ $.config = {router: false}
}).catch(function(error){
console.log(error)
})
/* 房产用途 */
$(document).on('click','.open-vertical-modal', function () {
var houseStatus = 0;
$.modal({
title: '房产用途',
verticalButtons: true,
buttons: [
{
text: '自住',
onClick: function() {
addManagement(hid, houseStatus, "自住");
}
},
{
text: '出租',
onClick: function() {
addManagement(hid, houseStatus, "自住");
}
},
{
text: '空置',
onClick: function() {
addManagement(hid, houseStatus, "自住");
}
},
{
text: '取消'
}
]
})
});
}
@@ -292,7 +331,6 @@ function addManagement(id, houseStatus, liveStatus){
var status = response.data.status;
if(status){
$.toast(response.data.data);
window.location.reload();
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
plus.webview.getWebviewById('views/user/userInfo.html').reload();
plus.webview.getWebviewById('views/house/houseList.html').reload();
@@ -319,37 +357,7 @@ $(".content-block .button").on("click", function () {
$(this).addClass("active");
});
/* 房产用途 */
$(document).on('click','.open-vertical-modal', function () {
var houseStatus = 0;
$.modal({
title: '房产用途',
verticalButtons: true,
buttons: [
{
text: '自住',
onClick: function() {
addManagement(hid, houseStatus, "自住");
}
},
{
text: '出租',
onClick: function() {
addManagement(hid, houseStatus, "自住");
}
},
{
text: '空置',
onClick: function() {
addManagement(hid, houseStatus, "自住");
}
},
{
text: '取消'
}
]
})
});
</script>