aa
This commit is contained in:
@@ -150,18 +150,10 @@
|
||||
</div>
|
||||
<div class="topic">
|
||||
<div class="topicTitle">房产热点城市</div>
|
||||
<div class="topicContent cityImgBox row">
|
||||
<div class="col-33" >
|
||||
<img src="../../images/cityImg01.png" onclick="hotCity('北京')">
|
||||
<p>北京</p>
|
||||
</div>
|
||||
<div class="col-33" onclick="hotCity('上海')">
|
||||
<img src="../../images/cityImg02.png">
|
||||
<p>上海</p>
|
||||
</div>
|
||||
<div class="col-33" onclick="hotCity('深圳')">
|
||||
<img src="../../images/cityImg03.png">
|
||||
<p>深圳</p>
|
||||
<div class="topicContent cityImgBox row" id="hotCityVue">
|
||||
<div class="col-33" v-for="(city,index) in hotCitys" @click="openHotCity(index)">
|
||||
<img :src="city.imgUrl">
|
||||
<p>{{city.city}}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1259,13 +1251,23 @@ $.config = {router: false}
|
||||
})
|
||||
|
||||
var cityRankVue = new Vue({
|
||||
el: '#countryRank',
|
||||
data: {
|
||||
datas : ""
|
||||
}
|
||||
})
|
||||
el: '#countryRank',
|
||||
data: {
|
||||
datas : ""
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
var hotCityVue = new Vue({
|
||||
el: '#hotCityVue',
|
||||
data: {
|
||||
hotCitys : []
|
||||
},methods: {
|
||||
openHotCity:function(index) {
|
||||
clicked('../house/cityDetail.html',true,false,{},{city:this.hotCitys[index].city},function(){
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
document.addEventListener('plusready', onPlusReady, false);
|
||||
function onPlusReady(){
|
||||
var city = "";
|
||||
@@ -1417,7 +1419,6 @@ function loadAllCityData(){
|
||||
|
||||
axios.get("/rest/quotations/levelCityInfo", {
|
||||
params: {
|
||||
|
||||
}
|
||||
})
|
||||
.then(function (response) {
|
||||
@@ -1430,6 +1431,19 @@ function loadAllCityData(){
|
||||
console.log(error);
|
||||
});
|
||||
|
||||
//热门城市
|
||||
axios.get("/rest/quotations/hotCitys", {
|
||||
params: {
|
||||
|
||||
}
|
||||
})
|
||||
.then(function (response) {
|
||||
hotCityVue.hotCitys = response.data.data
|
||||
})
|
||||
.catch(function (error) {
|
||||
console.log(error);
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
function addCityFocus(city){
|
||||
@@ -1438,8 +1452,6 @@ function loadAllCityData(){
|
||||
addFocus(city);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user