更多修复

This commit is contained in:
guange 2016-05-31 21:15:31 +08:00
parent c9eddad45d
commit c26d544772
1 changed files with 4 additions and 2 deletions

View File

@ -103,7 +103,7 @@ app.controller('ActivityController',function($anchorScroll, $location,$scope, $h
if (page <= 0 && $scope.activities.length >0){ //应该是返回过来的
loadPageConfig();
var yOffset = rms.get("yoffset");
$location.hash(yOffset);
$location.yOffset = yOffset;
return;
}
@ -144,7 +144,9 @@ app.controller('ActivityController',function($anchorScroll, $location,$scope, $h
//跳到详情页
$scope.goDetail = function(type, act_id,id){
rms.save("yoffset", 'act_'+id);
console.log($anchorScroll.yOffset);
rms.save("yoffset", $anchorScroll.yOffset);
$location.path('/'+type+'/'+act_id);
}