diff --git a/fangija-zsyf/main.html b/fangija-zsyf/main.html index df12e7a..5bcc8b4 100644 --- a/fangija-zsyf/main.html +++ b/fangija-zsyf/main.html @@ -142,10 +142,10 @@ //title.innerHTML = this.querySelector('.mui-tab-label').innerHTML; //显示目标选项卡 //若为iOS平台或非首次显示,则直接显示 + if(plus.webview.getWebviewById(targetTab)==null){ + plus.webview.create(targetTab, targetTab, subpage_style) + } if(mui.os.ios||aniShow[targetTab]){ - if(plus.webview.getWebviewById(targetTab)==null){ - plus.webview.create(targetTab, targetTab, subpage_style) - } plus.webview.show(targetTab); }else{ //否则,使用fade-in动画,且保存变量 diff --git a/fangija-zsyf/views/district/detail.html b/fangija-zsyf/views/district/detail.html index c9954a6..098ee2e 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 aca1c3c..f66a2e2 100644 --- a/fangija-zsyf/views/user/userInfo.html +++ b/fangija-zsyf/views/user/userInfo.html @@ -549,6 +549,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");//默认第一次会调到该方法