update
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user