From f3f7cbdd5ecfaaa1017a191e54d4eee308eaafc9 Mon Sep 17 00:00:00 2001 From: gaojuan Date: Thu, 26 Apr 2018 17:08:49 +0800 Subject: [PATCH 01/10] =?UTF-8?q?=E7=BD=AE=E6=8D=A2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/css/main.css | 1 + fangija-zsyf/js/searchDistrict-app.js | 48 + fangija-zsyf/views/changeHouse/index.html | 1245 +++++++++++++++++++- fangija-zsyf/views/changeHouse/result.html | 1137 +++++++----------- fangija-zsyf/views/district/detail.html | 6 +- 5 files changed, 1644 insertions(+), 793 deletions(-) diff --git a/fangija-zsyf/css/main.css b/fangija-zsyf/css/main.css index dede11d..1f022ed 100644 --- a/fangija-zsyf/css/main.css +++ b/fangija-zsyf/css/main.css @@ -699,6 +699,7 @@ input::-webkit-input-placeholder{ .topic .topicTitle > div:nth-child(2){text-align:right;float:right;} .topic .topicTitle > div:nth-child(2) p label{color:#999;} .topic .topicTitle > div:nth-child(2) p em{color:#EB5F34;} + .topic .topicTitle.topicTitle01{border-bottom:none;} .topic .topicContent .topicTitle01{color:#333;margin-top:0;font-size:0.8rem;} .topic .topicContent .topicTitle01 em{font-size:1.2rem;} diff --git a/fangija-zsyf/js/searchDistrict-app.js b/fangija-zsyf/js/searchDistrict-app.js index fbe4401..24f9940 100644 --- a/fangija-zsyf/js/searchDistrict-app.js +++ b/fangija-zsyf/js/searchDistrict-app.js @@ -12,6 +12,12 @@ var searchDistVue = new Vue({ }else{ clicked('views/district/detail.html',true,false,{},{city:this.searchDistricts[index].city,region:this.searchDistricts[index].region,name:this.searchDistricts[index].name}); } + }, + clickDistrict:function(index){ + saveHistory({district:this.searchDistricts[index].region,name:this.searchDistricts[index].name,city:this.searchDistricts[index].city}) + $("#input_district").val(this.searchDistricts[index].name); + $("input[name=region]").val(this.searchDistricts[index].region); + $("input[name=city]").val(this.searchDistricts[index].city); } } }) @@ -122,9 +128,30 @@ $("body").delegate(".open-about02", "click", function () { addHotDistricts($("#input_city").text()); addHistory(); $.popup(".popup-about02") + $.popup(".popup-about02") $("input").blur() }); + +/* 弹出置换小区搜索页面 */ +$("body").delegate(".open-about02b", "click", function () { + $("#districtName").val(""); + if($("#input_city").text()==""){ + $.toast("请选择城市") + return false; + } + + $('.historyList').show(); + $("#notFound").hide(); + $('.hotList').show(); + $('.searchList').hide(); + addHotDistricts($("#input_city").text()); + addHistoryFilter($("#input_city").text()); + $.popup(".popup-about02b") + $("input").blur() +}); + + //添加热门小区 function addHotDistricts(cityParam){ axios.get(BASE_PATH+"/rest/districts/hotDistricts", { @@ -164,6 +191,11 @@ var historyVue = new Vue({ }else{ clicked('views/district/detail.html',true,false,{},{city:this.histories[index].city,region:this.histories[index].region,name:this.histories[index].name}); } + }, + clickDistrict:function(index){ + $("#input_district").val(this.histories[index].name); + $("input[name=region]").val(this.histories[index].region); + $("input[name=city]").val(this.histories[index].city); } } }) @@ -183,6 +215,22 @@ function addHistory(){ }*/ } +function addHistoryFilter(curCity){ + var history = recover() + if(history.length>0){ + histories = [] + $(history).each(function(){ + if(this.city==curCity){ + var map={city:this.city, region:this.district, name:this.name}; + histories.push(map) + } + }) + historyVue.histories=histories; + + }/*else{ + $(".historyList #districtList").empty(); + }*/ +} //点击清空 $("#clearSearchHistory").click(function(){ //$.cookie('history',JSON.stringify([]) ,{ expires: 7}); diff --git a/fangija-zsyf/views/changeHouse/index.html b/fangija-zsyf/views/changeHouse/index.html index 159f72f..e1bc6cd 100644 --- a/fangija-zsyf/views/changeHouse/index.html +++ b/fangija-zsyf/views/changeHouse/index.html @@ -17,11 +17,11 @@ @@ -36,7 +36,9 @@

我要置换

-
+ +
+
@@ -49,7 +51,7 @@
置换房产
- {{houseAddrInfo}} +
@@ -108,6 +110,7 @@

+ 先卖后买 先买后卖

@@ -158,6 +161,7 @@
首付比例
+
@@ -171,13 +175,15 @@ -
+
意向区域(最多可选3个) - + + +
@@ -193,7 +199,8 @@
意向小区
- + +
@@ -206,6 +213,8 @@
+ +
507090110150200300 @@ -213,6 +222,7 @@
选房标签(最多可选3个)
+

近地铁 @@ -233,16 +243,17 @@

- - +
-