This commit is contained in:
xuhe@fangjia.com
2018-05-03 18:23:15 +08:00
parent e219e95e63
commit 79f519e06b
3 changed files with 22 additions and 6 deletions
+2 -2
View File
@@ -1,9 +1,9 @@
/**服务端地址**/
//var BASE_PATH = "http://youfang.fangjia.com";
//var BASE_PATH = "http://192.168.10.128:8084";
//var BASE_PATH = "http://192.168.10.47:8086";
var BASE_PATH = "http://192.168.10.47:8086";
//var BASE_PATH = "http://192.168.10.161:8084";
var BASE_PATH = "http://192.168.10.53:8084";
//var BASE_PATH = "http://192.168.10.53:8084";
//var BASE_PATH = "http://192.168.10.161:8084";
//var BASE_PATH = "http://192.168.10.170:8084";
//var BASE_PATH = "http://192.168.10.171:8084";
+19 -4
View File
@@ -34,6 +34,9 @@
<!--<button class="button button-link button-nav pull-left" onclick="history.go(-1)">
<span class="icon icon-left"></span>
</button>-->
<button class="button button-link button-nav pull-right" id="shareButton" onclick="shareHref()">
<span class="icon icon-share"></span>
</button>
<h1 class="title">房产行情</h1>
</header>
<div class="content">
@@ -1211,11 +1214,17 @@ $.config = {router: false}
<script type="text/javascript" src="../component/cityChooseComponent.js"></script>
<script type="text/javascript" src="../../js/echarts.js" charset="utf-8"></script>
<script type="text/javascript" src="../../js/highcharts-4.2.3.js" charset="utf-8"></script>
<script type="text/javascript" src="../../js/shara/sharaMine.js" ></script>
<script type="text/javascript" src="../../js/city.js" ></script>
<script>
var shareUrl = BASE_PATH+"/house/cityShare?city=全国";
var sharehrefTitle = "房产行情,小区价格,房租信息全掌握";
var sharehrefDes = "客观里面请!";
//var shareId='全国';
var picUrl = '_www/img/default_share.png';
var date = new Date();
var year = date.getFullYear()+'年';
var month = date.getMonth()+1+'月';
@@ -1390,8 +1399,7 @@ $.config = {router: false}
$("#citySearchInp").bind('keyup', function() {
search();
});
updateSerivces();
}
//加载首页全国数据
@@ -1485,6 +1493,12 @@ $(document).ready(function () {
});
$("a[href='#tabQuotation1'],a[href='#tabQuotation0']").click(function(){
shareUrl = BASE_PATH+"/house/cityShare?city="+$(this).text();
if($(this).text()=="添加"){
$("#shareButton").hide();
}else{
$("#shareButton").show();
}
$("#tabCityDiv a").removeClass("active");
$("#contentTabDiv > .tab").removeClass("active");
$("#cityInfo").hide()
@@ -1493,7 +1507,8 @@ $("a[href='#tabQuotation1'],a[href='#tabQuotation0']").click(function(){
function clickCity(val){
shareUrl = BASE_PATH+"/house/cityShare?city="+val;
$("#shareButton").show();
city = val;
plus.nativeUI.showWaiting();
+1
View File
@@ -1876,6 +1876,7 @@ function addItems(number, lastIndex) {
html += '<i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i><i class="icon icon-star01"></i>';
}
html += '</span></div><div class="card-footer" style="margin-top:-0.75rem;">';
if(dataObj[i].recommendCityYoy){
html += '<span>近1年涨跌幅:';
if(dataObj[i].recommendCityYoy>0){