angular.router.js 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390
  1. 'use strict';
  2. angular.module('app').config([ '$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider) {
  3. $urlRouterProvider.otherwise('/app/main');
  4. $stateProvider.state('app', {
  5. abstract : true,
  6. url : '/app',
  7. template : '<div ui-view class="fade-in-up"></div>'
  8. }).state('app.main', {
  9. url : '/main',
  10. templateUrl : 'routes/main/main.html?v=' + new Date().getTime(),
  11. resolve : {
  12. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  13. return $ocLazyLoad.load(['routes/main/main.js?v=' + new Date().getTime() ]);
  14. } ]
  15. }
  16. })
  17. .state('app.std', {
  18. abstract : true,
  19. url : '/std',
  20. template : '<div ui-view class="fade-in-up"></div>'
  21. }).state('app.std.reg', {
  22. url : '/reg',
  23. templateUrl : 'routes/std/reg/std_reg.html?v=' + new Date().getTime(),
  24. resolve : {
  25. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  26. return $ocLazyLoad.load(['routes/std/reg/std_reg.js?v=' + new Date().getTime() ]);
  27. } ]
  28. }
  29. }).state('app.std.cert', {
  30. url : '/cert',
  31. templateUrl : 'routes/std/cert/std_cert.html?v=' + new Date().getTime(),
  32. resolve : {
  33. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  34. return $ocLazyLoad.load(['routes/std/cert/std_cert.js?v=' + new Date().getTime() ]);
  35. } ]
  36. }
  37. }).state('app.std.info', {
  38. url : '/info',
  39. templateUrl : 'routes/std/info/std_info.html?v=' + new Date().getTime(),
  40. resolve : {
  41. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  42. return $ocLazyLoad.load(['routes/std/info/std_info.js?v=' + new Date().getTime() ]);
  43. } ]
  44. }
  45. }).state('app.std.material', {
  46. url : '/material',
  47. templateUrl : 'routes/std/material/std_material.html?v=' + new Date().getTime(),
  48. resolve : {
  49. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  50. return $ocLazyLoad.load(['routes/std/material/std_material.js?v=' + new Date().getTime() ]);
  51. } ]
  52. }
  53. }).state('app.std.material_info', {
  54. url : '/material_info/:material_id',
  55. templateUrl : 'routes/std/material/std_material_info.html?v=' + new Date().getTime(),
  56. resolve : {
  57. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  58. return $ocLazyLoad.load(['routes/std/material/std_material_info.js?v=' + new Date().getTime() ]);
  59. } ]
  60. }
  61. }).state('app.std.binding', {
  62. url : '/binding',
  63. templateUrl : 'routes/std/binding/std_binding.html?v=' + new Date().getTime(),
  64. resolve : {
  65. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  66. return $ocLazyLoad.load(['routes/std/binding/std_binding.js?v=' + new Date().getTime() ]);
  67. } ]
  68. }
  69. }).state('app.std.unbinding', {
  70. url : '/unbinding',
  71. templateUrl : 'routes/std/unbinding/std_unbinding.html?v=' + new Date().getTime(),
  72. resolve : {
  73. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  74. return $ocLazyLoad.load(['routes/std/unbinding/std_unbinding.js?v=' + new Date().getTime() ]);
  75. } ]
  76. }
  77. }).state('app.std.admit', {
  78. url : '/admit',
  79. templateUrl : 'routes/std/admit/std_admit.html?v=' + new Date().getTime(),
  80. resolve : {
  81. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  82. return $ocLazyLoad.load(['routes/std/admit/std_admit.js?v=' + new Date().getTime() ]);
  83. } ]
  84. }
  85. })
  86. .state('app.enrol', {
  87. abstract : true,
  88. url : '/enrol',
  89. template : '<div ui-view class="fade-in-up"></div>'
  90. }).state('app.enrol.guide', {
  91. url : '/guide',
  92. templateUrl : 'routes/enrol/guide/enrol_guide.html?v=' + new Date().getTime(),
  93. resolve : {
  94. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  95. return $ocLazyLoad.load(['routes/enrol/guide/enrol_guide.js?v=' + new Date().getTime() ]);
  96. } ]
  97. }
  98. }).state('app.enrol.list', {
  99. url : '/list',
  100. templateUrl : 'routes/enrol/list/enrol_list.html?v=' + new Date().getTime(),
  101. resolve : {
  102. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  103. return $ocLazyLoad.load(['routes/enrol/list/enrol_list.js?v=' + new Date().getTime() ]);
  104. } ]
  105. }
  106. }).state('app.enrol.info', {
  107. url : '/info/:enrol_id/:autopay',
  108. templateUrl : 'routes/enrol/info/enrol_info.html?v=' + new Date().getTime(),
  109. resolve : {
  110. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  111. return $ocLazyLoad.load(['routes/enrol/info/enrol_info.js?v=' + new Date().getTime() ]);
  112. } ]
  113. }
  114. }).state('app.enrol.doc', {
  115. url : '/doc/:enrol_id',
  116. templateUrl : 'routes/enrol/doc/enrol_doc.html?v=' + new Date().getTime(),
  117. resolve : {
  118. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  119. return $ocLazyLoad.load(['routes/enrol/doc/enrol_doc.js?v=' + new Date().getTime() ]);
  120. } ]
  121. }
  122. })
  123. .state('app.appointment', {
  124. abstract : true,
  125. url : '/appointment',
  126. template : '<div ui-view class="fade-in-up"></div>'
  127. }).state('app.appointment.list', {
  128. url : '/list',
  129. templateUrl : 'routes/appointment/list/appointment_list.html?v=' + new Date().getTime(),
  130. resolve : {
  131. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  132. return $ocLazyLoad.load(['routes/appointment/list/appointment_list.js?v=' + new Date().getTime() ]);
  133. } ]
  134. }
  135. }).state('app.appointment.info', {
  136. url : '/info/:agent_id',
  137. templateUrl : 'routes/appointment/info/appointment_info.html?v=' + new Date().getTime(),
  138. resolve : {
  139. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  140. return $ocLazyLoad.load(['routes/appointment/info/appointment_info.js?v=' + new Date().getTime() ]);
  141. } ]
  142. }
  143. })
  144. .state('app.ticket', {
  145. abstract : true,
  146. url : '/ticket',
  147. template : '<div ui-view class="fade-in-up"></div>'
  148. }).state('app.ticket.list', {
  149. url : '/list',
  150. templateUrl : 'routes/ticket/list/ticket_list.html?v=' + new Date().getTime(),
  151. resolve : {
  152. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  153. return $ocLazyLoad.load(['routes/ticket/list/ticket_list.js?v=' + new Date().getTime() ]);
  154. } ]
  155. }
  156. }).state('app.ticket.info', {
  157. url : '/info/:ly_ticket_id',
  158. templateUrl : 'routes/ticket/info/ticket_info.html?v=' + new Date().getTime(),
  159. resolve : {
  160. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  161. return $ocLazyLoad.load(['routes/ticket/info/ticket_info.js?v=' + new Date().getTime() ]);
  162. } ]
  163. }
  164. })
  165. .state('app.exam', {
  166. abstract : true,
  167. url : '/exam',
  168. template : '<div ui-view class="fade-in-up"></div>'
  169. })
  170. .state('app.exam.voide', {
  171. url : '/voide/:enrol_id/:read',
  172. templateUrl : 'routes/voide/exam/exam.html?v=' + new Date().getTime(),
  173. resolve : {
  174. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  175. return $ocLazyLoad.load(['routes/voide/exam/exam.js?v=' + new Date().getTime() ]);
  176. } ]
  177. }
  178. })
  179. .state('app.exam.result', {
  180. url : '/result/:enrol_id',
  181. templateUrl : 'routes/voide/result/result.html?v=' + new Date().getTime(),
  182. resolve : {
  183. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  184. return $ocLazyLoad.load(['routes/voide/result/result.js?v=' + new Date().getTime() ]);
  185. } ]
  186. }
  187. })
  188. .state('app.exam.upload', {
  189. url : '/upload/:enrol_id',
  190. templateUrl : 'routes/voide/upload/upload.html?v=' + new Date().getTime(),
  191. resolve : {
  192. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  193. return $ocLazyLoad.load(['routes/voide/upload/upload.js?v=' + new Date().getTime() ]);
  194. } ]
  195. }
  196. })
  197. .state('app.exam.list', {
  198. url : '/list',
  199. templateUrl : 'routes/exam/list/list.html?v=' + new Date().getTime(),
  200. resolve : {
  201. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  202. return $ocLazyLoad.load(['routes/exam/list/list.js?v=' + new Date().getTime() ]);
  203. } ]
  204. }
  205. })
  206. .state('app.exam.checkin', {
  207. url : '/checkin/:agent_id/:aspect_id',
  208. templateUrl : 'routes/exam/checkin/checkin.html?v=' + new Date().getTime(),
  209. resolve : {
  210. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  211. return $ocLazyLoad.load(['routes/exam/checkin/checkin.js?v=' + new Date().getTime() ]);
  212. } ]
  213. }
  214. })
  215. .state('app.judge', {
  216. url : '/judge',
  217. templateUrl : 'routes/judge/judge.html?v=' + new Date().getTime(),
  218. resolve : {
  219. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  220. return $ocLazyLoad.load(['routes/judge/judge.js?v=' + new Date().getTime() ]);
  221. } ]
  222. }
  223. })
  224. .state('app.exam.wait', {
  225. url : '/wait/:agent_id/:aspect_id',
  226. templateUrl : 'routes/exam/wait/wait.html?v=' + new Date().getTime(),
  227. resolve : {
  228. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  229. return $ocLazyLoad.load(['routes/exam/wait/wait.js?v=' + new Date().getTime() ]);
  230. } ]
  231. }
  232. })
  233. .state('app.ym', {
  234. abstract : true,
  235. url : '/ym',
  236. template : '<div ui-view class="fade-in-up"></div>'
  237. }).state('app.ym.addr', {
  238. url : '/addr',
  239. templateUrl : 'routes/ym/addr/ym_addr.html?v=' + new Date().getTime(),
  240. resolve : {
  241. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  242. return $ocLazyLoad.load(['routes/ym/addr/ym_addr.js?v=' + new Date().getTime() ]);
  243. } ]
  244. }
  245. }).state('app.ym.mobile', {
  246. url : 'mobile',
  247. templateUrl : 'routes/ym/mobile/ym_mobile.html?v=' + new Date().getTime(),
  248. resolve : {
  249. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  250. return $ocLazyLoad.load(['routes/ym/mobile/ym_mobile.js?v=' + new Date().getTime() ]);
  251. } ]
  252. }
  253. }).state('app.ym.aspect_list', {
  254. url : '/aspect_list',
  255. templateUrl : 'routes/ym/list/ym_aspect_list.html?v=' + new Date().getTime(),
  256. resolve : {
  257. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  258. return $ocLazyLoad.load(['routes/ym/list/ym_aspect_list.js?v=' + new Date().getTime() ]);
  259. } ]
  260. }
  261. }).state('app.ym.aspect_info', {
  262. url : '/aspect_info/:enrol_id',
  263. templateUrl : 'routes/ym/info/ym_aspect_info.html?v=' + new Date().getTime(),
  264. resolve : {
  265. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  266. return $ocLazyLoad.load(['routes/ym/info/ym_aspect_info.js?v=' + new Date().getTime() ]);
  267. } ]
  268. }
  269. })
  270. .state('app.reexam', {
  271. abstract : true,
  272. url : '/reexam',
  273. template : '<div ui-view class="fade-in-up"></div>'
  274. }).state('app.reexam.list', {
  275. url : '/list',
  276. templateUrl : 'routes/reexam/list/reexam_list.html?v=' + new Date().getTime(),
  277. resolve : {
  278. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  279. return $ocLazyLoad.load(['routes/reexam/list/reexam_list.js?v=' + new Date().getTime() ]);
  280. } ]
  281. }
  282. }).state('app.reexam.info', {
  283. url : '/info/:enrol_id',
  284. templateUrl : 'routes/reexam/info/reexam_info.html?v=' + new Date().getTime(),
  285. resolve : {
  286. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  287. return $ocLazyLoad.load(['routes/reexam/info/reexam_info.js?v=' + new Date().getTime() ]);
  288. } ]
  289. }
  290. }).state('app.std.wybinding', {
  291. url : '/wybinding',
  292. templateUrl : 'routes/std/wyBinding/wy_std_binding.html?v=' + new Date().getTime(),
  293. resolve : {
  294. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  295. return $ocLazyLoad.load(['routes/std/wyBinding/wy_std_binding.js?v=' + new Date().getTime() ]);
  296. } ]
  297. }
  298. }).state('app.std.notice', {
  299. url : '/notice',
  300. templateUrl : 'routes/std/notice/std_notice.html?v=' + new Date().getTime(),
  301. resolve : {
  302. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  303. return $ocLazyLoad.load(['routes/std/notice/std_notice.js?v=' + new Date().getTime() ]);
  304. } ]
  305. }
  306. }).state('app.reexam.search', {
  307. url : '/search',
  308. templateUrl : 'routes/reexam/search/search_info.html?v=' + new Date().getTime(),
  309. resolve : {
  310. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  311. return $ocLazyLoad.load(['routes/reexam/search/search_info.js?v=' + new Date().getTime() ]);
  312. } ]
  313. }
  314. }).state('app.zxappointment', {
  315. abstract : true,
  316. url : '/zxappointment',
  317. template : '<div ui-view class="fade-in-up"></div>'
  318. }).state('app.zxappointment.list', {
  319. url : '/list',
  320. templateUrl : 'routes/zxappointment/list/zx_appointment_list.html?v=' + new Date().getTime(),
  321. resolve : {
  322. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  323. return $ocLazyLoad.load(['routes/zxappointment/list/zx_appointment_list.js?v=' + new Date().getTime() ]);
  324. } ]
  325. }
  326. }).state('app.zxappointment.info', {
  327. url : '/info/:enrol_id/:aspect_id',
  328. templateUrl : 'routes/zxappointment/info/zx_appointment_info.html?v=' + new Date().getTime(),
  329. resolve : {
  330. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  331. return $ocLazyLoad.load(['routes/zxappointment/info/zx_appointment_info.js?v=' + new Date().getTime() ]);
  332. } ]
  333. }
  334. }).state('app.zxnotice', {
  335. abstract : true,
  336. url : '/zxnotice',
  337. template : '<div ui-view class="fade-in-up"></div>'
  338. }).state('app.zxnotice.info', {
  339. url : '/info/:flag',
  340. templateUrl : 'routes/score/notice/notice_info.html?v=' + new Date().getTime(),
  341. resolve : {
  342. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  343. return $ocLazyLoad.load(['routes/zxappointment/notice/notice_info.js?v=' + new Date().getTime() ]);
  344. } ]
  345. }
  346. }).state('app.score', {
  347. abstract : true,
  348. url : '/score',
  349. template : '<div ui-view class="fade-in-up"></div>'
  350. }).state('app.score.list', {
  351. url : '/list',
  352. templateUrl : 'routes/score/cyfz/cyfz_score_list.html?v=' + new Date().getTime(),
  353. resolve : {
  354. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  355. return $ocLazyLoad.load(['routes/score/cyfz/cyfz_score_list.js?v=' + new Date().getTime() ]);
  356. } ]
  357. }
  358. }).state('app.score.info', {
  359. url : '/info/:aspect_id',
  360. templateUrl : 'routes/score/cyfz/cyfz_score_info.html?v=' + new Date().getTime(),
  361. resolve : {
  362. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  363. return $ocLazyLoad.load(['routes/score/cyfz/cyfz_score_info.js?v=' + new Date().getTime() ]);
  364. } ]
  365. }
  366. }).state('app.cyfz', {
  367. abstract : true,
  368. url : '/cyfz',
  369. template : '<div ui-view class="fade-in-up"></div>'
  370. }).state('app.cyfz.lq', {
  371. url : '/lq',
  372. templateUrl : 'routes/score/cyfz/cyfz_lq_list.html?v=' + new Date().getTime(),
  373. resolve : {
  374. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  375. return $ocLazyLoad.load(['routes/score/cyfz/cyfz_lq_list.js?v=' + new Date().getTime() ]);
  376. } ]
  377. }
  378. })
  379. } ]);