diff --git a/fangija-zsyf/main.html b/fangija-zsyf/main.html index cb018ca..cc63ce0 100644 --- a/fangija-zsyf/main.html +++ b/fangija-zsyf/main.html @@ -8,7 +8,7 @@ - + @@ -42,7 +44,13 @@ -
+
+ +
+
+ +
+
{{topMonth}}月份均价 @@ -114,6 +122,8 @@
+ +
@@ -1550,6 +1560,9 @@ function initNews(page){ lastIndex = $('.cardInfo').length; itemsPerLoad = response.data.data.list.length; addItems(itemsPerLoad, lastIndex); + + + $(".pull-to-refresh-layer").addClass("dn"); /*if(dataObj.length>5){ $(".infinite-scroll-preloader").show(); }else{ @@ -2001,6 +2014,23 @@ $(document).on('infinite', '.infinite-scroll-bottom',function() { }, 500); }); + + +// 添加'refresh'监听器 +$(document).on('refresh', '.pull-to-refresh-content',function(e) { + if($("#input_city").text()=="上海"){ + $(".pull-to-refresh-layer").removeClass("dn"); + page = 1; + dataObj = []; + $("#newsList").html(""); + initNews(page); + // 加载完毕需要重置 + $.pullToRefreshDone('.pull-to-refresh-content'); + } +}); + + + function regionChange(region){ var text = region; var length = region.length; @@ -2664,6 +2694,9 @@ $("body").delegate("#hotList ul li", "click", function () { //clicked(url, true); }); + + +