update
This commit is contained in:
@@ -78,21 +78,6 @@ function removeCollect(){
|
||||
});
|
||||
}
|
||||
|
||||
/* button状态切换 */
|
||||
$("#trendTabDiv .button").on("click", function () {
|
||||
$(this).parent().children().removeClass("active");
|
||||
$(this).addClass("active");
|
||||
});
|
||||
|
||||
/* 图表切换 */
|
||||
$("#tabAvgDiv").on("click", function () {
|
||||
$("#tabChart1").css("z-index","1");
|
||||
$("#tabChart2").css("z-index","-1");
|
||||
});
|
||||
$("#tabRentDiv").on("click", function () {
|
||||
$("#tabChart2").css("z-index","1");
|
||||
$("#tabChart1").css("z-index","-1");
|
||||
});
|
||||
|
||||
var t1 = window.setInterval(loadMap,1000);
|
||||
function loadMap(){
|
||||
@@ -303,6 +288,7 @@ function loadKLineData(city, region, name){
|
||||
|
||||
$("#trendDiv1 a").click(function(){
|
||||
//showTrends();
|
||||
alert("trend");
|
||||
var v = $(this).attr("t-v");
|
||||
showTrends(v)
|
||||
});
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
var ret = []
|
||||
|
||||
function loadMyCollectCity(){
|
||||
function loadCurCity(city){
|
||||
axios.get("/rest/quotations/userCollectCitys",{}).then(function (response) {
|
||||
var curDatas = response.data.data
|
||||
if(curDatas){
|
||||
if(curDatas && curDatas.length>0){
|
||||
if(IsInArray(curDatas, city)){
|
||||
cityInfoVue.$data.collecd = true;
|
||||
}else{
|
||||
@@ -183,6 +183,7 @@ function loadUpOrDownChart(downRate, upRate){
|
||||
|
||||
dataUp = [cityObj1, cityObj2]
|
||||
addUpChart(dataUp)
|
||||
$("#up_chart").parent().parent().show();
|
||||
}else{
|
||||
$("#up_chart").parent().parent().hide()
|
||||
}
|
||||
@@ -198,6 +199,7 @@ function loadUpOrDownChart(downRate, upRate){
|
||||
|
||||
dataDown = [cityObj3, cityObj4]
|
||||
addDownChart(dataDown)
|
||||
$("#down_chart").parent().parent().show();
|
||||
}else{
|
||||
$("#down_chart").parent().parent().hide()
|
||||
}
|
||||
@@ -464,9 +466,29 @@ function docollectCity(city){
|
||||
var msg = response.data.message;
|
||||
if(msg){
|
||||
if(msg == "取消关注成功"){
|
||||
cityInfoVue.$data.collecd = false;
|
||||
try{
|
||||
cityInfoVue.$data.collecd = false;
|
||||
|
||||
var da = cityDetaiVue.$data.citys
|
||||
if(da && da.length>0){
|
||||
var index = da.indexOf(city)
|
||||
if(index>0){
|
||||
da.splice(index, 1)
|
||||
cityDetaiVue.$data.citys = da;
|
||||
if(da.length>0){
|
||||
$("a[href='#tabQuotation0']").click();
|
||||
}
|
||||
}
|
||||
}
|
||||
}catch(e){
|
||||
|
||||
}
|
||||
|
||||
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
}else if(msg == "关注成功"){
|
||||
cityInfoVue.$data.collecd = true;
|
||||
plus.webview.getWebviewById('views/house/houseDetail.html').reload();
|
||||
}else{
|
||||
$.toast(msg);
|
||||
}
|
||||
@@ -478,3 +500,4 @@ function docollectCity(city){
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user