This commit is contained in:
xuhe@fangjia.com
2018-05-30 11:33:11 +08:00
parent b465d67f59
commit 48c2fb6d31
2 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -2149,6 +2149,7 @@ $(document).on('refresh', '.pull-to-refresh-content',function(e) {
$.attachInfiniteScroll($('.infinite-scroll'));
initNews(page);
}
$.destroyPullToRefresh('.pull-to-refresh-content')
// 加载完毕需要重置
$.pullToRefreshDone('.pull-to-refresh-content');
});
@@ -2310,10 +2311,10 @@ function changeCity(cityStr){
}
if(isHaveNews){
$.initPullToRefresh(".content")
$("#ShangHaiDiv").show();
$("#otherCityDiv").hide();
}else{
alert("2")
$("#ShangHaiDiv").hide();
$("#otherCityDiv").show();
$.destroyPullToRefresh(".content")