angular.module('push') .controller('activityNoticeCtrl', function ($scope, $stateParams, ActivityService) { /* $scope.setStatusBar(0);*/ var activityid = $stateParams.activityid; $scope.title = $stateParams.title; $scope.unreadnum = 0; // 获取活动下通知信息 var getNotifyList = function () { ActivityService.getNotifyList(activityid, 1).then(function (response) { // console.log(response); $scope.notifylist = response.list; $scope.unreadnum = response.unReadNotifyTotalCount; }, function () { }) }; getNotifyList(); $scope.goNoticeDetail = function (notifyid) { $scope.go("activityNoticeDetail", {notifyid: notifyid}); } });