123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390 |
- '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.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.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.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.wybinding', {
- url : '/wybinding',
- templateUrl : 'routes/std/wyBinding/wy_std_binding.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/std/wyBinding/wy_std_binding.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() ]);
- } ]
- }
- }).state('app.reexam.search', {
- url : '/search',
- templateUrl : 'routes/reexam/search/search_info.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/reexam/search/search_info.js?v=' + new Date().getTime() ]);
- } ]
- }
- }).state('app.zxappointment', {
- abstract : true,
- url : '/zxappointment',
- template : '<div ui-view class="fade-in-up"></div>'
- }).state('app.zxappointment.list', {
- url : '/list',
- templateUrl : 'routes/zxappointment/list/zx_appointment_list.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/zxappointment/list/zx_appointment_list.js?v=' + new Date().getTime() ]);
- } ]
- }
- }).state('app.zxappointment.info', {
- url : '/info/:enrol_id/:aspect_id',
- templateUrl : 'routes/zxappointment/info/zx_appointment_info.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/zxappointment/info/zx_appointment_info.js?v=' + new Date().getTime() ]);
- } ]
- }
- }).state('app.zxnotice', {
- abstract : true,
- url : '/zxnotice',
- template : '<div ui-view class="fade-in-up"></div>'
- }).state('app.zxnotice.info', {
- url : '/info/:flag',
- templateUrl : 'routes/score/notice/notice_info.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/zxappointment/notice/notice_info.js?v=' + new Date().getTime() ]);
- } ]
- }
- }).state('app.score', {
- abstract : true,
- url : '/score',
- template : '<div ui-view class="fade-in-up"></div>'
- }).state('app.score.list', {
- url : '/list',
- templateUrl : 'routes/score/cyfz/cyfz_score_list.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/score/cyfz/cyfz_score_list.js?v=' + new Date().getTime() ]);
- } ]
- }
- }).state('app.score.info', {
- url : '/info/:aspect_id',
- templateUrl : 'routes/score/cyfz/cyfz_score_info.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/score/cyfz/cyfz_score_info.js?v=' + new Date().getTime() ]);
- } ]
- }
- }).state('app.cyfz', {
- abstract : true,
- url : '/cyfz',
- template : '<div ui-view class="fade-in-up"></div>'
- }).state('app.cyfz.lq', {
- url : '/lq',
- templateUrl : 'routes/score/cyfz/cyfz_lq_list.html?v=' + new Date().getTime(),
- resolve : {
- deps : [ '$ocLazyLoad', function($ocLazyLoad) {
- return $ocLazyLoad.load(['routes/score/cyfz/cyfz_lq_list.js?v=' + new Date().getTime() ]);
- } ]
- }
- })
-
- } ]);
|