Merge branch 'YOUFANGAPP1.1' of 192.168.0.27:dev0/youfang-app into YOUFANGAPP1.1

Conflicts:
	fangija-zsyf/views/house/houseDetail.html
This commit is contained in:
2018-04-12 17:08:04 +08:00
20 changed files with 367 additions and 224 deletions
+17 -2
View File
@@ -370,9 +370,24 @@ $.config = {router: false}
var cityChoose = new Vue({
el:"#cityChoose",
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 () {
$(this).hide();
@@ -421,6 +436,7 @@ $.config = {router: false}
$("#input_city").val($(this).find("p").text());
$(".cityChoice a").text($(this).find("p").text());
$(".popup-about01 p").removeClass("active");
addFocus($(this).find("p").text())
});
$(".popup-about01 p").on("click", function () {
$("#input_city").val($(this).text());
@@ -575,7 +591,6 @@ function markFocus(){
function addFocus(city){
axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){
//reloadMyFocus()
}).catch(function(error){
console.log(error)
})