diff --git a/fangija-zsyf/config.js b/fangija-zsyf/config.js index 6a837f0..8b9fcf3 100644 --- a/fangija-zsyf/config.js +++ b/fangija-zsyf/config.js @@ -11,12 +11,18 @@ var BASE_PATH = "http://192.168.10.164:8084"; var lauchFlag = false; /*广告位类型常量*/ -var TOU_ZI_SHOU_YI=0; -var JUN_JIA_PAI_MING=1; -var ZU_SHOU_BI=2; -var LIU_DONG_XING_PING_JI=3; -var XIANG_SI_XIAO_QU=4; -var HOME_PAGE_BANNER=5; -var LOAN_PAGE_BANNER=6; -var SET_QR_CODE=7; -var EVALUATE_REPORT=8; \ No newline at end of file +var TOU_ZI_SHOU_YI=0;//"房产分析/出租管理-租金回报率" +var JUN_JIA_PAI_MING=1;//"房产分析/出租管理-出租状态" +var ZU_SHOU_BI=2;//"出售分析-增长率收益" +var LIU_DONG_XING_PING_JI=3;//"出售分析-挂牌建议" +var XIANG_SI_XIAO_QU=4;//"置换建议-小区详情-顶部描述" +var HOME_PAGE_BANNER=5;//"首页banner" +var LOAN_PAGE_BANNER=6;//"贷款页banner" +var SET_QR_CODE=7;//"设置页二维码" +var EVALUATE_REPORT=8;//"有房评估报告-广告图" +var DISTRICT_DETAIL=9;// "有房小区详情-广告图" +var EVALUATE_LIST=10;// "有房房产评估列表-广告图" +var ESTATE_MARKET_COUNTRY=11;// "有房房产行情全国-广告图" +var ESTATE_MARKET_SHANGHAI=12;// "有房房产行情上海-广告图" +var ESTATE_DETAIL=13;// "有房房产详情-广告图" +var DISTRICT_DETAIL_PRICE=14;// "有房小区详情-广告图" \ No newline at end of file diff --git a/fangija-zsyf/js/ad_position_image.js b/fangija-zsyf/js/ad_position_image.js new file mode 100644 index 0000000..8c77f1c --- /dev/null +++ b/fangija-zsyf/js/ad_position_image.js @@ -0,0 +1,32 @@ +function add_imgage(imageId,adPosition,device){ + axios.get("/rest/ad/position",{ + params:{position : adPosition} + }).then(function(response){ + if(response.data.status){ + h = response.data.data; + if(typeof(h.imgId)!="undefined"&&h.imgId!=null&&$.trim(h.imgId)!=""){ + $("#"+imageId).attr("src",BASE_PATH+"/img/"+h.imgId); + } + if(typeof(h.link)!="undefined"&&h.link!=null&&$.trim(h.link)!=""){ + var uid = localStorage.getItem("user_id"); + var aId=h.id; + $("#"+imageId).parent().click(function(){ + //1.记录点击日志 + axios.post("/rest/ad/adUrlLoad",{ + id : aId + }).then(function(res){ + console.log(res); + }).catch(function(error){ + console.log(error); + }); + //2.跳转 + url=h.link+"?uid="+uid+"&device="+device; + //window.location.href=url; + clicked("/views/webview_embed.html", true,false,{},{url:url}); + }); + } + } + }).catch(function(error){ + console.log(error); + }); +} diff --git a/fangija-zsyf/main.html b/fangija-zsyf/main.html index 3baae00..5804d1b 100644 --- a/fangija-zsyf/main.html +++ b/fangija-zsyf/main.html @@ -127,12 +127,14 @@ } self.append(sub); } + }); //当前激活选项 var activeTab = subpages[0]; var title = document.getElementById("title"); //选项卡点击事件 mui('.mui-bar-tab').on('tap', 'a', function(e) { + var self = plus.webview.currentWebview(); plus.nativeUI.showWaiting(); var targetTab = this.getAttribute('href'); if (targetTab == activeTab) { @@ -144,7 +146,8 @@ //显示目标选项卡 //若为iOS平台或非首次显示,则直接显示 if(plus.webview.getWebviewById(targetTab)==null){ - plus.webview.create(targetTab, targetTab, subpage_style) + var sub = plus.webview.create(targetTab, targetTab, subpage_style) + self.append(sub); } if(mui.os.ios||aniShow[targetTab]){ plus.webview.show(targetTab); @@ -211,9 +214,9 @@ }) } - // 推送消息跳转页面 window.addEventListener('switchView',function(event){ + var self = plus.webview.currentWebview(); console.log(event.detail.name) plus.webview.show(plus.webview.getWebviewById("HBuilder")); var targetTab = event.detail.name; @@ -224,7 +227,8 @@ //若为iOS平台或非首次显示,则直接显示 if(mui.os.ios||aniShow[targetTab]){ if(plus.webview.getWebviewById(targetTab)==null){ - plus.webview.create(targetTab, targetTab, subpage_style) + var sub = plus.webview.create(targetTab, targetTab, subpage_style) + self.append(sub); } plus.webview.show(targetTab); }else{ diff --git a/fangija-zsyf/views/district/detail.html b/fangija-zsyf/views/district/detail.html index 04cd1c6..0400821 100644 --- a/fangija-zsyf/views/district/detail.html +++ b/fangija-zsyf/views/district/detail.html @@ -117,6 +117,8 @@ + +
小区走势分析
@@ -270,6 +272,8 @@ $.config = {router: false} + + - + + + + + diff --git a/fangija-zsyf/views/rent/rent.html b/fangija-zsyf/views/rent/rent.html index ebae184..3eb4108 100644 --- a/fangija-zsyf/views/rent/rent.html +++ b/fangija-zsyf/views/rent/rent.html @@ -84,6 +84,7 @@
+
@@ -192,6 +193,8 @@ $.config = {router: false} + + + @@ -128,6 +129,10 @@ document.addEventListener('plusready', onPlusReady, false); function onPlusReady() { var self = plus.webview.currentWebview(); id = self.houseId + var edit = new Vue({ + el:"#edit", + data:{liveStatus:"",leaseStartDate:"",leaseEndDate:"",lastRentDate:"",nowDay:"",rent:"",cycle:""} + }); axios.get('/rest/rent/queryHouseRent',{params:{id:id}}).then(function(response){ // var data = response.data.data.houses; // $.each(data,function(i){ @@ -277,6 +282,10 @@ function onPlusReady() { $.toast("收租日期不能晚于到期日期"); return false; } + if (next_rent < rent_start) { + $.toast("收租日期不能早于起租日期"); + return false; + } if(next_rent