Merge branch 'YOUFANGAPP1.1.1' of 192.168.0.27:dev0/youfang-app into YOUFANGAPP1.1.1
This commit is contained in:
@@ -142,10 +142,10 @@
|
|||||||
//title.innerHTML = this.querySelector('.mui-tab-label').innerHTML;
|
//title.innerHTML = this.querySelector('.mui-tab-label').innerHTML;
|
||||||
//显示目标选项卡
|
//显示目标选项卡
|
||||||
//若为iOS平台或非首次显示,则直接显示
|
//若为iOS平台或非首次显示,则直接显示
|
||||||
|
if(plus.webview.getWebviewById(targetTab)==null){
|
||||||
|
plus.webview.create(targetTab, targetTab, subpage_style)
|
||||||
|
}
|
||||||
if(mui.os.ios||aniShow[targetTab]){
|
if(mui.os.ios||aniShow[targetTab]){
|
||||||
if(plus.webview.getWebviewById(targetTab)==null){
|
|
||||||
plus.webview.create(targetTab, targetTab, subpage_style)
|
|
||||||
}
|
|
||||||
plus.webview.show(targetTab);
|
plus.webview.show(targetTab);
|
||||||
}else{
|
}else{
|
||||||
//否则,使用fade-in动画,且保存变量
|
//否则,使用fade-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
|
||||||
|
|||||||
@@ -549,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