Merge branch 'YOUFANGAPP1.1' of 192.168.0.27:dev0/youfang-app into YOUFANGAPP1.1
This commit is contained in:
@@ -24,10 +24,9 @@ function addEstate(number, lastIndex) {
|
|||||||
// 生成新条目的HTML
|
// 生成新条目的HTML
|
||||||
var html = '';
|
var html = '';
|
||||||
$.each(data['results'], function(i){
|
$.each(data['results'], function(i){
|
||||||
var tag = this.tag;
|
var tags = this.tags;
|
||||||
var tagStr = "";
|
var tagStr = "";
|
||||||
if(tag){
|
if(tags!=null&&tags.length>0){
|
||||||
var tags = tag.split("_")
|
|
||||||
for(var j=0;j<tags.length;j++){
|
for(var j=0;j<tags.length;j++){
|
||||||
if(j<3){
|
if(j<3){
|
||||||
var tag = tags[j];
|
var tag = tags[j];
|
||||||
|
|||||||
@@ -70,18 +70,15 @@ function mhAddItems(itemsPerLoad, lastIndex, dataObj, xqOneMonthUpDownRangeMap,
|
|||||||
var html = '';
|
var html = '';
|
||||||
for(var i in dataObj) {
|
for(var i in dataObj) {
|
||||||
var result = dataObj[i];
|
var result = dataObj[i];
|
||||||
var tempTotalPrice = result.totalPrice;
|
|
||||||
//可抵押贷额度
|
//可抵押贷额度
|
||||||
var tempTotalPricePercent;
|
var tempTotalPricePercent = (result.totalPrice) == 0?"暂无":(parseFloat(result.totalPrice)*0.7/10000).toFixed(2)+"万";
|
||||||
//考虑是否为数字,加强逻辑判断
|
var tempTotalPrice = (result.totalPrice) == 0?"暂无":(parseFloat(result.totalPrice)/10000).toFixed(2)+"万";
|
||||||
if(!isNaN(tempTotalPrice)){
|
|
||||||
//转换成元,四舍五入
|
|
||||||
tempTotalPricePercent = (parseFloat(tempTotalPrice)*0.7/10000).toFixed(2);
|
|
||||||
tempTotalPrice = (parseFloat(tempTotalPrice)/10000).toFixed(2);
|
|
||||||
}
|
|
||||||
html += '<li><a href="#" onclick="gotoHouseDetail(\''+result.id+'\')" class="item-content">';
|
html += '<li><a href="#" onclick="gotoHouseDetail(\''+result.id+'\')" class="item-content">';
|
||||||
html += "<div class='item-inner'><div class='item-title-row'>";
|
html += "<div class='item-inner'><div class='item-title-row'>";
|
||||||
html += "<div class='item-title'><label>"+result.name+"</label> <em>"+tempTotalPrice+"万</em><span class='tag'>";
|
html += "<div class='item-title'><label>"+result.name+"</label> <em>"+tempTotalPrice+"</em><span class='tag'>";
|
||||||
|
|
||||||
if(result.liveStatus!=null && result.liveStatus.length>0){
|
if(result.liveStatus!=null && result.liveStatus.length>0){
|
||||||
html += "<small>"+result.liveStatus+"</small></span></div>";
|
html += "<small>"+result.liveStatus+"</small></span></div>";
|
||||||
}else{
|
}else{
|
||||||
@@ -116,7 +113,7 @@ function mhAddItems(itemsPerLoad, lastIndex, dataObj, xqOneMonthUpDownRangeMap,
|
|||||||
html += "<div>下跌概率: <em class='down'>暂无<i class='icon'></i></em></div>";
|
html += "<div>下跌概率: <em class='down'>暂无<i class='icon'></i></em></div>";
|
||||||
}
|
}
|
||||||
|
|
||||||
html += "<div>抵押可贷额度: <em style='color:#EB5F34;'>"+tempTotalPricePercent+"万</em></div></div></div></a>";
|
html += "<div>抵押可贷额度: <em style='color:#EB5F34;'>"+tempTotalPricePercent+"</em></div></div></div></a>";
|
||||||
|
|
||||||
if(result.level!=null && result.level == 1){
|
if(result.level!=null && result.level == 1){
|
||||||
html += "<a class='add alert-text-title'><i class='icon icon-houseLevel'></i>豪宅级</a>";
|
html += "<a class='add alert-text-title'><i class='icon icon-houseLevel'></i>豪宅级</a>";
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
<a class="time" onclick="skip()">跳过 <span id="time">5</span></a>
|
<a class="time" onclick="skip()">跳过 <span id="time">5</span></a>
|
||||||
<img src="images/start.png">
|
<img src="images/start.png">
|
||||||
<div class="content-block">
|
<div class="content-block">
|
||||||
<p><a onclick="clicked(BASE_PATH+'/fsh/form',true);" class="button button-big button-fill button-round theme" id="test_btn">立即测试<i class="mui-icon mui-icon-arrowright"></i></a></p>
|
<p><a onclick="clicked('/views/house/add.html',true,false,{},{})" class="button button-big button-fill button-round theme" id="test_btn">立即测试<i class="mui-icon mui-icon-arrowright"></i></a></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<title>位置及周边</title>
|
<title>位置及周边详情</title>
|
||||||
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
|
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
|
||||||
<link rel="shortcut icon" href="/favicon.ico">
|
<link rel="shortcut icon" href="/favicon.ico">
|
||||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
|
|||||||
@@ -226,7 +226,7 @@ $.config = {router: false}
|
|||||||
if(h.totalPrice==0){
|
if(h.totalPrice==0){
|
||||||
house_price.total_price = "暂无";
|
house_price.total_price = "暂无";
|
||||||
}else{
|
}else{
|
||||||
house_price.total_price = (h.totalPrice/10000).toFixed(0)
|
house_price.total_price = (h.totalPrice/10000).toFixed(2)
|
||||||
house_price.w = "万"
|
house_price.w = "万"
|
||||||
}
|
}
|
||||||
house_price.avg_price = h.avgPrice==0?"暂无":h.avgPrice+"元/㎡"
|
house_price.avg_price = h.avgPrice==0?"暂无":h.avgPrice+"元/㎡"
|
||||||
|
|||||||
@@ -314,18 +314,15 @@ function addItems(itemsPerLoad, lastIndex, dataObj, xqOneMonthUpDownRangeMap, xq
|
|||||||
}
|
}
|
||||||
for(var i in dataObj) {
|
for(var i in dataObj) {
|
||||||
var result = dataObj[i];
|
var result = dataObj[i];
|
||||||
var tempTotalPrice = result.totalPrice;
|
|
||||||
//可抵押贷额度
|
//可抵押贷额度
|
||||||
var tempTotalPricePercent;
|
var tempTotalPricePercent = (result.totalPrice) == 0?"暂无":(parseFloat(result.totalPrice)*0.7/10000).toFixed(2)+"万";
|
||||||
//考虑是否为数字,加强逻辑判断
|
var tempTotalPrice = (result.totalPrice) == 0?"暂无":(parseFloat(result.totalPrice)/10000).toFixed(2)+"万";
|
||||||
if(!isNaN(tempTotalPrice)){
|
|
||||||
//转换成元,四舍五入
|
|
||||||
tempTotalPricePercent = (parseFloat(tempTotalPrice)*0.7/10000).toFixed(2);
|
|
||||||
tempTotalPrice = (parseFloat(tempTotalPrice)/10000).toFixed(2);
|
|
||||||
}
|
|
||||||
html += '<li><a href="#" onclick="gotoHouseDetail(\''+result.id+'\')" class="item-content">';
|
html += '<li><a href="#" onclick="gotoHouseDetail(\''+result.id+'\')" class="item-content">';
|
||||||
html += "<div class='item-inner'><div class='item-title-row'>";
|
html += "<div class='item-inner'><div class='item-title-row'>";
|
||||||
html += "<div class='item-title'><label>"+result.name+"</label> <em>"+tempTotalPrice+"万</em><span class='tag'>";
|
html += "<div class='item-title'><label>"+result.name+"</label> <em>"+tempTotalPrice+"</em><span class='tag'>";
|
||||||
|
|
||||||
if(result.liveStatus!=null && result.liveStatus.length>0){
|
if(result.liveStatus!=null && result.liveStatus.length>0){
|
||||||
html += "<small>"+result.liveStatus+"</small></span></div>";
|
html += "<small>"+result.liveStatus+"</small></span></div>";
|
||||||
}else{
|
}else{
|
||||||
@@ -359,7 +356,7 @@ function addItems(itemsPerLoad, lastIndex, dataObj, xqOneMonthUpDownRangeMap, xq
|
|||||||
html += "<div>下跌概率: <em class='down'>暂无<i class='icon'></i></em></div>";
|
html += "<div>下跌概率: <em class='down'>暂无<i class='icon'></i></em></div>";
|
||||||
}
|
}
|
||||||
|
|
||||||
html += "<div>抵押可贷额度: <em style='color:#EB5F34;'>"+tempTotalPricePercent+"万</em></div></div></div></a>";
|
html += "<div>抵押可贷额度: <em style='color:#EB5F34;'>"+tempTotalPricePercent+"</em></div></div></div></a>";
|
||||||
|
|
||||||
if(result.level!=null && result.level == 1){
|
if(result.level!=null && result.level == 1){
|
||||||
html += "<a class='add alert-text-title'><i class='icon icon-houseLevel'></i>豪宅级</a>";
|
html += "<a class='add alert-text-title'><i class='icon icon-houseLevel'></i>豪宅级</a>";
|
||||||
|
|||||||
@@ -204,12 +204,6 @@ function constructHtmlContent(results, xqOneMonthUpDownRangeMap, cityAvgPriceMap
|
|||||||
if(results!=null && results.length>0){
|
if(results!=null && results.length>0){
|
||||||
for(var i in results){
|
for(var i in results){
|
||||||
var result = results[i];
|
var result = results[i];
|
||||||
var tempTotalPrice = result.totalPrice;
|
|
||||||
//考虑是否为数字,加强逻辑判断
|
|
||||||
if(!isNaN(tempTotalPrice)){
|
|
||||||
//转换成元,四舍五入
|
|
||||||
tempTotalPrice = (parseFloat(tempTotalPrice)/10000).toFixed(2);
|
|
||||||
}
|
|
||||||
htmlContent = htmlContent +'<li><a onclick="openReportWindow(\''+result.id+'\')" class="item-content">';
|
htmlContent = htmlContent +'<li><a onclick="openReportWindow(\''+result.id+'\')" class="item-content">';
|
||||||
htmlContent = htmlContent +"<div class='item-inner'><div class='item-title-row'>";
|
htmlContent = htmlContent +"<div class='item-inner'><div class='item-title-row'>";
|
||||||
htmlContent = htmlContent +"<div class='item-title'><label>"+result.name+"</label><span class='span01'>"+result.city+"-"+result.region+"</span></div>";
|
htmlContent = htmlContent +"<div class='item-title'><label>"+result.name+"</label><span class='span01'>"+result.city+"-"+result.region+"</span></div>";
|
||||||
@@ -231,7 +225,7 @@ function constructHtmlContent(results, xqOneMonthUpDownRangeMap, cityAvgPriceMap
|
|||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
//为非数字清空放空格
|
//为非数字清空放空格
|
||||||
htmlContent = htmlContent + "<div>近30天涨跌幅: <em class='down'>"+ +"%<i class='icon icon-arrow-green'></i></em></div>";
|
htmlContent = htmlContent + "<div>近30天涨跌幅: <em class='down'>暂无<i class='icon'></i></em></div>";
|
||||||
}
|
}
|
||||||
|
|
||||||
//相比对于城市均价
|
//相比对于城市均价
|
||||||
@@ -248,8 +242,11 @@ function constructHtmlContent(results, xqOneMonthUpDownRangeMap, cityAvgPriceMap
|
|||||||
//为非数字清空放空格
|
//为非数字清空放空格
|
||||||
htmlContent = htmlContent + "<div>相比"+result.city+"均价: <em class='down'>暂无</em></div>";
|
htmlContent = htmlContent + "<div>相比"+result.city+"均价: <em class='down'>暂无</em></div>";
|
||||||
}
|
}
|
||||||
htmlContent = htmlContent + "<div>均价: <em class='em02'>"+result.price+"元/㎡</em></div>";
|
var tempTotalPrice = (result.totalPrice) == 0?"暂无</strong>":(parseFloat(result.totalPrice)/10000).toFixed(2)+"</strong>万";
|
||||||
htmlContent = htmlContent + "<div class='price'><em><strong>"+tempTotalPrice+"</strong>万</em></div>";
|
var tempPrice = (result.price) == 0?"暂无":result.price+"元/㎡";
|
||||||
|
|
||||||
|
htmlContent = htmlContent + "<div>均价: <em class='em02'>"+tempPrice+"</em></div>";
|
||||||
|
htmlContent = htmlContent + "<div class='price'><em><strong>"+tempTotalPrice+"</em></div>";
|
||||||
htmlContent = htmlContent + "</div></div></a><a class='add open-vertical-modal' id="+result.id+" uid="+result.uid+" houseStatus="+result.houseStatus+"><i class='icon icon-add'></i>添加管理</a>"
|
htmlContent = htmlContent + "</div></div></a><a class='add open-vertical-modal' id="+result.id+" uid="+result.uid+" houseStatus="+result.houseStatus+"><i class='icon icon-add'></i>添加管理</a>"
|
||||||
htmlContent = htmlContent +"</li>";
|
htmlContent = htmlContent +"</li>";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<title>智能选房</title>
|
<title>智能选房匹配列表</title>
|
||||||
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
|
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
|
||||||
<link rel="shortcut icon" href="/favicon.ico">
|
<link rel="shortcut icon" href="/favicon.ico">
|
||||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<title>智能选房</title>
|
<title>智能选房输入页面</title>
|
||||||
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
|
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
|
||||||
<link rel="shortcut icon" href="/favicon.ico">
|
<link rel="shortcut icon" href="/favicon.ico">
|
||||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<title>智能选房</title>
|
<title>智能选房地图</title>
|
||||||
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
|
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
|
||||||
<link rel="shortcut icon" href="/favicon.ico">
|
<link rel="shortcut icon" href="/favicon.ico">
|
||||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<title>我的收藏</title>
|
<title>我的咨询收藏</title>
|
||||||
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
|
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
|
||||||
<link rel="shortcut icon" href="/favicon.ico">
|
<link rel="shortcut icon" href="/favicon.ico">
|
||||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
|
|||||||
@@ -1740,7 +1740,7 @@ function addItems(number, lastIndex) {
|
|||||||
'</div>';
|
'</div>';
|
||||||
}
|
}
|
||||||
if(dataObj[i].type=="推荐小区"){
|
if(dataObj[i].type=="推荐小区"){
|
||||||
html += '<div class="card cardInfo cardInfo02" onclick="openUrl(\''+BASE_PATH+'/district/details?city='+dataObj[i].recommendDistrictCity+'®ion='+dataObj[i].recommendDistrictRegion+'&name='+dataObj[i].recommendDistrictName+'\')">'+
|
html += '<div class="card cardInfo cardInfo02" onclick="openDistWindow(\''+dataObj[i].recommendDistrictCity+'\',\''+dataObj[i].recommendDistrictRegion+'\',\''+dataObj[i].recommendDistrictName+'\')">'+
|
||||||
'<div class="card-content">'+
|
'<div class="card-content">'+
|
||||||
'<div class="list-block media-list"><ul><li class="item-content">'+
|
'<div class="list-block media-list"><ul><li class="item-content">'+
|
||||||
'<div class="item-media"><img src='+dataObj[i].coverImg+'></div>'+
|
'<div class="item-media"><img src='+dataObj[i].coverImg+'></div>'+
|
||||||
@@ -2622,7 +2622,6 @@ function openIntelligentHouseView() {
|
|||||||
}
|
}
|
||||||
function openDistWindow(city, region, name){
|
function openDistWindow(city, region, name){
|
||||||
clicked('views/district/detail.html',true,false,{},{city:city,region:region,name:name});
|
clicked('views/district/detail.html',true,false,{},{city:city,region:region,name:name});
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
Reference in New Issue
Block a user