This commit is contained in:
guange 2016-06-07 17:22:57 +08:00
parent f993fa87ff
commit fbfb382d78
1 changed files with 3 additions and 3 deletions

View File

@ -67,7 +67,7 @@ app.factory('rms', function(){
return {save: save, get: get};
});
app.controller('ActivityController',function($anchorScroll, $location,$scope, $http, $document,$window, auth, rms, common){
app.controller('ActivityController',function($anchorScroll, $location,$scope, $http, auth, rms, common){
$scope.replaceUrl = function(url){
return url;
};
@ -80,7 +80,7 @@ app.controller('ActivityController',function($anchorScroll, $location,$scope, $h
if($scope.activities.length>0){
$timeout(function () {
$window.scroll(0,rms.get("yoffset"));
window.scroll(0,rms.get("yoffset"));
});
@ -135,7 +135,7 @@ app.controller('ActivityController',function($anchorScroll, $location,$scope, $h
//跳到详情页
$scope.goDetail = function(type, act_id,id){
rms.save("yoffset", $document.body.scrollHeight);
rms.save("yoffset", window.document.body.scrollHeight);
$location.path('/'+type+'/'+act_id);
}