Merge branch 'YOUFANGAPP1.1' of 192.168.0.27:dev0/youfang-app into YOUFANGAPP1.1
# Conflicts: # fangija-zsyf/views/house/houseDetail.html
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
<div class="card cardPrice cardPrice01 cardCity01" v-bind:hrefid="myCityMap.hrefId">
|
||||
<div class="card-header">
|
||||
<label>{{myCityMap.city}}</label>
|
||||
<a v-if="collecd" class="button collection collection02 " @click="collectCity(myCityMap.city)">取消</a>
|
||||
<a v-if="collecd" class="button theme collection collection02 " @click="collectCity(myCityMap.city)">取消关注</a>
|
||||
<a v-else class="button theme collection collection01" @click="collectCity(myCityMap.city)">关注</a>
|
||||
|
||||
</div>
|
||||
@@ -162,24 +162,24 @@ var cityInfoVue = new Vue({
|
||||
}
|
||||
});
|
||||
|
||||
//document.addEventListener('plusready', onPlusReady, false);
|
||||
//function onPlusReady() {
|
||||
// var self = plus.webview.currentWebview();
|
||||
// var city = self.city
|
||||
// cityInfoVue.$data.city = city;
|
||||
// loadCurCity(city);
|
||||
// loadCityPriceInfo(city)
|
||||
// loadUpOrDown(city);
|
||||
// loadHotDistrict(city)
|
||||
// loadCityPricesAndCounts(city)
|
||||
//
|
||||
//}
|
||||
|
||||
loadCurCity(city);
|
||||
document.addEventListener('plusready', onPlusReady, false);
|
||||
function onPlusReady() {
|
||||
var self = plus.webview.currentWebview();
|
||||
var city = self.city
|
||||
cityInfoVue.$data.city = city;
|
||||
loadCurCity(city);
|
||||
loadCityPriceInfo(city)
|
||||
loadUpOrDown(city);
|
||||
loadHotDistrict(city)
|
||||
loadCityPricesAndCounts(city)
|
||||
|
||||
}
|
||||
|
||||
//loadCurCity(city);
|
||||
// loadCityPriceInfo(city)
|
||||
// loadUpOrDown(city);
|
||||
// loadHotDistrict(city)
|
||||
// loadCityPricesAndCounts(city)
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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> {{area}}m <label v-if="floor > 0 && height">{{floor}}/{{height}}层</label></small></div>
|
||||
<div class="item-title"><small>{{houseRoomNum}} {{area}}m {{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{
|
||||
@@ -425,7 +431,7 @@ function init(){
|
||||
$('.rentBox').show();
|
||||
if(houseInfo.leaseStartDate){
|
||||
baseInfo.rentTime = formatTime(houseInfo.leaseStartDate)+"-"+formatTime(houseInfo.leaseEndDate);
|
||||
baseInfo.rentPrice = houseInfo.rent+"元("+houseInfo.rentCycle+"/"+houseInfo.rentCycleUnit+")";
|
||||
baseInfo.rentPrice = houseInfo.rent+"元/"+houseInfo.rentCycleUnit;
|
||||
baseInfo.nextRent = formatTime2(houseInfo.lastRentDate);
|
||||
}else{
|
||||
baseInfo.rentTime = "-";
|
||||
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
@@ -80,7 +80,7 @@
|
||||
<div id="myFocusFirstPage">
|
||||
<my_focus></my_focus>
|
||||
</div>
|
||||
<div class="cardNearbyBox cardNearbyBox01 cardRankingBox cardRankingBox01" id="countryRank">
|
||||
<div class="cardNearbyBox cardNearbyBox01 cardRankingBox cardRankingBox01" id="countryRank" v-cloak>
|
||||
<div class="cardNearbyWin">
|
||||
<div class="card cardNearby cardRanking" v-for="item in datas">
|
||||
<div class="card-header" v-if="item.type==0">
|
||||
@@ -168,11 +168,11 @@
|
||||
</div>
|
||||
|
||||
|
||||
<div id="cityInfo" class="dn">
|
||||
<div id="cityInfo" class="dn" v-cloak>
|
||||
<div class="card cardPrice cardPrice01 cardCity01" v-bind:hrefid="myCityMap.hrefId">
|
||||
<div class="card-header">
|
||||
<label>{{myCityMap.city}}</label>
|
||||
<a v-if="collecd" class="button collection collection02 " @click="collectCity(myCityMap.city)">取消</a>
|
||||
<a v-if="collecd" class="button theme collection collection02 " @click="collectCity(myCityMap.city)">取消关注</a>
|
||||
<a v-else class="button theme collection collection01" @click="collectCity(myCityMap.city)">关注</a>
|
||||
|
||||
</div>
|
||||
@@ -1576,6 +1576,13 @@ function addFocus(city){
|
||||
reloadCityIncreaseRanking()
|
||||
reloadCityPotentialRanking()
|
||||
cityDetaiVue.$data.citys.push(city);
|
||||
if(response.data.status){
|
||||
reloadMyFocus()
|
||||
cityDetaiVue.$data.citys.push(city);
|
||||
} else {
|
||||
$.toast(response.data.message);
|
||||
}
|
||||
|
||||
}).catch(function(error){
|
||||
console.log(error)
|
||||
})
|
||||
|
||||
@@ -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+"厅 "+result.area+"㎡ "+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 +" "+result.area+"㎡ "+result.floor+"/"+result.height+"层</small></div>"
|
||||
htmlContent = htmlContent +"</div><div class='item-subtitle'>";
|
||||
//对应城市地区小区30天涨跌幅
|
||||
//动态构建key
|
||||
|
||||
Reference in New Issue
Block a user