YOUFANG 房产行情
This commit is contained in:
@@ -57,7 +57,6 @@ Vue.component('my_focus',{
|
|||||||
myFocusDatas.myFocusList = response.data.data;
|
myFocusDatas.myFocusList = response.data.data;
|
||||||
}
|
}
|
||||||
}).catch(function(error){
|
}).catch(function(error){
|
||||||
//alert(2)
|
|
||||||
console.log(error)
|
console.log(error)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -692,6 +692,32 @@ $(document).on("click",".open-about01", function () {
|
|||||||
markFocus();
|
markFocus();
|
||||||
$.popup(".popup-about01");
|
$.popup(".popup-about01");
|
||||||
});
|
});
|
||||||
|
/* 定位城市 */
|
||||||
|
$("body").on("click", ".letter a", function () {
|
||||||
|
var s = $(this).html();
|
||||||
|
$(".popup-about01 .content").scrollTop(0);
|
||||||
|
$(".popup-about01 .content").scrollTop($("#" + s + "1").offset().top - 106);
|
||||||
|
});
|
||||||
|
$("#tabCity1 .content-block01").scroll(function () {
|
||||||
|
$("#tabCity1 .content-block01 .letter").css("position","absolute");
|
||||||
|
$("#tabCity1 .content-block01 .letter").css("top", 85 - $("#cityContainer").position().top);
|
||||||
|
});
|
||||||
|
|
||||||
|
/* 获取城市 */
|
||||||
|
$(".popup-about01 .cityGPS").on("click", function () {
|
||||||
|
$("#input_city").val($(this).find("p").text());
|
||||||
|
$(".cityChoice a").text($(this).find("p").text());
|
||||||
|
$(".popup-about01 p").removeClass("active");
|
||||||
|
});
|
||||||
|
$(".popup-about01 p").on("click", function () {
|
||||||
|
$("#input_city").val($(this).text());
|
||||||
|
$(".cityChoice a").text($(this).text());
|
||||||
|
$(".popup-about01 p").removeClass("active");
|
||||||
|
$(this).addClass("active");
|
||||||
|
var city = $(this).text()
|
||||||
|
addFocus(city)
|
||||||
|
});
|
||||||
|
|
||||||
//$(document).on("click",".open-about01", function () {
|
//$(document).on("click",".open-about01", function () {
|
||||||
// markFocus();
|
// markFocus();
|
||||||
// $.popup(".popup-about01");
|
// $.popup(".popup-about01");
|
||||||
@@ -728,37 +754,34 @@ function markFocus(){
|
|||||||
console.log(error)
|
console.log(error)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
/* 定位城市 */
|
|
||||||
$("body").on("click", ".letter a", function () {
|
|
||||||
var s = $(this).html();
|
|
||||||
$(".popup-about01 .content").scrollTop(0);
|
|
||||||
$(".popup-about01 .content").scrollTop($("#" + s + "1").offset().top - 106);
|
|
||||||
});
|
|
||||||
$("#tabCity1 .content-block01").scroll(function () {
|
|
||||||
$("#tabCity1 .content-block01 .letter").css("position","absolute");
|
|
||||||
$("#tabCity1 .content-block01 .letter").css("top", 85 - $("#cityContainer").position().top);
|
|
||||||
});
|
|
||||||
|
|
||||||
/* 获取城市 */
|
function addFocus(city){
|
||||||
$(".popup-about01 .cityGPS").on("click", function () {
|
|
||||||
$("#input_city").val($(this).find("p").text());
|
|
||||||
$(".cityChoice a").text($(this).find("p").text());
|
|
||||||
$(".popup-about01 p").removeClass("active");
|
|
||||||
alert(1)
|
|
||||||
});
|
|
||||||
$(".popup-about01 p").on("click", function () {
|
|
||||||
$("#input_city").val($(this).text());
|
|
||||||
$(".cityChoice a").text($(this).text());
|
|
||||||
$(".popup-about01 p").removeClass("active");
|
|
||||||
$(this).addClass("active");
|
|
||||||
var city = $(this).text()
|
|
||||||
axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){
|
axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){
|
||||||
|
//reloadMyFocus()
|
||||||
}).catch(function(error){
|
}).catch(function(error){
|
||||||
console.log(error)
|
console.log(error)
|
||||||
})
|
})
|
||||||
alert(2)
|
}
|
||||||
});
|
|
||||||
|
|
||||||
|
//重新加载我的关注
|
||||||
|
function reloadMyFocus(){
|
||||||
|
if(localStorage.getItem("user_token") == null || localStorage.getItem("user_token") == ""){
|
||||||
|
$("#myFocusFirstPage").hide()
|
||||||
|
$("#myFocus").hide();
|
||||||
|
}else{
|
||||||
|
axios.get("/rest/quotations/userCollectCityInfo").then(function(response){
|
||||||
|
if(response.data.data.length==0){
|
||||||
|
alert("aa");
|
||||||
|
$("#myFocusFirstPage").hide();
|
||||||
|
$("#myFocus").hide();
|
||||||
|
}else{
|
||||||
|
myFocusDatas.myFocusList = response.data.data;
|
||||||
|
}
|
||||||
|
}).catch(function(error){
|
||||||
|
console.log(error)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script type="text/javascript" src="../../js/echarts.js" charset="utf-8"></script>
|
<script type="text/javascript" src="../../js/echarts.js" charset="utf-8"></script>
|
||||||
|
|||||||
Reference in New Issue
Block a user