diff --git a/fangija-zsyf/css/main.css b/fangija-zsyf/css/main.css index b5b20cc..ac3f021 100644 --- a/fangija-zsyf/css/main.css +++ b/fangija-zsyf/css/main.css @@ -491,7 +491,7 @@ input::-webkit-input-placeholder{ .cardInfo01{color:#333;} .cardInfo01 > img{width:100%;} .cardInfo01 span{font-size:0.55rem;color:#B5B5B5;} -.cardInfo01 .card-header{padding:0.5rem 0;font-size:0.85rem;} +.cardInfo01 .card-header{padding:0.5rem 0;font-size:0.9rem;} .cardInfo01 .card-content-inner{padding:0.5rem 0;} .cardInfo01 .card-footer{padding:0.5rem 0;} .cardInfo01 .card-footer span label{font-size:0.55rem;line-height:0.8rem;display:inline-block;vertical-align:text-top;} @@ -515,7 +515,7 @@ input::-webkit-input-placeholder{ .cardInfo02 .item-content{padding:0;} .cardInfo02 .item-title{font-size:0.9rem;white-space:normal;-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;} .cardInfo02 .item-title span{text-align:right;} -.cardInfo02 .item-subtitle font{font-size:0.7rem;white-space:normal;-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;margin:0.2rem 0;} +.cardInfo02 .item-subtitle font{font-size:0.7rem;white-space:normal;-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;margin:0.3rem 0;} .cardInfo02 .item-subtitle span{font-size:0.55rem;color:#B5B5B5;max-width:100%;} .cardInfo02 .item-subtitle small{font-size:0.7rem;color:#999;} .cardInfo02 .item-subtitle em{font-size:0.7rem;color:#EB5F34;} @@ -539,8 +539,18 @@ input::-webkit-input-placeholder{ .cardInfo03 .card-content-inner div.vote02 label{color:#8698F0;text-align:left;} .cardInfo03 .card-content-inner em{font-size:1rem;color:#F18D00;text-align:center;line-height:45px;position:absolute;left:48%;} -.cardInfo01 .cardInfoPlaceholder{width:100%;height:180px;background:url(../images/cardInfoPlaceholderImg.png) no-repeat center center;background-size:20%;border:solid 1px #e7e7e7;} +.cardInfo01 .cardInfoPlaceholder{width:100%;height:180px;background:url(../images/cardInfoPlaceholderImg.png) no-repeat center center;background-size:15%;border:solid 1px #e7e7e7;} .cardInfo02 .cardInfoPlaceholder{width:6.5rem;height:5.2rem;background:url(../images/cardInfoPlaceholderImg.png) no-repeat center center;background-size:30%;border:solid 1px #e7e7e7;} +.cardLoan{box-shadow:0 4px 10px 0 rgba(211,214,217,0.70);border-radius:0.25rem;margin:0;} +.cardLoan .card-content-inner p{text-align:center;line-height:1rem;margin:0.25rem 0;} +.cardLoan .card-content-inner p label{font-size:0.7rem;color:#333;} +.cardLoan .card-content-inner p small{font-size:0.6rem;color:#999;} +.cardLoan .card-content-inner p em{font-size:1.25rem;color:#EA122C;font-weight:bold;margin-right:0.1rem;} +.cardLoan .card-content-inner p font{font-size:0.7rem;color:#EA122C;} +.cardLoan .card-content-inner p span{font-size:0.65rem;color:#333;} +.cardLoan .card-content-inner p a{width:4.5rem;margin:0 auto;margin-top:0.5rem;} +.icon-loan01{width:18px;height:15px;background:url(../images/icon-loan01a.png) no-repeat center center;background-size:100%;margin-right:0.3rem;} +.icon-loan02{width:15px;height:15px;background:url(../images/icon-loan02a.png) no-repeat center center;background-size:100%;margin-right:0.3rem;} .icon-eye-white{width:0.89rem;height:0.57rem;background:url(../images/icon-eye-white.png) no-repeat center center;background-size:100%;margin-right:0.3rem;vertical-align:baseline;} .icon-eye-grey{width:0.85rem;height:0.6rem;background:url(../images/icon-eye-grey.png) no-repeat center center;background-size:100%;margin-right:0.3rem;vertical-align:baseline;} @@ -559,12 +569,10 @@ input::-webkit-input-placeholder{ /* 资讯 */ .content-padded{margin:0.75rem;} .content-padded h1{font-size:1.1rem;line-height:1.6rem;letter-spacing:0.11rem;} -.content-padded p{font-size:0.8rem;color:#333;line-height:1.5rem;letter-spacing:0.06rem;text-align:justify;clear:both;overflow:hidden;} +.content-padded p{font-size:0.8rem;line-height:1.5rem;letter-spacing:0.06rem;text-align:justify;clear:both;overflow:hidden;} .content-padded p span{margin-left:1rem;} .content-padded p small{font-size:0.65rem;color:#999;line-height:0.9rem;letter-spacing:0.07rem;float:left;} .content-padded img{width:100%;} -.content-padded img.icon{width:auto;} -.content-padded ol{padding-left:0.75rem;} .adBoxApp{width:80%;margin:0 auto;margin-top:1rem;margin-bottom:1.5rem;overflow:hidden;} .adBoxApp img{float:left;width:5.6rem;height:4.7rem;margin-right:1rem;} @@ -824,6 +832,7 @@ input::-webkit-input-placeholder{ .topic .topicContent .topicContent_center.home div .icon.icon-personal02{background:url(../images/icon-personal02.png) no-repeat center center;background-size:100%;} .topic .topicContent .topicContent_center.home div .icon.icon-personal03{background:url(../images/icon-personal03.png) no-repeat center center;background-size:100%;} .topic .topicContent .topicContent_center.home div .icon.icon-personal04{background:url(../images/icon-personal04.png) no-repeat center center;background-size:100%;} +.topic .topicContent .topicContent_center.home div .icon.icon-personal05{background:url(../images/icon-personal05.png) no-repeat center center;background-size:100%;} .topic .topicContent .topicContent_center.home div .icon.icon-evaluation01{background:url(../images/icon-evaluation01.png) no-repeat center center;background-size:100%;} .topic .topicContent .topicContent_center.home div .icon.icon-evaluation02{background:url(../images/icon-evaluation02.png) no-repeat center center;background-size:100%;} @@ -870,21 +879,23 @@ input::-webkit-input-placeholder{ .topic .topicContent .topicContent_bottom01 label em{color:#EB5F34;margin-left:0.1rem;} /* 广告 */ -.ad{display:block;border-bottom:solid 0.5rem #f3f3f3;} +.ad{display:block;} .ad img{width:100%;} /* 图表 */ .chart{width:100%;height:250px;} .chart tspan{font-size:0.6rem;text-shadow:none;} -.chart01Box{height:270px;} -#chart01{height:270px;} -#chart01a{height:270px;} -.topic .topicTitle > div.icon01Box{overflow:hidden;float:none;display:inline-block;vertical-align:middle;margin-left:-0.5rem;} -.icon-chart01a{width:1.1rem;height:1rem;background:url(../images/icon-chart01a.png) no-repeat center center;background-size:55%;float:left;padding:0 0.8rem;} -.icon-chart01{width:1.1rem;height:1rem;background:url(../images/icon-chart01.png) no-repeat center center;background-size:55%;float:left;padding:0 0.8rem;} - -.icon-chart01a-no{width:1.1rem;height:1rem;background:url(../images/icon-chart01a_common.png) no-repeat center center;background-size:55%;float:left;padding:0 0.8rem;} -.icon-chart01-no{width:1.1rem;height:1rem;background:url(../images/icon-chart01_common.png) no-repeat center center;background-size:55%;float:left;padding:0 0.8rem;} +.chart01Box,#chart01a,#chart01{height:260px;} +/* +.chart01Box{height:260px;position:relative;} +#chart01a{height:260px;position:absolute;} +#chart01{height:260px;position:absolute;} +*/ +.topic .topicTitle > div.icon01Box{overflow:hidden;float:none;display:inline-block;vertical-align:middle;} +.icon-chart01a-no{width:1.1rem;height:1rem;background:url(../images/icon-chart01a-no.png) no-repeat center center;background-size:55%;float:left;padding:0 0.8rem;} +.icon-chart01a{background:url(../images/icon-chart01a.png) no-repeat center center;background-size:55%;} +.icon-chart01-no{width:1.1rem;height:1rem;background:url(../images/icon-chart01-no.png) no-repeat center center;background-size:55%;float:left;padding:0 0.8rem;} +.icon-chart01{background:url(../images/icon-chart01.png) no-repeat center center;background-size:55%;} .scoreBox{height:130px;position:relative;} .score{width:250px;height:250px;margin:0 auto;margin-top:1rem;} @@ -1033,7 +1044,7 @@ input::-webkit-input-placeholder{ .cardRankingBox01 .cardRanking{width:33.33%;border:none;border-radius:0;margin:0;} .cardRankingBox01 .cardRanking:last-child{border-right:none;} .cardRankingBox01 .cardRanking .card-header:first-child{border-right:none;padding:0;padding-top:0.5rem;padding-bottom:0.5rem;font-size:0.75rem;} -.cardRankingBox01 .cardRanking .card-header{border-right:solid 1px #e7e7e7;padding-top:0;color:#333;} +.cardRankingBox01 .cardRanking .card-header{border-right:solid 1px #e7e7e7;padding-top:0;} .cardRankingBox01 .cardRanking .card-header em{font-size:0.85rem;color:#F18D00;margin-right:0.2rem;} .cardRankingBox01 .cardRanking .card-content-inner{color:#999;border-right:solid 1px #e7e7e7;} .cardRankingBox01 .cardRanking .card-footer{padding:0;border-right:solid 1px #e7e7e7;} @@ -1190,6 +1201,18 @@ input::-webkit-input-placeholder{ .legendBox p label i{width:0.4rem;height:0.4rem;border-radius:100%;display:inline-block;margin-right:0.3rem;} .legendBox p span{font-size:0.75rem;display:inline-block;width:50%;} +/* 大额信用卡 */ +.creditCardBox{padding:0 0.75rem;} +.creditCardBox > img{width:4.51rem;height:1.3rem;margin-top:0.75rem;} +.creditCardBox > div > img{margin:0 auto;} +.creditCardBox > div p{text-align:center;margin-top:1rem;margin-bottom:1rem;} +.creditCardBox > div p .icon-creditCard01{width:1.1rem;height:0.9rem;background:url(../images/icon-creditCard01.png) no-repeat center center;background-size:100%;margin-right:0.3rem;} +.creditCardBox > div p .icon-creditCard02{width:0.98rem;height:0.98rem;background:url(../images/icon-creditCard02.png) no-repeat center center;background-size:100%;margin-right:0.3rem;} +.creditCardBox > div p em{font-size:0.9rem;color:#F18D00;display:inline-block;vertical-align:middle;} +.creditCardBox > p{text-align:center;margin-top:1rem;margin-bottom:0;} +.creditCardBox > p em{font-size:0.8rem;} +.creditCardBox > p label{font-size:1rem;color:#fff;background:#F18D00;border-radius:0.25rem;margin:0 1.1rem;padding:0.2rem 0.5rem;} + /* 分享 */ .shareBox{height:66px;padding-left:0;padding-right:0.5rem;border-top:solid 1px #e7e7e7;bottom:0;} .shareBox ul:before{height:0;} diff --git a/fangija-zsyf/images/icon-chart01-no.png b/fangija-zsyf/images/icon-chart01-no.png new file mode 100644 index 0000000..17a4ca3 Binary files /dev/null and b/fangija-zsyf/images/icon-chart01-no.png differ diff --git a/fangija-zsyf/images/icon-chart01a-no.png b/fangija-zsyf/images/icon-chart01a-no.png new file mode 100644 index 0000000..581d3a2 Binary files /dev/null and b/fangija-zsyf/images/icon-chart01a-no.png differ diff --git a/fangija-zsyf/images/icon-creditCard01.png b/fangija-zsyf/images/icon-creditCard01.png new file mode 100644 index 0000000..b2c7942 Binary files /dev/null and b/fangija-zsyf/images/icon-creditCard01.png differ diff --git a/fangija-zsyf/images/icon-creditCard02.png b/fangija-zsyf/images/icon-creditCard02.png new file mode 100644 index 0000000..e727332 Binary files /dev/null and b/fangija-zsyf/images/icon-creditCard02.png differ diff --git a/fangija-zsyf/images/icon-loan01.png b/fangija-zsyf/images/icon-loan01.png new file mode 100644 index 0000000..e3f81fd Binary files /dev/null and b/fangija-zsyf/images/icon-loan01.png differ diff --git a/fangija-zsyf/images/icon-loan01a.png b/fangija-zsyf/images/icon-loan01a.png new file mode 100644 index 0000000..a35c3d7 Binary files /dev/null and b/fangija-zsyf/images/icon-loan01a.png differ diff --git a/fangija-zsyf/images/icon-loan02.png b/fangija-zsyf/images/icon-loan02.png new file mode 100644 index 0000000..d70ae30 Binary files /dev/null and b/fangija-zsyf/images/icon-loan02.png differ diff --git a/fangija-zsyf/images/icon-loan02a.png b/fangija-zsyf/images/icon-loan02a.png new file mode 100644 index 0000000..cff1c61 Binary files /dev/null and b/fangija-zsyf/images/icon-loan02a.png differ diff --git a/fangija-zsyf/images/icon-personal05.png b/fangija-zsyf/images/icon-personal05.png new file mode 100644 index 0000000..738972b Binary files /dev/null and b/fangija-zsyf/images/icon-personal05.png differ diff --git a/fangija-zsyf/js/ad_position_image.js b/fangija-zsyf/js/ad_position_image.js index 70c187a..755d4ac 100644 --- a/fangija-zsyf/js/ad_position_image.js +++ b/fangija-zsyf/js/ad_position_image.js @@ -4,8 +4,8 @@ function add_imgage(imageId,adPosition,device){ }).then(function(response){ if(response.data.status){ var 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.imgUrl)!="undefined"&&h.imgUrl!=null&&$.trim(h.imgUrl)!=""){ + $("#"+imageId).attr("src",h.imgUrl); } if(typeof(h.link)!="undefined"&&h.link!=null&&$.trim(h.link)!=""){ var uid = localStorage.getItem("user_id"); diff --git a/fangija-zsyf/js/loan/loanInfo.js b/fangija-zsyf/js/loan/loanInfo.js index 6977a27..8b8d155 100644 --- a/fangija-zsyf/js/loan/loanInfo.js +++ b/fangija-zsyf/js/loan/loanInfo.js @@ -3,6 +3,8 @@ var APPLY_LOAN = "applyLoan"; //如果是抵押贷款时候,需要上层页面传入houseId var houseId; +var loanPrice; +var loanType; var _params = {}; document.addEventListener('plusready', onPlusReady, false); @@ -10,6 +12,15 @@ document.addEventListener('plusready', onPlusReady, false); function onPlusReady(){ var self = plus.webview.currentWebview(); houseId= self.houseId; + loanPrice= self.loanPrice; + loanType= self.loanType; + if(loanType==1){ + $(".checkbox i").removeClass("current"); + $("#loanTypeDiv1").find("i").addClass("current"); + }else if(loanType==2){ + $(".checkbox i").removeClass("current"); + $("#loanTypeDiv2").find("i").addClass("current"); + } $('#input_city').val(self.city); $('#input_phoneNumber').val(self.mobile); } @@ -93,6 +104,10 @@ $("#next_btn").on("click", function () { $.toast("请输入申请金额"); return false; } + if(loanPrice!=0 && loanPrice --> -
-

-

您的反馈很重要,是我们努力的动力

-
- - +
+
+
+
+
+

+

最高可贷额度

+

{{loan_price}}万

+

月利率低至0.6%
最长5年

+

立即申请

+
+
+
+
+
+
+

+

最高可贷额度

+

50万

+

月利率0.42%起
最快当天放款

+

立即申请

+
+
+
@@ -105,7 +123,16 @@
- +
+

+

您的反馈很重要,是我们努力的动力

+
+ + +
+
+ +
均价走势
@@ -160,6 +187,7 @@ $.config = {router: false} var shareId=''; var picUrl = '_www/images/default_share.png'; var hid = ""; + var oriCity; document.addEventListener('plusready', onPlusReady, false); function onPlusReady(){ @@ -178,6 +206,13 @@ $.config = {router: false} house_room_num:"" } }) + var house_loan = new Vue({ + el:'#house_loan', + data:{ + loan_price:"" + } + }) + var house_price = new Vue({ el:"#house_price", data:{ @@ -254,14 +289,22 @@ $.config = {router: false} house_info.name = h.name sharehrefTitle=h.name+"评估报告" house_info.city_region = h.city+"-"+h.region + oriCity = h.city; house_info.house_room_num = (h.houseRoomNum==null||h.houseRoomNum=="")?"暂无":h.houseRoomNum; // house_info.house_type = (h.roomCount==0?"":h.roomCount+"室")+(h.hallCount==0?"":h.hallCount+"厅 ")+(h.area==0?"":h.area+"㎡ ")+((h.floor==0||h.height==0)?"":h.floor+"/"+h.height+"层") if(h.totalPrice==0){ house_price.total_price = "暂无"; + $("#loanDiv1").hide(); + $("#loanDiv2").hide(); }else{ house_price.total_price = (h.totalPrice/10000).toFixed(2) house_price.w = "万" + $("#loanDiv1").show(); + $("#loanDiv2").show(); + house_loan.loan_price = ((h.totalPrice/10000)*0.7).toFixed(0); } + + //alert(house_price.loanPrice) house_price.avg_price = h.avgPrice==0?"暂无":h.avgPrice+"元/㎡" house_price.percentage_30=h.oneMonthUpDownRange==0?"暂无":h.oneMonthUpDownRange if(h.oneMonthUpDownRange<0){ @@ -561,6 +604,23 @@ function openaddWindow(){ }) } +function gotoLoanApply(type){ + var eventType = "loanClick"; + var dataMap = {}; + dataMap["hid"]=hid; + saveBehaviorLog(eventType,dataMap); //保存用户点击事件 + //最大贷款限额 + var loanPrice = 0; + //贷款类型 0-无 1-房抵贷 2-信用贷 + var loanType = type; + if(type == 1){ + loanPrice = $("#loanPrice").text(); + }else if(type == 2){ + loanPrice = 50; + } + clicked('/views/loan/loanInfo.html',true,false,{},{houseId: hid, city: oriCity, mobile: "",loanPrice:loanPrice,loanType:loanType},function(){}) +} + function share(){ var eventType = "shareEvaluateClick"; var dataMap = {}; diff --git a/fangija-zsyf/views/house/detail.html b/fangija-zsyf/views/house/detail.html index 845f634..324a8b8 100644 --- a/fangija-zsyf/views/house/detail.html +++ b/fangija-zsyf/views/house/detail.html @@ -18,7 +18,7 @@ .topic .topicContent .topicContent_center.home div span{font-size:0.7rem;color:#666;} .list-block ul:before{height:0;} .list-block ul:after{height:0;} - .list-block.media-list ul:after{height:1px;} + .list-block.media-list:first-child ul:after{height:1px;} .list-block .item-inner{padding-top:0;padding-bottom:0;min-height:1.8rem;} .list-block .item-inner:after{height:0;} .districtMap + .list-block.media-list span{line-height:1.2rem;} @@ -102,13 +102,40 @@ 我要置换
-
+
+
+
+
+
+

+

最高可贷额度

+

{{loanPrice}}万

+

月利率低至0.6%
最长5年

+

立即申请

+
+
+
+ +
+
+
+

+

最高可贷额度

+

50万

+

月利率0.42%起
最快当天放款

+

立即申请

+
+
+
+
+
@@ -335,6 +362,7 @@
+