diff --git a/public/javascripts/wechat/app.js b/public/javascripts/wechat/app.js index 91dc41015..5dc1e90fd 100644 --- a/public/javascripts/wechat/app.js +++ b/public/javascripts/wechat/app.js @@ -107,7 +107,7 @@ app.controller('ActivityController',function($anchorScroll, $location,$scope, $h rms.save("activities", $scope.activities); - rms.save("yoffset", $document.body.scrollHeight); + $scope.has_more = (response.data.count + response.data.page * 10) < response.data.all_count; @@ -135,7 +135,7 @@ app.controller('ActivityController',function($anchorScroll, $location,$scope, $h //跳到详情页 $scope.goDetail = function(type, act_id,id){ - rms.save("yoffset",'act_'+id); + rms.save("yoffset", $document.body.scrollHeight); $location.path('/'+type+'/'+act_id); }