diff --git a/public/javascripts/wechat/app.js b/public/javascripts/wechat/app.js index 5dc1e90fd..a2351b367 100644 --- a/public/javascripts/wechat/app.js +++ b/public/javascripts/wechat/app.js @@ -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); }