|
@@ -131,7 +131,14 @@ define([ 'app/app' ], function(app) {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
$scope.userInfo = data;
|
|
$scope.userInfo = data;
|
|
|
- // 增加收藏功能的代码
|
|
|
|
|
|
|
+ $scope.sortEnterprises = $scope.userInfo.enterprises || [];
|
|
|
|
|
+ if ($scope.sortEnterprises.length) {
|
|
|
|
|
+ $scope.sortEnterprises.sort(function (a, b) {
|
|
|
|
|
+ return b.lastLoginTime - a.lastLoginTime;
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ // 增加收藏功能的代码
|
|
|
$rootScope.userInfo = data;
|
|
$rootScope.userInfo = data;
|
|
|
$rootScope.brandCount = 0;
|
|
$rootScope.brandCount = 0;
|
|
|
$rootScope.componentCount = 0;
|
|
$rootScope.componentCount = 0;
|