diff --git a/fangija-zsyf/views/district/detail.html b/fangija-zsyf/views/district/detail.html index 15b88e3..5706a60 100644 --- a/fangija-zsyf/views/district/detail.html +++ b/fangija-zsyf/views/district/detail.html @@ -57,7 +57,7 @@ -

{{name}}

@@ -329,6 +329,14 @@ function onPlusReady() { sharehrefTitle = self.name; + //查看小区 + var eventType = "openDistrictDetailClick"; + var dataMap = {}; + dataMap["city"]=city; + dataMap["region"]=region; + dataMap["name"]=name; + saveBehaviorLog(eventType,dataMap); //保存用户点击事件 + // 创建根实例 baseInfo = new Vue({ el: '#districtBaseInfo', @@ -396,7 +404,17 @@ function loadMap(){ } } - +function share(){ + var eventType = "shareDistrictClick"; + var dataMap = {}; + dataMap["city"]=city; + dataMap["region"]=region; + dataMap["name"]=name; + dataMap["type"]="districtDetail"; + saveBehaviorLog(eventType,dataMap); //保存用户点击事件 + + shareHref(); +} diff --git a/fangija-zsyf/views/house/detail.html b/fangija-zsyf/views/house/detail.html index a2ecc08..a5e5bc7 100644 --- a/fangija-zsyf/views/house/detail.html +++ b/fangija-zsyf/views/house/detail.html @@ -626,15 +626,32 @@ function gotoLoanApply(){ clicked('/views/loan/loanInfo.html',true,false,{},{houseId: houseId, city: oriCity, mobile: ""},function(){}) } function gotoRentManager(){ - clicked('/views/rent/rentManager.html',true,false,{},{houseId: houseId},function(){}) + + var eventType = "rentManageClick"; + var dataMap = {}; + dataMap["hid"]=houseId; + saveBehaviorLog(eventType,dataMap); //保存用户点击事件 + + clicked('/views/rent/rentManager.html',true,false,{},{houseId: houseId},function(){}) } //出售分析 function gotoSaleAnalysis(){ + var eventType = "saleAnalysisClick"; + var dataMap = {}; + dataMap["hid"]=houseId; + saveBehaviorLog(eventType,dataMap); //保存用户点击事件 + clicked('/views/saleAnalysis/saleAnalysis.html',true,false,{},{houseId: houseId, city: oriCity, region: oriRegion, name: oriName},function(){}) } function gotoChangeHouse(){ + + var eventType = "changeHouseClick"; + var dataMap = {}; + dataMap["hid"]=houseId; + saveBehaviorLog(eventType,dataMap); //保存用户点击事件 + clicked('/views/changeHouse/index.html',true,false,{},{houseId: houseId},function(){}) } diff --git a/fangija-zsyf/views/house/houseList.html b/fangija-zsyf/views/house/houseList.html index b312ab5..7050d75 100644 --- a/fangija-zsyf/views/house/houseList.html +++ b/fangija-zsyf/views/house/houseList.html @@ -387,6 +387,12 @@ $(document).on("click",".confirm-ok", function () { //获取删除的房产id var id = $(this).attr("id"); $.confirm("确定删除?", function () { + + var eventType = "deleteHouseClick"; + var dataMap = {}; + dataMap["hid"]=id; + saveBehaviorLog(eventType,dataMap); //保存用户点击事件 + axios.post(BASE_PATH + "/rest/index/deleteHouseInfoByStatus", { id: id diff --git a/fangija-zsyf/views/house/houseManageList.html b/fangija-zsyf/views/house/houseManageList.html index 2716cbe..96ad91e 100644 --- a/fangija-zsyf/views/house/houseManageList.html +++ b/fangija-zsyf/views/house/houseManageList.html @@ -147,6 +147,11 @@ $(document).on("click",".confirm-ok", function () { //获取删除的房产id var id = $(this).attr("id"); $.confirm("确定删除?", function () { + var eventType = "delateEvaluateClick"; + var dataMap = {}; + dataMap["hid"]=id; + saveBehaviorLog(eventType,dataMap); //保存用户点击事件 + axios.post(BASE_PATH + "/rest/index/deleteHouseInfoByStatus", { id: id diff --git a/fangija-zsyf/views/user/userInfo.html b/fangija-zsyf/views/user/userInfo.html index 56f9594..65ede6d 100644 --- a/fangija-zsyf/views/user/userInfo.html +++ b/fangija-zsyf/views/user/userInfo.html @@ -525,6 +525,24 @@ function onPlusReady(){ checkIsLogin(); } +$("a[href='#tabList1'],a[href='#tabList2'],a[href='#tabList3']").click(function(){ + var eventType = ""; + var type = $(this).text(); + if(type.indexOf("房产") >= 0){ + eventType = "userInfo_manageHouseClick"; + }else if(type.indexOf("关注") >= 0){ + eventType = "userInfo_attentionClick"; + }else if(type.indexOf("收藏") >= 0){ + eventType = "userInfo_collectClick"; + } + saveLog(eventType) +}) + +function saveLog(eventType){ + var dataMap = {}; + saveBehaviorLog(eventType,dataMap); //保存用户点击事件 +} +saveLog("userInfo_manageHouseClick");//默认第一次会调到该方法