diff --git a/fangija-zsyf/views/house/houseDetail.html b/fangija-zsyf/views/house/houseDetail.html index 41d047c..3dd5950 100644 --- a/fangija-zsyf/views/house/houseDetail.html +++ b/fangija-zsyf/views/house/houseDetail.html @@ -148,9 +148,9 @@ -
+
房产热点城市
-
+

{{city.city}}

@@ -1423,7 +1423,6 @@ function loadAllCityData(){ }) .then(function (response) { //0:涨幅排行 1:潜力排行 2:均价排行 - cityRankVue.datas = response.data.data }) @@ -1438,7 +1437,12 @@ function loadAllCityData(){ } }) .then(function (response) { - hotCityVue.hotCitys = response.data.data + if(response.data.data.length==0){ + $("#hotCityVue").hide(); + }else{ + $("#hotCityVue").show(); + hotCityVue.hotCitys = response.data.data + } }) .catch(function (error) { console.log(error); @@ -1453,8 +1457,6 @@ function loadAllCityData(){ } - - /* 获取资讯正文字数,截取资讯正文前30字,并添加... */ $(document).ready(function () { /*var text = $(".cardInfo02 .item-title").text();