Merge branch 'YOUFANGAPP1.1' of 192.168.0.27:dev0/youfang-app into YOUFANGAPP1.1
Conflicts: fangija-zsyf/views/component/cityIncreaseRankingComponent.js fangija-zsyf/views/component/cityPotentialRankingComponent.js
This commit is contained in:
@@ -79,11 +79,11 @@ Vue.component('city_potential_ranking',{
|
||||
}else{
|
||||
$(event.target).parent().children().removeClass("dn");
|
||||
$(event.target).addClass("dn");
|
||||
alert(city)
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
plus.webview.getWebviewById('views/house/houseManageList.html').reload();
|
||||
plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
reloadMyFocus()
|
||||
reloadCityIncreaseRanking()
|
||||
//cityDetaiVue.$data.citys.push(city);
|
||||
}
|
||||
}).catch(function(error){
|
||||
@@ -100,6 +100,7 @@ Vue.component('city_potential_ranking',{
|
||||
$(event.target).parent().children().removeClass("dn");
|
||||
$(event.target).addClass("dn");
|
||||
reloadMyFocus()
|
||||
reloadCityIncreaseRanking()
|
||||
cityDetaiVue.$data.citys.push(city);
|
||||
//plus.webview.getWebviewById('views/user/userInfo.html').reload();
|
||||
}
|
||||
@@ -114,7 +115,7 @@ Vue.component('city_potential_ranking',{
|
||||
$(event.target).parent().children().removeClass("dn");
|
||||
$(event.target).addClass("dn");
|
||||
reloadMyFocus()
|
||||
|
||||
reloadCityIncreaseRanking()
|
||||
var da = cityDetaiVue.$data.citys
|
||||
if(da && da.length>0){
|
||||
var index = da.indexOf(city)
|
||||
@@ -132,4 +133,24 @@ Vue.component('city_potential_ranking',{
|
||||
mounted:function(){
|
||||
this.loadCityPotentialRanking();
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
function reloadCityPotentialRanking(){
|
||||
axios.get("/rest/quotations/potentialUpTopInfos").then(function(response){
|
||||
list = response.data.data;
|
||||
$(list).each(function(i){
|
||||
var index = this.index;
|
||||
var totalHalfStar = Math.round(Math.round(index/5)/2) //总半星
|
||||
var starNum = Math.floor(totalHalfStar/2) //全星
|
||||
var halfStarNum = totalHalfStar%2 //半星
|
||||
var noneStarNum = 5-starNum-halfStarNum //空星
|
||||
this.starNum = starNum;
|
||||
this.halfStarNum = halfStarNum;
|
||||
this.noneStarNum = noneStarNum;
|
||||
})
|
||||
cityPotentialRankingData.cityPotentialRankingList = response.data.data;
|
||||
|
||||
}).catch(function(error){
|
||||
console.log(error)
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user