|
|
@@ -9,7 +9,7 @@ define(['app/app'], function(app) {
|
|
|
var hideBankFilter = $filter("hideBankFilter");
|
|
|
|
|
|
//历史记录的状态
|
|
|
- var hiStatus= SessionService.getCookie("buyCenter");
|
|
|
+ var hiStatus= SessionService.get("buyCenter");
|
|
|
|
|
|
$scope.status = hiStatus == null ? 'pay-history' : hiStatus;
|
|
|
|
|
|
@@ -17,7 +17,7 @@ define(['app/app'], function(app) {
|
|
|
$scope.toggleStatus = function(status) {
|
|
|
if($scope.status != status) {
|
|
|
$scope.status = status;
|
|
|
- SessionService.setCookie('buyCenter', status);
|
|
|
+ SessionService.set('buyCenter', status);
|
|
|
loadData();
|
|
|
}
|
|
|
};
|
|
|
@@ -588,7 +588,7 @@ define(['app/app'], function(app) {
|
|
|
|
|
|
$rootScope.$on('$stateChangeStart',function(event,toState,toParams,fromState,fromParams){
|
|
|
if(fromState.name == 'pay_center' || toState.name == 'pay_center'){
|
|
|
- SessionService.removeCookie("buyCenter");
|
|
|
+ SessionService.unset("buyCenter");
|
|
|
}
|
|
|
});
|
|
|
}]);
|