diff --git a/fangija-zsyf/yfindex.html b/fangija-zsyf/yfindex.html index aaff9b5..32836f6 100644 --- a/fangija-zsyf/yfindex.html +++ b/fangija-zsyf/yfindex.html @@ -75,7 +75,7 @@ {{regionRank}} - + {{priceRate}}% @@ -201,7 +201,7 @@ -
+
@@ -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", {