YOUFANG1.0.7 我要置换结果资金缺口显示小数位数超长
@@ -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;}
|
||||
|
||||
|
After Width: | Height: | Size: 14 KiB |
|
After Width: | Height: | Size: 920 B |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 1.9 KiB |
|
After Width: | Height: | Size: 856 B |
|
After Width: | Height: | Size: 1020 B |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 17 KiB |
@@ -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");
|
||||
|
||||
@@ -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<Number(applyMoney)){
|
||||
$.toast("申请金额不能大于"+loanPrice+"万");
|
||||
return false;
|
||||
}
|
||||
if(mortgage == undefined || mortgage == ""){
|
||||
$.toast("请选择贷款类型");
|
||||
return false;
|
||||
|
||||
@@ -162,7 +162,8 @@
|
||||
//当前激活选项
|
||||
var activeTab = subpages[0];
|
||||
var title = document.getElementById("title");
|
||||
//选项卡点击事件
|
||||
//选项卡点击事件
|
||||
var pageInitTime = new Date().getTime();
|
||||
mui('.mui-bar-tab').on('tap', 'a', function(e) {
|
||||
var self = plus.webview.currentWebview();
|
||||
plus.nativeUI.showWaiting();
|
||||
@@ -190,11 +191,53 @@
|
||||
}
|
||||
//隐藏当前;
|
||||
plus.webview.hide(activeTab);
|
||||
// 记录主页面的停留时间
|
||||
var outPageTime = new Date().getTime();
|
||||
savePageLog(outPageTime - pageInitTime, activeTab);
|
||||
pageInitTime = new Date().getTime();
|
||||
//更改当前活跃的选项卡
|
||||
activeTab = targetTab;
|
||||
plus.nativeUI.closeWaiting();
|
||||
});
|
||||
/**
|
||||
* 记录页面访问日志
|
||||
*/
|
||||
function savePageLog(residenceTime, page) {
|
||||
var device = plus.device.uuid;
|
||||
var model = plus.device.model;
|
||||
|
||||
var pushClientId = "";
|
||||
var info = plus.push.getClientInfo();
|
||||
if (info != null) {
|
||||
pushClientId = info.clientid;
|
||||
}
|
||||
plus.geolocation.getCurrentPosition(function(p){
|
||||
baidu_province = p.address.province;
|
||||
baidu_city = p.address.city;
|
||||
baidu_region = p.address.district;
|
||||
baidu_lng = p.coords.longitude;
|
||||
baidu_lat = p.coords.latitude;
|
||||
baidu_address = p.address.street;
|
||||
doSavePageLog({page:page, lng:baidu_lng, lat:baidu_lat, province:baidu_province, city:baidu_city, region:baidu_region, address:baidu_address, device:device, model:model, pushClientId:pushClientId,channel:YOUFANG_CHANNEL,residenceTime:residenceTime});
|
||||
}, function(e){
|
||||
doSavePageLog({page:page, device:device, model:model, pushClientId:pushClientId,channel:YOUFANG_CHANNEL,residenceTime:residenceTime});
|
||||
},
|
||||
{
|
||||
provider:'baidu',
|
||||
enableHighAccuracy:true,
|
||||
coordsType:'bd09ll'
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
function doSavePageLog(data) {
|
||||
axios.post("/rest/log/save", data).then(function (response) {
|
||||
|
||||
}).catch(function (error) {
|
||||
console.log(error);
|
||||
});
|
||||
}
|
||||
|
||||
// 加载启动页信息
|
||||
function loadStartPage(city) {
|
||||
$.ajax({
|
||||
|
||||
@@ -82,12 +82,30 @@
|
||||
</span>
|
||||
</div>
|
||||
</div>-->
|
||||
<div class="content-block priceRecovery" id="price_feedback" v-bind:style="{display:isShow}">
|
||||
<p><label>估的准吗?</label></p>
|
||||
<p><small>您的反馈很重要,是我们努力的动力</small></p>
|
||||
<div class="row">
|
||||
<div class="col-50"><a class="button" v-on:click="feedback(1,$event)">高了</a></div>
|
||||
<div class="col-50"><a class="button" v-on:click="feedback(0,$event)">低了</a></div>
|
||||
<div class="topic" id="house_loan">
|
||||
<div class="topicContent row">
|
||||
<div class="card cardLoan col-50">
|
||||
<div class="card-content">
|
||||
<div class="card-content-inner">
|
||||
<p><i class="icon icon-loan01"></i><label>房抵贷</label></p>
|
||||
<p id="loanDiv1"><small>最高可贷额度</small></p>
|
||||
<p id="loanDiv2"><em id="loanPrice">{{loan_price}}</em><font>万</font></p>
|
||||
<p><span>月利率低至0.6%</span><br><span>最长5年</span></p>
|
||||
<p><a onclick="gotoLoanApply(1)" class="button button-round theme">立即申请</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card cardLoan col-50">
|
||||
<div class="card-content">
|
||||
<div class="card-content-inner">
|
||||
<p><i class="icon icon-loan02"></i><label>信用贷</label></p>
|
||||
<p><small>最高可贷额度</small></p>
|
||||
<p><em>50</em><font>万</font></p>
|
||||
<p><span>月利率0.42%起</span><br><span>最快当天放款</span></p>
|
||||
<p><a onclick="gotoLoanApply(2)" class="button button-round theme">立即申请</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list-block media-list mb05" id="addToMyHouse">
|
||||
@@ -105,7 +123,16 @@
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<a class="ad bb" href="#"><img id="img"></a>
|
||||
<div class="content-block priceRecovery" id="price_feedback" v-bind:style="{display:isShow}">
|
||||
<p><label>估的准吗?</label></p>
|
||||
<p><small>您的反馈很重要,是我们努力的动力</small></p>
|
||||
<div class="row">
|
||||
<div class="col-50"><a class="button" v-on:click="feedback(1,$event)">高了</a></div>
|
||||
<div class="col-50"><a class="button" v-on:click="feedback(0,$event)">低了</a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--<a class="ad bb" href="#"><img id="img"></a>-->
|
||||
<div class="topic">
|
||||
<div class="topicTitle" style="position:relative;">均价走势
|
||||
<div class="content-block">
|
||||
@@ -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 = {};
|
||||
|
||||
@@ -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 @@
|
||||
<i class="icon icon-evaluation03"></i>
|
||||
<span>我要置换</span>
|
||||
</div>
|
||||
<div onclick="gotoLoanApply()" id="gotoLoanApply" style="display: none;">
|
||||
<div onclick="gotoLoanApply(0)" id="gotoLoanApply" style="display: none;">
|
||||
<i class="icon icon-personal03"></i>
|
||||
<span>我要贷款</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="topic">
|
||||
<div class="topicContent row">
|
||||
<div class="card cardLoan col-50">
|
||||
<div class="card-content">
|
||||
<div class="card-content-inner">
|
||||
<p><i class="icon icon-loan01"></i><label>房抵贷</label></p>
|
||||
<p id="loanDiv1"><small>最高可贷额度</small></p>
|
||||
<p id="loanDiv2"><em id="loanPrice">{{loanPrice}}</em><font>万</font></p>
|
||||
<p><span>月利率低至0.6%</span><br><span>最长5年</span></p>
|
||||
<p><a onclick="gotoLoanApply(1)" class="button button-round theme">立即申请</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card cardLoan col-50">
|
||||
<div class="card-content">
|
||||
<div class="card-content-inner">
|
||||
<p><i class="icon icon-loan02"></i><label>信用贷</label></p>
|
||||
<p><small>最高可贷额度</small></p>
|
||||
<p><em>50</em><font>万</font></p>
|
||||
<p><span>月利率0.42%起</span><br><span>最快当天放款</span></p>
|
||||
<p><a onclick="gotoLoanApply(2)" class="button button-round theme">立即申请</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<a class="ad bb" href="#"><img id="img"></a>
|
||||
<div class="topic rentBox dn">
|
||||
@@ -335,6 +362,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script type="text/javascript" src="http://g.alicdn.com/sj/lib/zepto/zepto.js" charset="utf-8"></script>
|
||||
<script type="text/javascript" src="http://api.map.baidu.com/library/RichMarker/1.2/src/RichMarker_min.js "></script>
|
||||
<script>
|
||||
@@ -402,6 +430,7 @@ var baseInfo = new Vue({
|
||||
liveStatus:"",
|
||||
estatetype:"",
|
||||
totalPrice:"",
|
||||
loanPrice:"",
|
||||
price:"",
|
||||
totalScore:"",
|
||||
index:"",
|
||||
@@ -487,8 +516,13 @@ function init(){
|
||||
baseInfo.totalPrice=houseInfo.totalPrice;
|
||||
if(houseInfo.totalPrice==0){
|
||||
baseInfo.totalPrice = "暂无";
|
||||
$("#loanDiv1").hide();
|
||||
$("#loanDiv2").hide();
|
||||
}else{
|
||||
$("#loanDiv1").show();
|
||||
$("#loanDiv2").show();
|
||||
baseInfo.totalPrice = (houseInfo.totalPrice/10000).toFixed(2)
|
||||
baseInfo.loanPrice = ((houseInfo.totalPrice/10000)*0.7).toFixed(0);
|
||||
}
|
||||
baseInfo.price=houseInfo.price;
|
||||
baseInfo.totalScore=houseInfo.totalScore;
|
||||
@@ -634,13 +668,21 @@ $("#tabRentDiv").on("click", function () {
|
||||
function openNewView(viewHtml) {
|
||||
clicked(viewHtml,true,false,{},{city:oriCity,region:oriRegion,name:oriName})
|
||||
}
|
||||
function gotoLoanApply(){
|
||||
function gotoLoanApply(type){
|
||||
var eventType = "loanClick";
|
||||
var dataMap = {};
|
||||
dataMap["hid"]=houseId;
|
||||
saveBehaviorLog(eventType,dataMap); //保存用户点击事件
|
||||
|
||||
clicked('/views/loan/loanInfo.html',true,false,{},{houseId: houseId, city: oriCity, mobile: ""},function(){})
|
||||
//最大贷款限额
|
||||
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: houseId, city: oriCity, mobile: "",loanPrice:loanPrice,loanType:loanType},function(){})
|
||||
}
|
||||
function gotoRentManager(){
|
||||
|
||||
|
||||
@@ -93,13 +93,13 @@
|
||||
<div class="item-after">
|
||||
<div class="textAlignLeft" style="overflow:hidden;">
|
||||
<label class="label-checkbox item-content checkbox">
|
||||
<div class="item-media">
|
||||
<div class="item-media" id="loanTypeDiv1">
|
||||
<i class="icon icon-form-checkbox" value="1"></i>
|
||||
<label>房抵贷</label>
|
||||
</div>
|
||||
</label>
|
||||
<label class="label-checkbox item-content checkbox" style="margin-left:0.8rem;">
|
||||
<div class="item-media">
|
||||
<div class="item-media" id="loanTypeDiv2">
|
||||
<i class="icon icon-form-checkbox" value="0"></i>
|
||||
<label>信用贷</label>
|
||||
</div>
|
||||
|
||||