base
This commit is contained in:
parent
f993fa87ff
commit
fbfb382d78
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue