Commit 6e7a396f by xujia

追加点击更多

parent a01f718e
......@@ -83,7 +83,7 @@
contentH =$(_this).get(0).scrollHeight,//内容高度
scrollTop =$(_this).scrollTop();//滚动高度
if(scrollTop>=contentH -viewH){ //到达底部100px时,加载新内容
$scope.limitCount += 9;
$scope.getMore();
}
}
}, 10);
......@@ -92,10 +92,13 @@
if(panelH.get(0).scrollHeight>panelH.height() || event.originalEvent.deltaY<=0)return;
if($scope.isShow() && $scope.filterResult.length>0){
$timeout(function() {
$scope.limitCount += 9;
$scope.getMore();
}, 10);
}
});
$scope.getMore = function(){
$scope.limitCount += 9;
}
$scope.gopage = function(id,flag){
if(flag){
isLog = true;
......
......@@ -32,7 +32,7 @@
</div>
</div>
</div>
<div class="more" ng-show="isShow() && filterResult.length>0"><span>滑动加载更多(共{{resultList.length}}个产品)</span></div>
<div class="more" ng-click="getMore()" ng-show="isShow() && filterResult.length>0"><span>滑动/点击加载更多(共{{resultList.length}}个产品)</span></div>
<div class="noData" ng-if="resultList.length==0">
<span></span>
<div>暂无产品</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment