activitiesModuleRoute.js 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. app.config(['$stateProvider', function ($stateProvider) {
  2. $stateProvider
  3. /*活动大厅*/
  4. .state('activitiesHoll', {//活动大厅
  5. cache: false,
  6. url: '/activitiesHoll',
  7. templateUrl: 'modules/activities/views/activitiesHoll.html',
  8. controller: 'activitiesHollCtrl',
  9. resolve: {
  10. taskHollCtrl: function (LoadJsService) {
  11. return LoadJsService.loadSequence("activitiesHollArgs");
  12. }
  13. },
  14. params: { comfrom: '' }
  15. }).state('activityDetail', {//活动详情
  16. cache: false,
  17. // url: '/activityDetail/:resid/:restype/:node/:title/:comefrom/:ifjoin/:actions/:taskstatus/:taskid/:opentowho',
  18. url: '/activityDetail/:activityid',
  19. templateUrl: 'modules/activities/views/activityDetail.html',
  20. controller: 'activityDetailCtrl',
  21. resolve: {
  22. taskDetailCtrl: function (LoadJsService) {
  23. return LoadJsService.loadSequence("activityDetailArgs");
  24. }
  25. },
  26. params: { resid: 0, restype: 0, node: '', title: '', comefrom: '', ifjoin: false, actions: '', taskstatus: 0, activityid: '', opentowho: '' }
  27. // }).state('taskEvaluate', {//评价活动
  28. // cache: false,
  29. // url: '/taskEvaluate',
  30. // templateUrl: 'modules/taskModule/views/taskEvaluate.html',
  31. // controller: 'taskEvaluateCtrl',
  32. // resolve: {
  33. // taskEvaluateCtrl: function (LoadJsService) {
  34. // return LoadJsService.loadSequence("taskEvaluateArgs");
  35. // }
  36. // },
  37. // params: {taskRes:''}
  38. }).state('activityRelease', {//发布活动
  39. cache: false,
  40. url: '/activityRelease',
  41. templateUrl: 'modules/activities/views/activityRelease.html',
  42. controller: 'activityReleaseCtrl',
  43. resolve: {
  44. activityReleaseCtrl: function (LoadJsService) {
  45. return LoadJsService.loadSequence("activityReleaseArgs");
  46. }
  47. },
  48. params: { comfrom: 'activityRelease', data: '' }
  49. }).state('activityApply', {//报名申请
  50. cache: false,
  51. url: '/activityApply',
  52. templateUrl: 'modules/activities/views/activityApply.html',
  53. controller: 'activityApplyCtrl',
  54. resolve: {
  55. activityApplyCtrl: function (LoadJsService) {
  56. return LoadJsService.loadSequence("activityApplyArgs");
  57. }
  58. },
  59. params: { settingItems: '', activityid: 0, comfrom: '' },
  60. }).state('participantList', {//报名管理
  61. cache: false,
  62. url: '/participantList/:activityid/:status',
  63. templateUrl: 'modules/activities/views/participantList.html',
  64. controller: 'participantListCtrl',
  65. resolve: {
  66. participantListCtrl: function (LoadJsService) {
  67. return LoadJsService.loadSequence("participantListArgs");
  68. }
  69. },
  70. params: { activityid: 0, settingItems: '', status: null },
  71. })
  72. }]);