|
|
@@ -2023,22 +2023,39 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
};
|
|
|
});
|
|
|
}]);
|
|
|
- app.controller('NoticeCtrl', ['$scope', 'SnapshotService', 'AuthenticationService', function ($scope, SnapshotService, AuthenticationService) {
|
|
|
+ app.controller('NoticeCtrl', ['$scope', 'SnapshotService', 'AuthenticationService', 'AccountEnterprise', function ($scope, SnapshotService, AuthenticationService, AccountEnterprise) {
|
|
|
AuthenticationService.getAuthentication().success(function (data) {
|
|
|
$scope.loading = false;
|
|
|
- $scope.useruu = data.userUU;
|
|
|
+ $scope.noticesId = 325; // 帮助中心指定平台ID号
|
|
|
|
|
|
- SnapshotService.getNotice(7, $scope.useruu, function (data) { //5表示首页显示的公告条数
|
|
|
- $scope.notices = data;
|
|
|
+ // SnapshotService.getNotice(7, $scope.useruu, function (data) { //5表示首页显示的公告条数
|
|
|
+ // $scope.notices = data;
|
|
|
+ // });
|
|
|
+
|
|
|
+ AccountEnterprise.getB2cUrl({}, function(data) {
|
|
|
+ $scope.toB2cLink = data.url;
|
|
|
+ if($scope.toB2cLink) {
|
|
|
+ $.ajax({
|
|
|
+ url:$scope.toB2cLink + '/api/help-service/issues?navId=' + $scope.noticesId,
|
|
|
+ type:"get",
|
|
|
+ success:function(data){
|
|
|
+ $scope.notices = data || [];
|
|
|
+ },
|
|
|
+ error:function(data){
|
|
|
+ console.log(data);
|
|
|
+ $scope.notices = [];
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
});
|
|
|
|
|
|
/**
|
|
|
* 设置单据阅读状态
|
|
|
* @param id
|
|
|
*/
|
|
|
- $scope.setReadStatus = function(id) {
|
|
|
- SnapshotService.setNoticeStatusAfterRead(id, $scope.useruu);
|
|
|
- }
|
|
|
+ // $scope.setReadStatus = function(id) {
|
|
|
+ // SnapshotService.setNoticeStatusAfterRead(id, $scope.useruu);
|
|
|
+ // }
|
|
|
|
|
|
/**
|
|
|
* 判断是否当天时间
|