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} +