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:29:45 +08:00
6 changed files with 75 additions and 11 deletions
+3 -3
View File
@@ -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动画,且保存变量
+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
+23 -5
View File
@@ -511,11 +511,11 @@ function onPlusReady(){
url+=("?uid="+userId+"&deviceId="+deviceId)
}
if (url != null && url != "") {
axios.post(BASE_PATH + "/rest/usertool/merchantToolClick",{id:id}).then(function(response){
}).catch(function(error){
});
if(id!=null){
axios.post(BASE_PATH + "/rest/usertool/merchantToolClick",{id:id}).then(function(response){
}).catch(function(error){
});
}
clicked('../webview_embed.html', true,false,{},{url:url})
}
}
@@ -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");//默认第一次会调到该方法
</script>
</body>