YOUFANG 房产详情
This commit is contained in:
@@ -63,5 +63,4 @@ Vue.component('my_focus',{
|
|||||||
},mounted:function(){
|
},mounted:function(){
|
||||||
this.loadMyFocus();
|
this.loadMyFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
@@ -485,19 +485,6 @@ $.config = {router: false}
|
|||||||
<script>
|
<script>
|
||||||
document.addEventListener('plusready', onPlusReady, false);
|
document.addEventListener('plusready', onPlusReady, false);
|
||||||
function onPlusReady(){
|
function onPlusReady(){
|
||||||
var city = "";
|
|
||||||
plus.geolocation.getCurrentPosition(function(p){
|
|
||||||
//province = p.address.province;
|
|
||||||
city = p.address.city;
|
|
||||||
//region = p.address.district;
|
|
||||||
}, function(e){
|
|
||||||
},
|
|
||||||
{
|
|
||||||
provider:'baidu',
|
|
||||||
enableHighAccuracy:true,
|
|
||||||
coordsType:'bd09ll'
|
|
||||||
}
|
|
||||||
);
|
|
||||||
var myFocus = new Vue({
|
var myFocus = new Vue({
|
||||||
el:"#myFocus"
|
el:"#myFocus"
|
||||||
})
|
})
|
||||||
@@ -510,9 +497,24 @@ $.config = {router: false}
|
|||||||
var cityChoose = new Vue({
|
var cityChoose = new Vue({
|
||||||
el:"#cityChoose",
|
el:"#cityChoose",
|
||||||
data:{
|
data:{
|
||||||
city:city
|
city:''
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
plus.geolocation.getCurrentPosition(function(p){
|
||||||
|
//province = p.address.province;
|
||||||
|
var cityStr = p.address.city;
|
||||||
|
if(cityStr){
|
||||||
|
cityChoose.city = cityStr.endsWith("市")?cityStr.substring(0,cityStr.length-1):cityStr;
|
||||||
|
}
|
||||||
|
//region = p.address.district;
|
||||||
|
}, function(e){
|
||||||
|
},
|
||||||
|
{
|
||||||
|
provider:'baidu',
|
||||||
|
enableHighAccuracy:true,
|
||||||
|
coordsType:'bd09ll'
|
||||||
|
}
|
||||||
|
);
|
||||||
/* 关注&已关注切换 */
|
/* 关注&已关注切换 */
|
||||||
$(".collection01").on("click", function () {
|
$(".collection01").on("click", function () {
|
||||||
$(this).hide();
|
$(this).hide();
|
||||||
@@ -561,6 +563,7 @@ $.config = {router: false}
|
|||||||
$("#input_city").val($(this).find("p").text());
|
$("#input_city").val($(this).find("p").text());
|
||||||
$(".cityChoice a").text($(this).find("p").text());
|
$(".cityChoice a").text($(this).find("p").text());
|
||||||
$(".popup-about01 p").removeClass("active");
|
$(".popup-about01 p").removeClass("active");
|
||||||
|
addFocus($(this).find("p").text())
|
||||||
});
|
});
|
||||||
$(".popup-about01 p").on("click", function () {
|
$(".popup-about01 p").on("click", function () {
|
||||||
$("#input_city").val($(this).text());
|
$("#input_city").val($(this).text());
|
||||||
@@ -703,7 +706,6 @@ function markFocus(){
|
|||||||
|
|
||||||
function addFocus(city){
|
function addFocus(city){
|
||||||
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)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user