123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364 |
- 'use strict';
- angular.module('app').config([ '$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider) {
- $urlRouterProvider.otherwise('/app/main');
- $stateProvider.state('app', {
- abstract : true,
- url : '/app',
- template : '<div ui-view class="fade-in-up"></div>'
- }).state('app.main', {
- url : '/main',
- templateUrl : 'routes/main/main.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/main/main.js?v=' + new Date().getTime() ]);
- } ]
- }
- })
-
- .state('app.std', {
- abstract : true,
- url : '/std',
- template : '<div ui-view class="fade-in-up"></div>'
- }).state('app.std.reg', {
- url : '/reg',
- templateUrl : 'routes/std/reg/std_reg.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/std/reg/std_reg.js?v=' + new Date().getTime() ]);
- } ]
- }
- }).state('app.std.cert', {
- url : '/cert',
- templateUrl : 'routes/std/cert/std_cert.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/std/cert/std_cert.js?v=' + new Date().getTime() ]);
- } ]
- }
- }).state('app.std.info', {
- url : '/info',
- templateUrl : 'routes/std/info/std_info.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/std/info/std_info.js?v=' + new Date().getTime() ]);
- } ]
- }
- }).state('app.std.material', {
- url : '/material',
- templateUrl : 'routes/std/material/std_material.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/std/material/std_material.js?v=' + new Date().getTime() ]);
- } ]
- }
- }).state('app.std.material_info', {
- url : '/material_info/:material_id',
- templateUrl : 'routes/std/material/std_material_info.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/std/material/std_material_info.js?v=' + new Date().getTime() ]);
- } ]
- }
- }).state('app.std.binding', {
- url : '/binding',
- templateUrl : 'routes/std/binding/std_binding.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/std/binding/std_binding.js?v=' + new Date().getTime() ]);
- } ]
- }
- }).state('app.std.unbinding', {
- url : '/unbinding',
- templateUrl : 'routes/std/unbinding/std_unbinding.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/std/unbinding/std_unbinding.js?v=' + new Date().getTime() ]);
- } ]
- }
- }).state('app.std.admit', {
- url : '/admit',
- templateUrl : 'routes/std/admit/std_admit.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/std/admit/std_admit.js?v=' + new Date().getTime() ]);
- } ]
- }
- })
-
- .state('app.enrol', {
- abstract : true,
- url : '/enrol',
- template : '<div ui-view class="fade-in-up"></div>'
- }).state('app.enrol.guide', {
- url : '/guide',
- templateUrl : 'routes/enrol/guide/enrol_guide.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/enrol/guide/enrol_guide.js?v=' + new Date().getTime() ]);
- } ]
- }
- }).state('app.enrol.list', {
- url : '/list',
- templateUrl : 'routes/enrol/list/enrol_list.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/enrol/list/enrol_list.js?v=' + new Date().getTime() ]);
- } ]
- }
- }).state('app.enrol.info', {
- url : '/info/:enrol_id/:autopay',
- templateUrl : 'routes/enrol/info/enrol_info.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/enrol/info/enrol_info.js?v=' + new Date().getTime() ]);
- } ]
- }
- }).state('app.enrol.doc', {
- url : '/doc/:enrol_id',
- templateUrl : 'routes/enrol/doc/enrol_doc.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/enrol/doc/enrol_doc.js?v=' + new Date().getTime() ]);
- } ]
- }
- })
-
- .state('app.score', {
- abstract : true,
- url : '/score',
- template : '<div ui-view class="fade-in-up"></div>'
- }).state('app.score.info', {
- url : '/info/:std_id/:aspect_id',
- templateUrl : 'routes/score/info/score_info.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/score/info/score_info.js?v=' + new Date().getTime() ]);
- } ]
- }
- }).state('app.score.fz', { // 附中成绩查询
- url : '/fz',
- templateUrl : 'routes/score/fz/score_fz_info.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/score/fz/score_fz_info.js?v=' + new Date().getTime() ]);
- } ]
- }
- })
- .state('app.appointment', {
- abstract : true,
- url : '/appointment',
- template : '<div ui-view class="fade-in-up"></div>'
- }).state('app.appointment.list', {
- url : '/list',
- templateUrl : 'routes/appointment/list/appointment_list.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/appointment/list/appointment_list.js?v=' + new Date().getTime() ]);
- } ]
- }
- }).state('app.appointment.info', {
- url : '/info/:agent_id',
- templateUrl : 'routes/appointment/info/appointment_info.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/appointment/info/appointment_info.js?v=' + new Date().getTime() ]);
- } ]
- }
- })
-
- .state('app.ticket', {
- abstract : true,
- url : '/ticket',
- template : '<div ui-view class="fade-in-up"></div>'
- }).state('app.ticket.list', {
- url : '/list',
- templateUrl : 'routes/ticket/list/ticket_list.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/ticket/list/ticket_list.js?v=' + new Date().getTime() ]);
- } ]
- }
- }).state('app.ticket.info', {
- url : '/info/:ly_ticket_id',
- templateUrl : 'routes/ticket/info/ticket_info.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/ticket/info/ticket_info.js?v=' + new Date().getTime() ]);
- } ]
- }
- })
-
-
- .state('app.exam', {
- abstract : true,
- url : '/exam',
- template : '<div ui-view class="fade-in-up"></div>'
- })
- .state('app.exam.voide', {
- url : '/voide/:enrol_id/:read',
- templateUrl : 'routes/voide/exam/exam.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/voide/exam/exam.js?v=' + new Date().getTime() ]);
- } ]
- }
- })
- .state('app.exam.result', {
- url : '/result/:enrol_id',
- templateUrl : 'routes/voide/result/result.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/voide/result/result.js?v=' + new Date().getTime() ]);
- } ]
- }
- })
- .state('app.exam.upload', {
- url : '/upload/:enrol_id',
- templateUrl : 'routes/voide/upload/upload.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/voide/upload/upload.js?v=' + new Date().getTime() ]);
- } ]
- }
- })
- .state('app.exam.list', {
- url : '/list',
- templateUrl : 'routes/exam/list/list.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/exam/list/list.js?v=' + new Date().getTime() ]);
- } ]
- }
- })
-
- .state('app.exam.checkin', {
- url : '/checkin/:agent_id/:aspect_id',
- templateUrl : 'routes/exam/checkin/checkin.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/exam/checkin/checkin.js?v=' + new Date().getTime() ]);
- } ]
- }
- })
-
- .state('app.judge', {
- url : '/judge',
- templateUrl : 'routes/judge/judge.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/judge/judge.js?v=' + new Date().getTime() ]);
- } ]
- }
- })
- .state('app.exam.wait', {
- url : '/wait/:agent_id/:aspect_id',
- templateUrl : 'routes/exam/wait/wait.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/exam/wait/wait.js?v=' + new Date().getTime() ]);
- } ]
- }
- })
-
- .state('app.ym', {
- abstract : true,
- url : '/ym',
- template : '<div ui-view class="fade-in-up"></div>'
- }).state('app.ym.addr', {
- url : '/addr',
- templateUrl : 'routes/ym/addr/ym_addr.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/ym/addr/ym_addr.js?v=' + new Date().getTime() ]);
- } ]
- }
- }).state('app.ym.mobile', {
- url : '/mobile',
- templateUrl : 'routes/ym/mobile/ym_mobile.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/ym/mobile/ym_mobile.js?v=' + new Date().getTime() ]);
- } ]
- }
- }).state('app.ym.aspect_list', {
- url : '/aspect_list',
- templateUrl : 'routes/ym/list/ym_aspect_list.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/ym/list/ym_aspect_list.js?v=' + new Date().getTime() ]);
- } ]
- }
- }).state('app.ym.std_admis', {
- url : '/std_admis',
- templateUrl : 'routes/ym/admis/std_admis.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/ym/admis/std_admis.js?v=' + new Date().getTime() ]);
- } ]
- }
- }).state('app.ym.aspect_info', {
- url : '/aspect_info/:enrol_id',
- templateUrl : 'routes/ym/info/ym_aspect_info.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/ym/info/ym_aspect_info.js?v=' + new Date().getTime() ]);
- } ]
- }
- }).state('app.ym.score', {
- url : '/score/:aspect_name/:batch',
- templateUrl : 'routes/ym/score/ym_score.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/ym/score/ym_score.js?v=' + new Date().getTime() ]);
- } ]
- }
- }).state('app.ym.image', {
- url : '/image/:aspect_name',
- templateUrl : 'routes/ym/image/ym_image.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/ym/image/ym_image.js?v=' + new Date().getTime() ]);
- } ]
- }
- }).state('app.ym.batch', {
- url : '/batch',
- templateUrl : 'routes/score/ym/score_ym.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/score/ym/score_ym.js?v=' + new Date().getTime() ]);
- } ]
- }
- })
-
- .state('app.reexam', {
- abstract : true,
- url : '/reexam',
- template : '<div ui-view class="fade-in-up"></div>'
- }).state('app.reexam.list', {
- url : '/list',
- templateUrl : 'routes/reexam/list/reexam_list.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/reexam/list/reexam_list.js?v=' + new Date().getTime() ]);
- } ]
- }
- }).state('app.reexam.info', {
- url : '/info/:enrol_id',
- templateUrl : 'routes/reexam/info/reexam_info.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/reexam/info/reexam_info.js?v=' + new Date().getTime() ]);
- } ]
- }
- }).state('app.std.notice', {
- url : '/notice',
- templateUrl : 'routes/std/notice/std_notice.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/std/notice/std_notice.js?v=' + new Date().getTime() ]);
- } ]
- }
- })
-
- } ]);
|