首页加载修改
This commit is contained in:
@@ -75,7 +75,7 @@
|
||||
</span>
|
||||
<span>
|
||||
<em><strong>{{regionRank}}</strong></em>
|
||||
<label>区域涨跌排名</label>
|
||||
<label>区域均价排名</label>
|
||||
</span>
|
||||
<span>
|
||||
<em><strong>{{priceRate}}</strong>%<i class="icon" id="priceRateTypeClass"></i></em>
|
||||
@@ -201,7 +201,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list-block media-list">
|
||||
<div class="list-block media-list" id="nearDistrictContainer">
|
||||
<div class="list-block">
|
||||
<ul class="list-container">
|
||||
</ul>
|
||||
@@ -1207,6 +1207,7 @@ var scoreCount = 0;
|
||||
var lat = 0;
|
||||
var lng = 0;
|
||||
var address = "";
|
||||
var timestamp1 = new Date().getTime();
|
||||
document.addEventListener('plusready', onPlusReady, false);
|
||||
//扩展API加载完毕,现在可以正常调用扩展API
|
||||
function onPlusReady(){
|
||||
@@ -1354,6 +1355,16 @@ function initBaseInfo(city,region,address,lat,lng){
|
||||
$(".loadingBg").hide();
|
||||
})
|
||||
.catch(function (error) {
|
||||
setTimeout(function(){
|
||||
mui.init();
|
||||
mui.openWindow({
|
||||
url: 'error.html',
|
||||
id:'error.html',
|
||||
extras:{
|
||||
//扩展参数
|
||||
}
|
||||
});
|
||||
},10000)
|
||||
console.log(error);
|
||||
});
|
||||
initNearDistricts(cityParam,latParam,lngParam,regionParam,0,0,0,"");
|
||||
@@ -1817,6 +1828,7 @@ function addItems(number, lastIndex) {
|
||||
// 添加新条目
|
||||
if(lastIndex2 == 0){
|
||||
$('.infinite-scroll-bottom .list-container').html(html);
|
||||
$("#nearDistrictContainer").show();
|
||||
}else{
|
||||
$('.infinite-scroll-bottom .list-container').append(html);
|
||||
}
|
||||
@@ -2069,7 +2081,7 @@ function req(cityStr){
|
||||
initRegionSelect(city);
|
||||
$(".region a").text('不限');
|
||||
$("#select_price_div a").text('不限');
|
||||
potenialIndex(city,sort);
|
||||
//potenialIndex(city,sort);
|
||||
}
|
||||
|
||||
function openUrl(url){
|
||||
@@ -2395,6 +2407,7 @@ function getCityPriceLevel(cityParam){
|
||||
}
|
||||
|
||||
function getDistrictList(cityParam,latParam,lngParam,regionParam,order,minPrice,maxPrice,tag){
|
||||
$("#nearDistrictContainer").hide();
|
||||
latParam=0;
|
||||
lngParam=0;
|
||||
axios.get(BASE_PATH+"/rest/index/districtList", {
|
||||
|
||||
Reference in New Issue
Block a user