This commit is contained in:
guange 2016-06-07 17:18:28 +08:00
parent 8fb88dfdea
commit f993fa87ff
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}