Merge branch 'YOUFANGAPP1.1.1' of 192.168.0.27:dev0/youfang-app into YOUFANGAPP1.1.1
This commit is contained in:
@@ -148,20 +148,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="topic">
|
<div class="topic" id="hotCityVue">
|
||||||
<div class="topicTitle">房产热点城市</div>
|
<div class="topicTitle">房产热点城市</div>
|
||||||
<div class="topicContent cityImgBox row">
|
<div class="topicContent cityImgBox row">
|
||||||
<div class="col-33" >
|
<div class="col-33" v-for="(city,index) in hotCitys" @click="openHotCity(index)">
|
||||||
<img src="../../images/cityImg01.png" onclick="hotCity('北京')">
|
<img :src="city.imgUrl">
|
||||||
<p>北京</p>
|
<p>{{city.city}}</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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -1259,13 +1251,23 @@ $.config = {router: false}
|
|||||||
})
|
})
|
||||||
|
|
||||||
var cityRankVue = new Vue({
|
var cityRankVue = new Vue({
|
||||||
el: '#countryRank',
|
el: '#countryRank',
|
||||||
data: {
|
data: {
|
||||||
datas : ""
|
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);
|
document.addEventListener('plusready', onPlusReady, false);
|
||||||
function onPlusReady(){
|
function onPlusReady(){
|
||||||
var city = "";
|
var city = "";
|
||||||
@@ -1417,12 +1419,10 @@ function loadAllCityData(){
|
|||||||
|
|
||||||
axios.get("/rest/quotations/levelCityInfo", {
|
axios.get("/rest/quotations/levelCityInfo", {
|
||||||
params: {
|
params: {
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then(function (response) {
|
.then(function (response) {
|
||||||
//0:涨幅排行 1:潜力排行 2:均价排行
|
//0:涨幅排行 1:潜力排行 2:均价排行
|
||||||
|
|
||||||
cityRankVue.datas = response.data.data
|
cityRankVue.datas = response.data.data
|
||||||
|
|
||||||
})
|
})
|
||||||
@@ -1430,6 +1430,24 @@ function loadAllCityData(){
|
|||||||
console.log(error);
|
console.log(error);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
//热门城市
|
||||||
|
axios.get("/rest/quotations/hotCitys", {
|
||||||
|
params: {
|
||||||
|
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.then(function (response) {
|
||||||
|
if(response.data.data.length==0){
|
||||||
|
$("#hotCityVue").hide();
|
||||||
|
}else{
|
||||||
|
$("#hotCityVue").show();
|
||||||
|
hotCityVue.hotCitys = response.data.data
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.catch(function (error) {
|
||||||
|
console.log(error);
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function addCityFocus(city){
|
function addCityFocus(city){
|
||||||
@@ -1439,10 +1457,6 @@ function loadAllCityData(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* 获取资讯正文字数,截取资讯正文前30字,并添加... */
|
/* 获取资讯正文字数,截取资讯正文前30字,并添加... */
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
/*var text = $(".cardInfo02 .item-title").text();
|
/*var text = $(".cardInfo02 .item-title").text();
|
||||||
|
|||||||
Reference in New Issue
Block a user