aa
This commit is contained in:
@@ -70,8 +70,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="card-footer">
|
<div class="card-footer">
|
||||||
<span>
|
<span>
|
||||||
<em><strong>{{momRate*100}}</strong>%
|
<em><strong>{{momRate}}</strong>%
|
||||||
<i class="icon" id="momRateClass"></i>
|
<i class="icon" id="momRateTypeClass"></i>
|
||||||
</em>
|
</em>
|
||||||
<label>环比上月</label>
|
<label>环比上月</label>
|
||||||
</span>
|
</span>
|
||||||
@@ -1244,7 +1244,6 @@ function getPosition(){
|
|||||||
localStorage.setItem("init_city", city);
|
localStorage.setItem("init_city", city);
|
||||||
addLocation(lat,lng);
|
addLocation(lat,lng);
|
||||||
|
|
||||||
|
|
||||||
/*city="北京";
|
/*city="北京";
|
||||||
region="";
|
region="";
|
||||||
$("#input_city").text("北京");
|
$("#input_city").text("北京");
|
||||||
@@ -1318,7 +1317,7 @@ function initBaseInfo(city,region,address,lat,lng){
|
|||||||
baseInfo.region = response.data.data.region;
|
baseInfo.region = response.data.data.region;
|
||||||
baseInfo.topMonth = response.data.data.topMonth;
|
baseInfo.topMonth = response.data.data.topMonth;
|
||||||
baseInfo.momAvgPrice = response.data.data.momAvgPrice;
|
baseInfo.momAvgPrice = response.data.data.momAvgPrice;
|
||||||
baseInfo.momRate = response.data.data.momRate;
|
baseInfo.momRate = (response.data.data.momRate*100).toFixed(2);
|
||||||
baseInfo.dealCount = response.data.data.dealCount;
|
baseInfo.dealCount = response.data.data.dealCount;
|
||||||
baseInfo.priceRate = response.data.data.priceRate;
|
baseInfo.priceRate = response.data.data.priceRate;
|
||||||
baseInfo.priceRateType = response.data.data.priceRateType;
|
baseInfo.priceRateType = response.data.data.priceRateType;
|
||||||
@@ -1331,6 +1330,11 @@ function initBaseInfo(city,region,address,lat,lng){
|
|||||||
$("#detailHouseDiv").hide();
|
$("#detailHouseDiv").hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(response.data.data.momRateType>0){
|
||||||
|
$("#momRateTypeClass").addClass("icon-arrow-red");
|
||||||
|
}else{
|
||||||
|
$("#momRateTypeClass").addClass("icon-arrow-green");
|
||||||
|
}
|
||||||
if(response.data.data.priceRateType>0){
|
if(response.data.data.priceRateType>0){
|
||||||
$("#priceRateTypeClass").addClass("icon-arrow-red");
|
$("#priceRateTypeClass").addClass("icon-arrow-red");
|
||||||
$("#priceInfo").text("上涨概率");
|
$("#priceInfo").text("上涨概率");
|
||||||
@@ -1412,8 +1416,7 @@ function initNearDistricts(cityParam,latParam,lngParam,regionParam,order,minPric
|
|||||||
textStr = textName.substr(0,5)+ "...";
|
textStr = textName.substr(0,5)+ "...";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
html += '<div class="card cardNearby" onclick="openUrl(\''+BASE_PATH+'/district/details?city='+response.data.data.dtos[i].city+'®ion='+response.data.data.dtos[i].district+'&name='+response.data.data.dtos[i].name+'\')"><div class="card-header">'+
|
||||||
html += '<div class="card cardNearby" ><div class="card-header" onclick="openUrl(\''+BASE_PATH+'/district/details?city='+response.data.data.dtos[i].city+'®ion='+response.data.data.dtos[i].district+'&name='+response.data.data.dtos[i].name+'\')">'+
|
|
||||||
textStr+
|
textStr+
|
||||||
'</div><div class="card-content"><div class="card-content-inner">'+response.data.data.dtos[i].avgPrice+'元/㎡</div></div><div class="card-footer">'+
|
'</div><div class="card-content"><div class="card-content-inner">'+response.data.data.dtos[i].avgPrice+'元/㎡</div></div><div class="card-footer">'+
|
||||||
'距您'+response.data.data.dtos[i].distance+'m</div></div>';
|
'距您'+response.data.data.dtos[i].distance+'m</div></div>';
|
||||||
@@ -1529,12 +1532,17 @@ function changeRegion(){
|
|||||||
baseInfo.region = response.data.data.region;
|
baseInfo.region = response.data.data.region;
|
||||||
baseInfo.topMonth = response.data.data.topMonth;
|
baseInfo.topMonth = response.data.data.topMonth;
|
||||||
baseInfo.momAvgPrice = response.data.data.momAvgPrice;
|
baseInfo.momAvgPrice = response.data.data.momAvgPrice;
|
||||||
baseInfo.momRate = response.data.data.momRate;
|
baseInfo.momRate = (response.data.data.momRate*100).toFixed(2);
|
||||||
baseInfo.dealCount = response.data.data.dealCount;
|
baseInfo.dealCount = response.data.data.dealCount;
|
||||||
baseInfo.priceRate = response.data.data.priceRate;
|
baseInfo.priceRate = response.data.data.priceRate;
|
||||||
baseInfo.priceRateType = response.data.data.priceRateType;
|
baseInfo.priceRateType = response.data.data.priceRateType;
|
||||||
|
|
||||||
regionChange(response.data.data.region);
|
regionChange(response.data.data.region);
|
||||||
|
if(response.data.data.momRateType>0){
|
||||||
|
$("#momRateTypeClass").addClass("icon-arrow-red");
|
||||||
|
}else{
|
||||||
|
$("#momRateTypeClass").addClass("icon-arrow-green");
|
||||||
|
}
|
||||||
if(response.data.data.priceRateType>0){
|
if(response.data.data.priceRateType>0){
|
||||||
$("#priceRateTypeClass").addClass("icon-arrow-red");
|
$("#priceRateTypeClass").addClass("icon-arrow-red");
|
||||||
$("#priceInfo").text("上涨概率");
|
$("#priceInfo").text("上涨概率");
|
||||||
@@ -2223,7 +2231,6 @@ $("#select_order li").on("click", function () {
|
|||||||
$(".selectContent").hide();
|
$(".selectContent").hide();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
//查询城市价格区间
|
//查询城市价格区间
|
||||||
function getCityPriceLevel(cityParam){
|
function getCityPriceLevel(cityParam){
|
||||||
axios.get(BASE_PATH+"/house/getCityPriceLevel", {
|
axios.get(BASE_PATH+"/house/getCityPriceLevel", {
|
||||||
@@ -2351,7 +2358,6 @@ function openNewsView(newId) {
|
|||||||
|
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
/* 获取附近小区名称字数,截取附近小区名称前5字,并添加... */
|
/* 获取附近小区名称字数,截取附近小区名称前5字,并添加... */
|
||||||
/*$(document).ready(function () {
|
/*$(document).ready(function () {
|
||||||
var text = $(".cardNearby .card-header").text();
|
var text = $(".cardNearby .card-header").text();
|
||||||
|
|||||||
Reference in New Issue
Block a user