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