guange_dev
guange 9 years ago
parent 8fb88dfdea
commit f993fa87ff

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

Loading…
Cancel
Save