scienceRoute.js 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. app.config(['$stateProvider', function ($stateProvider) {
  2. $stateProvider
  3. /*单聊模式*/
  4. .state('singleChatMode', {
  5. cache: false,
  6. url: '/singleChatMode',
  7. templateUrl: 'modules/scienceCircle/views/singleChatMode.html',
  8. controller: 'singleChatModeCtrl',
  9. params:{"topicid": 0, "topicname": "", "username": "", "reciverid": 0, "isfocus": 2}
  10. })
  11. /*科技圈通讯录*/
  12. .state('chatMailList', {
  13. cache: false,
  14. url: '/chatMailList',
  15. templateUrl: 'modules/scienceCircle/views/chatMailList.html',
  16. controller: 'chatMailListCtrl',
  17. resolve: {
  18. chatMailList: function (LoadJsService) {
  19. return LoadJsService.loadSequence("chatMailListCtrl");
  20. }
  21. }
  22. })
  23. /*科技圈搜索模块*/
  24. .state('chatSearchModel', {
  25. cache: false,
  26. url: '/chatSearchModel',
  27. templateUrl: 'modules/scienceCircle/views/chatSearchModel.html',
  28. controller: 'chatSearchModelCtrl',
  29. resolve: {
  30. chatSearchModel: function (LoadJsService) {
  31. return LoadJsService.loadSequence("chatSearchModelCtrl");
  32. }
  33. }
  34. })
  35. /*添加朋友*/
  36. .state('addChatFriends', {
  37. cache: false,
  38. url: '/addChatFriends',
  39. templateUrl: 'modules/scienceCircle/views/addChatFriends.html',
  40. controller: 'addChatFriendsCtrl',
  41. resolve: {
  42. addChatFriends: function (LoadJsService) {
  43. return LoadJsService.loadSequence("addChatFriendsCtrl");
  44. }
  45. }
  46. })
  47. /*陌生人页面*/
  48. .state('strangerList', {
  49. cache: false,
  50. url: '/strangerList',
  51. templateUrl: 'modules/scienceCircle/views/strangerList.html',
  52. controller: 'strangerListCtrl',
  53. resolve: {
  54. strangerList: function (LoadJsService) {
  55. return LoadJsService.loadSequence("strangerListCtrl");
  56. }
  57. }
  58. })
  59. /*我的粉丝页面*/
  60. .state('chatMailListFans', {
  61. cache: false,
  62. url: '/chatMailListFans',
  63. templateUrl: 'modules/scienceCircle/views/chatMailListFans.html',
  64. controller: 'chatMailListFansCtrl',
  65. resolve: {
  66. chatMailListFans: function (LoadJsService) {
  67. return LoadJsService.loadSequence("chatMailListFansCtrl");
  68. }
  69. }
  70. })
  71. }]);