Merge branch 'YOUFANGAPP1.1.1' of 192.168.0.27:dev0/youfang-app into YOUFANGAPP1.1.1
This commit is contained in:
@@ -57,7 +57,7 @@
|
|||||||
<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
|
<button class="button button-link button-nav pull-left" onclick="back(),plus.nativeUI.closeWaiting();">
|
||||||
<span class="icon icon-left"></span>
|
<span class="icon icon-left"></span>
|
||||||
</button>
|
</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>
|
<span class="icon icon-share"></span>
|
||||||
</button>
|
</button>
|
||||||
<h1 class="title">{{name}}</h1>
|
<h1 class="title">{{name}}</h1>
|
||||||
@@ -329,6 +329,14 @@ function onPlusReady() {
|
|||||||
|
|
||||||
sharehrefTitle = self.name;
|
sharehrefTitle = self.name;
|
||||||
|
|
||||||
|
//查看小区
|
||||||
|
var eventType = "openDistrictDetailClick";
|
||||||
|
var dataMap = {};
|
||||||
|
dataMap["city"]=city;
|
||||||
|
dataMap["region"]=region;
|
||||||
|
dataMap["name"]=name;
|
||||||
|
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
|
||||||
|
|
||||||
// 创建根实例
|
// 创建根实例
|
||||||
baseInfo = new Vue({
|
baseInfo = new Vue({
|
||||||
el: '#districtBaseInfo',
|
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>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -626,15 +626,32 @@ function gotoLoanApply(){
|
|||||||
clicked('/views/loan/loanInfo.html',true,false,{},{houseId: houseId, city: oriCity, mobile: ""},function(){})
|
clicked('/views/loan/loanInfo.html',true,false,{},{houseId: houseId, city: oriCity, mobile: ""},function(){})
|
||||||
}
|
}
|
||||||
function gotoRentManager(){
|
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(){
|
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(){})
|
clicked('/views/saleAnalysis/saleAnalysis.html',true,false,{},{houseId: houseId, city: oriCity, region: oriRegion, name: oriName},function(){})
|
||||||
}
|
}
|
||||||
|
|
||||||
function gotoChangeHouse(){
|
function gotoChangeHouse(){
|
||||||
|
|
||||||
|
var eventType = "changeHouseClick";
|
||||||
|
var dataMap = {};
|
||||||
|
dataMap["hid"]=houseId;
|
||||||
|
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
|
||||||
|
|
||||||
clicked('/views/changeHouse/index.html',true,false,{},{houseId: houseId},function(){})
|
clicked('/views/changeHouse/index.html',true,false,{},{houseId: houseId},function(){})
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -387,6 +387,12 @@ $(document).on("click",".confirm-ok", function () {
|
|||||||
//获取删除的房产id
|
//获取删除的房产id
|
||||||
var id = $(this).attr("id");
|
var id = $(this).attr("id");
|
||||||
$.confirm("确定删除?", function () {
|
$.confirm("确定删除?", function () {
|
||||||
|
|
||||||
|
var eventType = "deleteHouseClick";
|
||||||
|
var dataMap = {};
|
||||||
|
dataMap["hid"]=id;
|
||||||
|
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
|
||||||
|
|
||||||
axios.post(BASE_PATH + "/rest/index/deleteHouseInfoByStatus",
|
axios.post(BASE_PATH + "/rest/index/deleteHouseInfoByStatus",
|
||||||
{
|
{
|
||||||
id: id
|
id: id
|
||||||
|
|||||||
@@ -147,6 +147,11 @@ $(document).on("click",".confirm-ok", function () {
|
|||||||
//获取删除的房产id
|
//获取删除的房产id
|
||||||
var id = $(this).attr("id");
|
var id = $(this).attr("id");
|
||||||
$.confirm("确定删除?", function () {
|
$.confirm("确定删除?", function () {
|
||||||
|
var eventType = "delateEvaluateClick";
|
||||||
|
var dataMap = {};
|
||||||
|
dataMap["hid"]=id;
|
||||||
|
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
|
||||||
|
|
||||||
axios.post(BASE_PATH + "/rest/index/deleteHouseInfoByStatus",
|
axios.post(BASE_PATH + "/rest/index/deleteHouseInfoByStatus",
|
||||||
{
|
{
|
||||||
id: id
|
id: id
|
||||||
|
|||||||
@@ -144,7 +144,7 @@
|
|||||||
<span>算房贷</span>
|
<span>算房贷</span>
|
||||||
</div>-->
|
</div>-->
|
||||||
<div v-for="(t,index) in merchantTools">
|
<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>
|
<span>{{t.toolName}}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -503,15 +503,19 @@ function onPlusReady(){
|
|||||||
userId:""
|
userId:""
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
goto:function(url,userId){
|
goto:function(url,userId,id){
|
||||||
var deviceId = plus.device.uuid;
|
var deviceId = plus.device.uuid;
|
||||||
if(url.indexOf("?")>0){
|
if(url.indexOf("?")>0){
|
||||||
url+=("&uid="+userId+"&deviceId="+deviceId)
|
url+=("&uid="+userId+"&deviceId="+deviceId)
|
||||||
}else{
|
}else{
|
||||||
url+=("?uid="+userId+"&deviceId="+deviceId)
|
url+=("?uid="+userId+"&deviceId="+deviceId)
|
||||||
}
|
}
|
||||||
alert(url)
|
|
||||||
if (url != null && 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})
|
clicked('../webview_embed.html', true,false,{},{url:url})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -545,6 +549,24 @@ function onPlusReady(){
|
|||||||
checkIsLogin();
|
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>
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Reference in New Issue
Block a user