This commit is contained in:
xuhe@fangjia.com
2018-04-16 14:05:19 +08:00
parent 89a097a8cb
commit 3162a5d85a
8 changed files with 20 additions and 10 deletions
+4 -2
View File
@@ -1,6 +1,8 @@
@charset "utf-8";
/* CSS Document */
[v-cloak] {
display: none;
}
/* 公用 */
*{font-size:16px;font-family:arial,"华文细黑";}
ul li{list-style:none;}
@@ -1060,7 +1062,7 @@ input::-webkit-input-placeholder{
.topBg02 p a{font-size:0.75rem;}
.collection{position:absolute;right:0.75rem;top:0.4rem;text-align:center;color:#666;font-size:0.7rem;}
.collection02{border:solid 1px #C3C0BC;color:#999;}
.icon-collection01{width:16px;height:16px;background:url(../images/icon-collection01.png) no-repeat center center;background-size:100%;display:block;margin:0 auto;margin-bottom:0.1rem;}
.icon-collection02{width:16px;height:16px;background:url(../images/icon-collection02.png) no-repeat center center;background-size:100%;display:block;margin:0 auto;margin-bottom:0.1rem;}
+1
View File
@@ -1,5 +1,6 @@
axios.defaults.baseURL = BASE_PATH;
axios.defaults.headers.post['Content-Type'] = 'application/json';
axios.defaults.timeout = 10000;
// 添加请求拦截器
axios.interceptors.request.use(function (config) {
+2
View File
@@ -517,9 +517,11 @@ function docollectCity(city){
//loadMyCollectCity();
$("a[href='#tabQuotation1']").click();
//plus.webview.getWebviewById('views/house/houseDetail.html').reload();
reloadMyFocus();
}else if(msg == "关注成功"){
cityInfoVue.$data.collecd = true;
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
reloadMyFocus();
}else{
$.toast(msg);
}
+1 -1
View File
@@ -12,7 +12,7 @@ Vue.component('near-dist-component', {
<div class="card-content">
<div class="card-content-inner">{{dist.avgPrice?(dist.avgPrice+"元/㎡"):'暂无'}}</div>
</div>
<div class="card-footer">距您{{dist.distance}}m</div>
<div class="card-footer">距该小区{{dist.distance}}米</div>
</div>
</div>
@@ -195,7 +195,7 @@ $.config = {router: false}
hid:hid,
reason:i
}).then(function(response){
alert("感谢您的反馈!")
$.toast("感谢您的反馈!")
$("#price_feedback").hide();
}).catch(function(error){console.log(error)})
},
+4 -4
View File
@@ -36,8 +36,8 @@
</button>-->
<h1 class="title">房产行情</h1>
</header>
<div class="content" >
<div class="buttons-tab theme" id="tabCityDiv" >
<div class="content">
<div class="buttons-tab theme" id="tabCityDiv" v-cloak>
<a href="#tabQuotation1" class="tab-link active button">全国</a>
<div v-for="mycollectcity in citys" >
<a class="tab-link button" @click="clickCity(mycollectcity)" v-bind:vcity="mycollectcity">{{mycollectcity}}</a>
@@ -46,8 +46,8 @@
</div>
<div class="tabs">
<div id="tabQuotation1" class="tab active">
<div class="card cardPrice cardPrice01 cardCity" id="countryInfo">
<div id="tabQuotation1" class="tab active" >
<div class="card cardPrice cardPrice01 cardCity" id="countryInfo" v-cloak>
<div class="card-header">
<label>全国</label>
</div>
@@ -208,7 +208,12 @@ function constructHtmlContent(results, xqOneMonthUpDownRangeMap, cityAvgPriceMap
htmlContent = htmlContent +"<div class='item-inner'><div class='item-title-row'>";
htmlContent = htmlContent +"<div class='item-title'><label>"+result.name+"</label><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+"㎡&nbsp;&nbsp;"+result.floor+"/"+result.height+"层</small></div>";
//htmlContent = htmlContent +"<div class='item-title'><small>"+result.roomCount+"室"+result.hallCount+"厅";
var houseRoomNum = result.houseRoomNum==""?"暂无":result.houseRoomNum;
htmlContent = htmlContent +"<div class='item-title'><small>"+houseRoomNum;
htmlContent = htmlContent +"&nbsp;&nbsp;"+result.area+"㎡&nbsp;&nbsp;"+result.floor+"/"+result.height+"层</small></div>"
htmlContent = htmlContent +"</div><div class='item-subtitle'>";
//对应城市地区小区30天涨跌幅
//动态构建key
+1 -1
View File
@@ -146,7 +146,7 @@ function onPlusReady() {
// });
// })
var houseInfo = response.data.data.houseInfo;
if(houseInfo.liveStatus=="出租"){
if(houseInfo && houseInfo.liveStatus=="出租"){
edit.liveStatus=houseInfo.liveStatus;
edit.leaseStartDate=getNowFormatDate(houseInfo.leaseStartDate);
edit.leaseEndDate = getNowFormatDate(houseInfo.leaseEndDate);