Merge branch 'YOUFANGAPP1.1.1' of 192.168.0.27:dev0/youfang-app into YOUFANGAPP1.1.1

This commit is contained in:
尹吉欢
2018-05-07 15:18:41 +08:00
5 changed files with 74 additions and 6 deletions
+20 -2
View File
@@ -57,7 +57,7 @@
<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
<span class="icon icon-left"></span>
</button>
<button class="button button-link button-nav pull-right open-popover" onclick="shareHref()">
<button class="button button-link button-nav pull-right open-popover" onclick="share()">
<span class="icon icon-share"></span>
</button>
<h1 class="title">{{name}}</h1>
@@ -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();
}
</script>
+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
+25 -3
View File
@@ -144,7 +144,7 @@
<span>算房贷</span>
</div>-->
<div v-for="(t,index) in merchantTools">
<img v-bind:src="t.iconUrl" style="width:45px;height:45px;margin:0 auto;" v-on:click="goto(t.url,userId)">
<img v-bind:src="t.iconUrl" style="width:45px;height:45px;margin:0 auto;" v-on:click="goto(t.url,userId,t.id)">
<span>{{t.toolName}}</span>
</div>
</div>
@@ -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})
}
}
@@ -545,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");//默认第一次会调到该方法
</script>
</body>