1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- app.config(['$stateProvider', function ($stateProvider) {
- $stateProvider
- /*单聊模式*/
- .state('singleChatMode', {
- cache: false,
- url: '/singleChatMode',
- templateUrl: 'modules/scienceCircle/views/singleChatMode.html',
- controller: 'singleChatModeCtrl',
- params:{"topicid": 0, "topicname": "", "username": "", "reciverid": 0, "isfocus": 2}
- })
- /*科技圈通讯录*/
- .state('chatMailList', {
- cache: false,
- url: '/chatMailList',
- templateUrl: 'modules/scienceCircle/views/chatMailList.html',
- controller: 'chatMailListCtrl',
- resolve: {
- chatMailList: function (LoadJsService) {
- return LoadJsService.loadSequence("chatMailListCtrl");
- }
- }
- })
- /*科技圈搜索模块*/
- .state('chatSearchModel', {
- cache: false,
- url: '/chatSearchModel',
- templateUrl: 'modules/scienceCircle/views/chatSearchModel.html',
- controller: 'chatSearchModelCtrl',
- resolve: {
- chatSearchModel: function (LoadJsService) {
- return LoadJsService.loadSequence("chatSearchModelCtrl");
- }
- }
- })
- /*添加朋友*/
- .state('addChatFriends', {
- cache: false,
- url: '/addChatFriends',
- templateUrl: 'modules/scienceCircle/views/addChatFriends.html',
- controller: 'addChatFriendsCtrl',
- resolve: {
- addChatFriends: function (LoadJsService) {
- return LoadJsService.loadSequence("addChatFriendsCtrl");
- }
- }
- })
- /*陌生人页面*/
- .state('strangerList', {
- cache: false,
- url: '/strangerList',
- templateUrl: 'modules/scienceCircle/views/strangerList.html',
- controller: 'strangerListCtrl',
- resolve: {
- strangerList: function (LoadJsService) {
- return LoadJsService.loadSequence("strangerListCtrl");
- }
- }
- })
- /*我的粉丝页面*/
- .state('chatMailListFans', {
- cache: false,
- url: '/chatMailListFans',
- templateUrl: 'modules/scienceCircle/views/chatMailListFans.html',
- controller: 'chatMailListFansCtrl',
- resolve: {
- chatMailListFans: function (LoadJsService) {
- return LoadJsService.loadSequence("chatMailListFansCtrl");
- }
- }
- })
- }]);
|