From fbfb382d789da8fad45249693dd70be11baddc3c Mon Sep 17 00:00:00 2001 From: guange <8863824@gmail.com> Date: Tue, 7 Jun 2016 17:22:57 +0800 Subject: [PATCH] base --- public/javascripts/wechat/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); }