Merge branch 'YOUFANGAPP1.1' of 192.168.0.27:dev0/youfang-app into YOUFANGAPP1.1
Conflicts: fangija-zsyf/config.js
This commit is contained in:
@@ -1,15 +1,17 @@
|
||||
|
||||
var dataParam = {
|
||||
finishBuildingDate:"",
|
||||
householdCount:"",
|
||||
cubagePercent:"",
|
||||
carSiteCount:"",
|
||||
virescencePercent:"",
|
||||
estateCharge:"",
|
||||
moreArea:"",
|
||||
developer:"",
|
||||
estateCompany:""
|
||||
};
|
||||
|
||||
finishBuildingDate:"",
|
||||
householdCount:"",
|
||||
cubagePercent:"",
|
||||
carSiteCount:"",
|
||||
virescencePercent:"",
|
||||
estateCharge:"",
|
||||
moreArea:"",
|
||||
developer:"",
|
||||
lat:"",
|
||||
lng:"",
|
||||
estateCompany:""
|
||||
};
|
||||
Vue.component('base-info-component', {
|
||||
template: `
|
||||
<ul>
|
||||
@@ -96,35 +98,45 @@ Vue.component('base-info-component', {
|
||||
var vo = response.data.data.detail
|
||||
var cityPrice = response.data.data.cityPrice
|
||||
var collected = response.data.data.collected
|
||||
// if(cityPrice){
|
||||
// baseInfo.cityPrice = cityPrice
|
||||
// }
|
||||
// if(collected){
|
||||
// baseInfo.collect = true;
|
||||
// }else{
|
||||
// baseInfo.collect = false;
|
||||
// }
|
||||
if(cityPrice){
|
||||
baseInfo.cityPrice = cityPrice
|
||||
}
|
||||
if(collected){
|
||||
$(".collection02").show();
|
||||
$(".collection01").hide();
|
||||
}else{
|
||||
$(".collection02").hide();
|
||||
$(".collection01").show();
|
||||
}
|
||||
if(vo){
|
||||
if(vo.avgPrice){
|
||||
lat = vo.lat2;
|
||||
lng = vo.lng2;
|
||||
alert("lng-1:"+lng);
|
||||
address = vo.address;
|
||||
|
||||
// loadMapPoi();
|
||||
//
|
||||
// baseInfo.city = vo.city
|
||||
// baseInfo.region = vo.region
|
||||
// baseInfo.address = vo.address;
|
||||
// baseInfo.districtName = vo.name
|
||||
// baseInfo.avgPrice = vo.avgPrice;
|
||||
// baseInfo.oneMonthUpDownRange = vo.oneMonthUpDownRange;
|
||||
|
||||
// if(vo.rank){
|
||||
// baseInfo.priceRate = vo.rank.substring(0, vo.rank.indexOf("/"));
|
||||
// }
|
||||
baseInfo.city = vo.city
|
||||
baseInfo.region = vo.region
|
||||
baseInfo.address = vo.address;
|
||||
baseInfo.name = vo.name
|
||||
|
||||
//baseInfo.cityPrice = vo.cityPrice;
|
||||
tags = vo.poiTags;
|
||||
|
||||
if(vo.poiTags){
|
||||
if(vo.poiTags.length>=3){
|
||||
baseInfo.tags = vo.poiTags.slice(0,3);
|
||||
}else{
|
||||
baseInfo.tags = vo.poiTags;
|
||||
}
|
||||
}
|
||||
|
||||
baseInfo.avgPrice = vo.avgPrice;
|
||||
baseInfo.oneMonthUpDownRange = vo.oneMonthUpDownRange;
|
||||
if(vo.rank){
|
||||
baseInfo.priceRate = vo.rank.substring(0, vo.rank.indexOf("/"));
|
||||
}
|
||||
|
||||
baseInfo.cityPrice = cityPrice;
|
||||
var finishDate = ""
|
||||
if(vo.finishBuildingDate){
|
||||
if(vo.finishBuildingDate.indexOf("~")!=-1){
|
||||
@@ -134,7 +146,6 @@ Vue.component('base-info-component', {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
dataParam.finishBuildingDate = finishDate;
|
||||
dataParam.householdCount = vo.householdCount;
|
||||
dataParam.cubagePercent = vo.cubagePercent;
|
||||
@@ -145,17 +156,6 @@ Vue.component('base-info-component', {
|
||||
dataParam.developer = vo.developer;
|
||||
dataParam.estateCompany = vo.estateCompany;
|
||||
|
||||
// address = vo.address;
|
||||
// tags = vo.poiTags;
|
||||
|
||||
// if(vo.poiTags){
|
||||
// if(vo.poiTags.length>=3){
|
||||
// baseInfo.tags = vo.poiTags.slice(0,3);
|
||||
// }else{
|
||||
// baseInfo.tags = vo.poiTags;
|
||||
// }
|
||||
// }
|
||||
|
||||
// loadNearDistrict(vo.lat2, vo.lng2);
|
||||
}else{
|
||||
$("#noDataDiv").show()
|
||||
|
||||
Reference in New Issue
Block a user