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"; @charset "utf-8";
/* CSS Document */ /* CSS Document */
[v-cloak] {
display: none;
}
/* 公用 */ /* 公用 */
*{font-size:16px;font-family:arial,"华文细黑";} *{font-size:16px;font-family:arial,"华文细黑";}
ul li{list-style:none;} ul li{list-style:none;}
@@ -1060,7 +1062,7 @@ input::-webkit-input-placeholder{
.topBg02 p a{font-size:0.75rem;} .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;} .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-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;} .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.baseURL = BASE_PATH;
axios.defaults.headers.post['Content-Type'] = 'application/json'; axios.defaults.headers.post['Content-Type'] = 'application/json';
axios.defaults.timeout = 10000;
// 添加请求拦截器 // 添加请求拦截器
axios.interceptors.request.use(function (config) { axios.interceptors.request.use(function (config) {
+2
View File
@@ -517,9 +517,11 @@ function docollectCity(city){
//loadMyCollectCity(); //loadMyCollectCity();
$("a[href='#tabQuotation1']").click(); $("a[href='#tabQuotation1']").click();
//plus.webview.getWebviewById('views/house/houseDetail.html').reload(); //plus.webview.getWebviewById('views/house/houseDetail.html').reload();
reloadMyFocus();
}else if(msg == "关注成功"){ }else if(msg == "关注成功"){
cityInfoVue.$data.collecd = true; cityInfoVue.$data.collecd = true;
plus.webview.getWebviewById('views/house/houseDetail.html').reload(); plus.webview.getWebviewById('views/house/houseDetail.html').reload();
reloadMyFocus();
}else{ }else{
$.toast(msg); $.toast(msg);
} }
+1 -1
View File
@@ -12,7 +12,7 @@ Vue.component('near-dist-component', {
<div class="card-content"> <div class="card-content">
<div class="card-content-inner">{{dist.avgPrice?(dist.avgPrice+"元/㎡"):'暂无'}}</div> <div class="card-content-inner">{{dist.avgPrice?(dist.avgPrice+"元/㎡"):'暂无'}}</div>
</div> </div>
<div class="card-footer">距您{{dist.distance}}m</div> <div class="card-footer">距该小区{{dist.distance}}米</div>
</div> </div>
</div> </div>
@@ -195,7 +195,7 @@ $.config = {router: false}
hid:hid, hid:hid,
reason:i reason:i
}).then(function(response){ }).then(function(response){
alert("感谢您的反馈!") $.toast("感谢您的反馈!")
$("#price_feedback").hide(); $("#price_feedback").hide();
}).catch(function(error){console.log(error)}) }).catch(function(error){console.log(error)})
}, },
+4 -4
View File
@@ -36,8 +36,8 @@
</button>--> </button>-->
<h1 class="title">房产行情</h1> <h1 class="title">房产行情</h1>
</header> </header>
<div class="content" > <div class="content">
<div class="buttons-tab theme" id="tabCityDiv" > <div class="buttons-tab theme" id="tabCityDiv" v-cloak>
<a href="#tabQuotation1" class="tab-link active button">全国</a> <a href="#tabQuotation1" class="tab-link active button">全国</a>
<div v-for="mycollectcity in citys" > <div v-for="mycollectcity in citys" >
<a class="tab-link button" @click="clickCity(mycollectcity)" v-bind:vcity="mycollectcity">{{mycollectcity}}</a> <a class="tab-link button" @click="clickCity(mycollectcity)" v-bind:vcity="mycollectcity">{{mycollectcity}}</a>
@@ -46,8 +46,8 @@
</div> </div>
<div class="tabs"> <div class="tabs">
<div id="tabQuotation1" class="tab active"> <div id="tabQuotation1" class="tab active" >
<div class="card cardPrice cardPrice01 cardCity" id="countryInfo"> <div class="card cardPrice cardPrice01 cardCity" id="countryInfo" v-cloak>
<div class="card-header"> <div class="card-header">
<label>全国</label> <label>全国</label>
</div> </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-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 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><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'>"; htmlContent = htmlContent +"</div><div class='item-subtitle'>";
//对应城市地区小区30天涨跌幅 //对应城市地区小区30天涨跌幅
//动态构建key //动态构建key
+1 -1
View File
@@ -146,7 +146,7 @@ function onPlusReady() {
// }); // });
// }) // })
var houseInfo = response.data.data.houseInfo; var houseInfo = response.data.data.houseInfo;
if(houseInfo.liveStatus=="出租"){ if(houseInfo && houseInfo.liveStatus=="出租"){
edit.liveStatus=houseInfo.liveStatus; edit.liveStatus=houseInfo.liveStatus;
edit.leaseStartDate=getNowFormatDate(houseInfo.leaseStartDate); edit.leaseStartDate=getNowFormatDate(houseInfo.leaseStartDate);
edit.leaseEndDate = getNowFormatDate(houseInfo.leaseEndDate); edit.leaseEndDate = getNowFormatDate(houseInfo.leaseEndDate);