From 91f685c585c7f41892deb6a08779eefbebe7278f Mon Sep 17 00:00:00 2001 From: "xuhe@fangjia.com" Date: Tue, 20 Mar 2018 15:38:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E5=B0=8F=E5=8C=BAbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/js/searchDistrict-app.js | 5 +++++ fangija-zsyf/yfindex.html | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/fangija-zsyf/js/searchDistrict-app.js b/fangija-zsyf/js/searchDistrict-app.js index 7c4e83b..3955432 100644 --- a/fangija-zsyf/js/searchDistrict-app.js +++ b/fangija-zsyf/js/searchDistrict-app.js @@ -5,6 +5,7 @@ var searchDistVue = new Vue({ searchDistricts: [] },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+'®ion='+this.searchDistricts[index].region+'&name='+this.searchDistricts[index].name,true); } } @@ -147,6 +148,10 @@ function addHistory(){ el: '#districtList', data: { histories: histories + },methods: { + openHistoryDetail:function(index) { + clicked(BASE_PATH+'/district/details?city='+this.histories[index].city+'®ion='+this.histories[index].region+'&name='+this.histories[index].name,true); + } } }) diff --git a/fangija-zsyf/yfindex.html b/fangija-zsyf/yfindex.html index 465cf6a..ed779e5 100644 --- a/fangija-zsyf/yfindex.html +++ b/fangija-zsyf/yfindex.html @@ -1139,7 +1139,7 @@
历史记录
@@ -1180,6 +1180,7 @@ $.config = {router: false} +