activityNoticeCtrl.js 732 B

12345678910111213141516171819202122232425
  1. angular.module('push')
  2. .controller('activityNoticeCtrl', function ($scope, $stateParams, ActivityService) {
  3. /* $scope.setStatusBar(0);*/
  4. var activityid = $stateParams.activityid;
  5. $scope.title = $stateParams.title;
  6. $scope.unreadnum = 0;
  7. // 获取活动下通知信息
  8. var getNotifyList = function () {
  9. ActivityService.getNotifyList(activityid, 1).then(function (response) {
  10. // console.log(response);
  11. $scope.notifylist = response.list;
  12. $scope.unreadnum = response.unReadNotifyTotalCount;
  13. }, function () {
  14. })
  15. };
  16. getNotifyList();
  17. $scope.goNoticeDetail = function (notifyid) {
  18. $scope.go("activityNoticeDetail", {notifyid: notifyid});
  19. }
  20. });