diff --git a/fangija-zsyf/js/log/log_stat.js b/fangija-zsyf/js/log/log_stat.js new file mode 100644 index 0000000..e09e2e0 --- /dev/null +++ b/fangija-zsyf/js/log/log_stat.js @@ -0,0 +1,41 @@ +/** + * 日志记录,依赖于axios.min.js,axiosPlugin.js + * @author yinjihuan + */ +document.addEventListener('plusready', function() { + savePageLog() +}, false); + +/** + * 记录页面访问日志 + */ +function savePageLog() { + var page = document.getElementsByTagName("title")[0].innerHTML; + var device = plus.device.uuid; + var model = plus.device.model; + plus.geolocation.getCurrentPosition(function(p){ + province = p.address.province; + city = p.address.city; + region = p.address.district; + lng = p.coords.longitude; + lat = p.coords.latitude; + address = p.address.street; + doSavePageLog({page:page, lng:lng, lat:lat, province:province, city:city, region:region, address:address, device:device, model:model}); + }, function(e){ + doSavePageLog({page:page, device:device, model:model}); + }, + { + provider:'baidu', + enableHighAccuracy:true, + coordsType:'bd09ll' + } + ); +} + +function doSavePageLog(data) { + axios.post("/rest/log/save", data).then(function (response) { + + }).catch(function (error) { + console.log(error); + }); +} diff --git a/fangija-zsyf/views/component/cityChooseComponent.js b/fangija-zsyf/views/component/cityChooseComponent.js new file mode 100644 index 0000000..adf46a0 --- /dev/null +++ b/fangija-zsyf/views/component/cityChooseComponent.js @@ -0,0 +1,881 @@ +////markFocus:已关注城市是否加标志(0:否,1:是) +////clickFocus:点击城市是否添加关注(0:否,1:是) +//var cityChooseOption = {markFocus:0,clickFocus:0} + +Vue.component('city_choose',{ + template: +' ' +}) + diff --git a/fangija-zsyf/views/component/cityIncreaseRankingComponent.js b/fangija-zsyf/views/component/cityIncreaseRankingComponent.js index 6e52331..834e39a 100644 --- a/fangija-zsyf/views/component/cityIncreaseRankingComponent.js +++ b/fangija-zsyf/views/component/cityIncreaseRankingComponent.js @@ -1,4 +1,4 @@ -var cityIncreaseRankingData = {cityIncreaseRankingList:[]}; +var cityIncreaseRankingData = {cityIncreaseRankingList:[],test:"ttt"}; Vue.component('city_increase_ranking',{ template:'
'+ diff --git a/fangija-zsyf/views/component/cityPotentialRankingComponent.js b/fangija-zsyf/views/component/cityPotentialRankingComponent.js index 62a9fe5..bb11cdd 100644 --- a/fangija-zsyf/views/component/cityPotentialRankingComponent.js +++ b/fangija-zsyf/views/component/cityPotentialRankingComponent.js @@ -68,9 +68,17 @@ Vue.component('city_potential_ranking',{ }, follow:function(city){ alert(city) + axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){ + }).catch(function(error){ + console.log(error) + }) }, abolish:function(city){ alert(city) + axios.get("/rest/quotations/collectCity",{params:{city:city}}).then(function(response){ + }).catch(function(error){ + console.log(error) + }) } }, mounted:function(){ diff --git a/fangija-zsyf/views/district/aroundDetail.html b/fangija-zsyf/views/district/aroundDetail.html index c083884..dbaee06 100644 --- a/fangija-zsyf/views/district/aroundDetail.html +++ b/fangija-zsyf/views/district/aroundDetail.html @@ -82,7 +82,7 @@ $.config = {router: false} - + + - + - + + + + + + diff --git a/fangija-zsyf/views/house/houseList.html b/fangija-zsyf/views/house/houseList.html index ae39ab1..49392a9 100644 --- a/fangija-zsyf/views/house/houseList.html +++ b/fangija-zsyf/views/house/houseList.html @@ -111,7 +111,7 @@ $.config = {router: false} - + - + diff --git a/fangija-zsyf/views/intelligentHouse/aroundDetail.html b/fangija-zsyf/views/intelligentHouse/aroundDetail.html index 41d1d0f..5a90b13 100644 --- a/fangija-zsyf/views/intelligentHouse/aroundDetail.html +++ b/fangija-zsyf/views/intelligentHouse/aroundDetail.html @@ -141,7 +141,7 @@ $.config = {router: false} - + + - + - + + - + + + + + - + - + diff --git a/fangija-zsyf/yfindex.html b/fangija-zsyf/yfindex.html index 746dfa2..ad60cd9 100644 --- a/fangija-zsyf/yfindex.html +++ b/fangija-zsyf/yfindex.html @@ -1182,7 +1182,7 @@ $.config = {router: false} - +