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

Conflicts:
	fangija-zsyf/config.js
This commit is contained in:
2018-04-09 18:42:07 +08:00
34 changed files with 4744 additions and 847 deletions
+21 -2
View File
@@ -6,7 +6,12 @@ var searchDistVue = new Vue({
},methods: {
openDistrictDetail:function(index) {
saveHistory({district:this.searchDistricts[index].region,name:this.searchDistricts[index].name,city:this.searchDistricts[index].city})
clicked(BASE_PATH+'/district/details?city='+this.searchDistricts[index].city+'&region='+this.searchDistricts[index].region+'&name='+this.searchDistricts[index].name,true);
//clicked(BASE_PATH+'/district/details?city='+this.searchDistricts[index].city+'&region='+this.searchDistricts[index].region+'&name='+this.searchDistricts[index].name,true);
if(cat=="district"){
clicked('views/district/detail.html',true,false,{},{city:this.searchDistricts[index].city,region:this.searchDistricts[index].region,name:this.searchDistricts[index].name});
}else if(cat == "rent"){
clicked('views/rent/rent.html',true,false,{},{city:this.searchDistricts[index].city,region:this.searchDistricts[index].region,name:this.searchDistricts[index].name})
}
}
}
})
@@ -91,11 +96,21 @@ function recover() {
}
/* 弹出搜索小区页面 */
$("body").delegate(".open-about02", "click", function () {
alert("ssss");
$("#districtName").val("");
if($("#input_city").text()==""){
$.toast("请选择城市")
return false;
}
var text = $(this).text().trim();
if(text=="房价查询"){
cat = "district"
}else if(text=="房租查询"){
cat = "rent"
}
alert("test:"+text+" cat:"+cat)
$('.historyList').show();
$("#notFound").hide();
$('.hotList').show();
@@ -145,7 +160,11 @@ var historyVue = new Vue({
histories: histories
},methods: {
openHistoryDetail:function(index) {
clicked(BASE_PATH+'/district/details?city='+this.histories[index].city+'&region='+this.histories[index].region+'&name='+this.histories[index].name,true);
if(cat=="district"){
clicked('views/district/detail.html',true,false,{},{city:this.searchDistricts[index].city,region:this.searchDistricts[index].region,name:this.searchDistricts[index].name});
}else if(cat == "rent"){
clicked('views/rent/rent.html',true,false,{},{city:this.searchDistricts[index].city,region:this.searchDistricts[index].region,name:this.searchDistricts[index].name})
}
}
}
})