用户行为日志

This commit is contained in:
xuhe@fangjia.com
2018-05-07 15:17:27 +08:00
parent 742d7be71e
commit 470896f3d7
5 changed files with 67 additions and 3 deletions
+18 -1
View File
@@ -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(){})
}
</script>
+6
View File
@@ -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
@@ -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