This commit is contained in:
2018-04-16 19:28:19 +08:00
parent 369b83fd69
commit f5f4ec0487
11 changed files with 53 additions and 68 deletions
+6 -2
View File
@@ -524,16 +524,17 @@ var option01 = {
};
$("#trendDiv2 a").click(function(){
/*$("#trendDiv2 a").click(function(){
$("#trendDiv2 a").removeClass("active")
$(this).addClass("active")
//var v = $(this).attr("t-v");
loadRentTrends(city, region, name);
});
});*/
/* 小区租金走势 */
function loadRentTrends(city, region, name, type){
if(type == undefined) type= 2;
axios.get("/rest/trend/distRentTrends", {
params: {
@@ -549,6 +550,7 @@ function loadRentTrends(city, region, name, type){
var m = re.times;
var pm = re.distMap
var rooms = re.rooms;
if(m && rooms.length>0){
for(var i=0;i<m.length;i++){
@@ -572,7 +574,9 @@ function loadRentTrends(city, region, name, type){
distObj.type = 'line';
distObj.symbolSize = 0;
series.push(distObj);
//alert(distDatas);
}
//alert(categories);
//showRentChart(categories, series);
showRentChart2(categories, series);
+9 -4
View File
@@ -475,22 +475,23 @@ function addDownChart(dataDown){
}
function collectCity(city){
function collectCity(city, type){
if (localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == "") {
clicked('../user/codeSms.html',true,false,{},{},function(){
collectCity(city)
})
return;
} else {
docollectCity(city)
docollectCity(city, type)
}
}
function docollectCity(city){
function docollectCity(city, type){
axios.get("/rest/quotations/collectCity",{
params:{
city : city
city : city,
type:type
}
}).then(function (response) {
var msg = response.data.message;
@@ -518,10 +519,14 @@ function docollectCity(city){
$("a[href='#tabQuotation1']").click();
//plus.webview.getWebviewById('views/house/houseDetail.html').reload();
reloadMyFocus();
reloadCityPotentialRanking()
reloadCityIncreaseRanking()
}else if(msg == "关注成功"){
cityInfoVue.$data.collecd = true;
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
reloadMyFocus();
reloadCityPotentialRanking()
reloadCityIncreaseRanking()
}else{
$.toast(msg);
}