Merge branch 'YOUFANGAPP1.1' of 192.168.0.27:dev0/youfang-app into YOUFANGAPP1.1

This commit is contained in:
gongjin
2018-04-16 16:38:47 +08:00
3 changed files with 15 additions and 5 deletions
@@ -257,7 +257,10 @@ $.config = {router: false}
house_price.words="元"
house_price.compare_money=h.compareMoney
}else{
house_price.compare_money="相等"
//house_price.compare_money="相等"
house_price.compare_word="高"
house_price.words="元"
house_price.compare_money=0
}
}
@@ -246,8 +246,8 @@ function constructHtmlContent(results, xqOneMonthUpDownRangeMap, cityAvgPriceMap
var cityAvgPriceKey = result.city;
//取得对应城市的value
var cityAvgPriceValue = cityAvgPriceMap[cityAvgPriceKey];
if(!isNaN(cityAvgPriceValue)){
if(parseInt(cityAvgPriceValue)>=parseInt(result.price)){
if(!isNaN(cityAvgPriceValue) && result.price>0){
if(parseInt(cityAvgPriceValue)>parseInt(result.price)){
htmlContent = htmlContent + "<div>相比"+result.city+"均价: <em class='down'>低"+(parseInt(cityAvgPriceValue)-parseInt(result.price))+"元</em></div>";
}else{
htmlContent = htmlContent + "<div>相比"+result.city+"均价: <em class='up'>高"+(parseInt(result.price)-parseInt(cityAvgPriceValue))+"元</em></div>";
+9 -2
View File
@@ -291,12 +291,19 @@ function addItems(number, lastIndex) {
html = html + "<div class='item-inner'>";
var name = "游客"
var name = null;
if(vo.wxName){
name = vo.wxName
}else if(vo.name){
}
if(name == null){
name = vo.name
}
if(name == null){
name = vo.mobile
}
if(name == null){
name = "游客"
}
html = html + "<div class='item-title-row'>"+
"<div class='item-title'>"+name+"</div>"+
"<div class='item-after'><span data-cid='"+vo.id+"'><i class='icon icon-praise-grey01'></i><label>"+numberConver(vo.praiseCount)+"</label></span></div>"+