From 9e46a013616ea9165986cf3c6b37cdf94a240475 Mon Sep 17 00:00:00 2001 From: zongzhimin Date: Mon, 7 May 2018 15:14:59 +0800 Subject: [PATCH 1/2] =?UTF-8?q?YOUFANG1.0.4=20=E7=94=A8=E6=88=B7=E5=B7=A5?= =?UTF-8?q?=E5=85=B7=E6=8E=A5=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/views/user/userInfo.html | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/fangija-zsyf/views/user/userInfo.html b/fangija-zsyf/views/user/userInfo.html index e32c71f..341601b 100644 --- a/fangija-zsyf/views/user/userInfo.html +++ b/fangija-zsyf/views/user/userInfo.html @@ -144,7 +144,7 @@ 算房贷 -->
- + {{t.toolName}}
@@ -503,15 +503,19 @@ function onPlusReady(){ userId:"" }, methods:{ - goto:function(url,userId){ + goto:function(url,userId,id){ var deviceId = plus.device.uuid; if(url.indexOf("?")>0){ url+=("&uid="+userId+"&deviceId="+deviceId) }else{ url+=("?uid="+userId+"&deviceId="+deviceId) } - alert(url) if (url != null && url != "") { + axios.post(BASE_PATH + "/rest/usertool/merchantToolClick",{id:id}).then(function(response){ + + }).catch(function(error){ + + }); clicked('../webview_embed.html', true,false,{},{url:url}) } } From 470896f3d7a39d16fb36ec4048a3fde7be9296ff Mon Sep 17 00:00:00 2001 From: "xuhe@fangjia.com" Date: Mon, 7 May 2018 15:17:27 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E7=94=A8=E6=88=B7=E8=A1=8C=E4=B8=BA?= =?UTF-8?q?=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fangija-zsyf/views/district/detail.html | 22 +++++++++++++++++-- fangija-zsyf/views/house/detail.html | 19 +++++++++++++++- fangija-zsyf/views/house/houseList.html | 6 +++++ fangija-zsyf/views/house/houseManageList.html | 5 +++++ fangija-zsyf/views/user/userInfo.html | 18 +++++++++++++++ 5 files changed, 67 insertions(+), 3 deletions(-) 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");//默认第一次会调到该方法