angular.router.js 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480
  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. }).state('app.enrol.ems', {
  123. url : '/ems/:enrol_id/:autopay',
  124. templateUrl : 'routes/enrol/ems/ems_info.html?v=' + new Date().getTime(),
  125. resolve : {
  126. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  127. return $ocLazyLoad.load(['routes/enrol/ems/ems_info.js?v=' + new Date().getTime() ]);
  128. } ]
  129. }
  130. }).state('app.appointment', {
  131. abstract : true,
  132. url : '/appointment',
  133. template : '<div ui-view class="fade-in-up"></div>'
  134. }).state('app.appointment.list', {
  135. url : '/list',
  136. templateUrl : 'routes/appointment/list/appointment_list.html?v=' + new Date().getTime(),
  137. resolve : {
  138. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  139. return $ocLazyLoad.load(['routes/appointment/list/appointment_list.js?v=' + new Date().getTime() ]);
  140. } ]
  141. }
  142. }).state('app.appointment.info', {
  143. url : '/info/:agent_id',
  144. templateUrl : 'routes/appointment/info/appointment_info.html?v=' + new Date().getTime(),
  145. resolve : {
  146. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  147. return $ocLazyLoad.load(['routes/appointment/info/appointment_info.js?v=' + new Date().getTime() ]);
  148. } ]
  149. }
  150. })
  151. .state('app.ticket', {
  152. abstract : true,
  153. url : '/ticket',
  154. template : '<div ui-view class="fade-in-up"></div>'
  155. }).state('app.ticket.list', {
  156. url : '/list',
  157. templateUrl : 'routes/ticket/list/ticket_list.html?v=' + new Date().getTime(),
  158. resolve : {
  159. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  160. return $ocLazyLoad.load(['routes/ticket/list/ticket_list.js?v=' + new Date().getTime() ]);
  161. } ]
  162. }
  163. }).state('app.ticket.info', {
  164. url : '/info/:ly_ticket_id',
  165. templateUrl : 'routes/ticket/info/ticket_info.html?v=' + new Date().getTime(),
  166. resolve : {
  167. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  168. return $ocLazyLoad.load(['routes/ticket/info/ticket_info.js?v=' + new Date().getTime() ]);
  169. } ]
  170. }
  171. })
  172. .state('app.exam', {
  173. abstract : true,
  174. url : '/exam',
  175. template : '<div ui-view class="fade-in-up"></div>'
  176. })
  177. .state('app.exam.voide', {
  178. url : '/voide/:enrol_id/:read',
  179. templateUrl : 'routes/voide/exam/exam.html?v=' + new Date().getTime(),
  180. resolve : {
  181. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  182. return $ocLazyLoad.load(['routes/voide/exam/exam.js?v=' + new Date().getTime() ]);
  183. } ]
  184. }
  185. })
  186. .state('app.exam.result', {
  187. url : '/result/:enrol_id',
  188. templateUrl : 'routes/voide/result/result.html?v=' + new Date().getTime(),
  189. resolve : {
  190. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  191. return $ocLazyLoad.load(['routes/voide/result/result.js?v=' + new Date().getTime() ]);
  192. } ]
  193. }
  194. })
  195. .state('app.exam.upload', {
  196. url : '/upload/:enrol_id',
  197. templateUrl : 'routes/voide/upload/upload.html?v=' + new Date().getTime(),
  198. resolve : {
  199. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  200. return $ocLazyLoad.load(['routes/voide/upload/upload.js?v=' + new Date().getTime() ]);
  201. } ]
  202. }
  203. })
  204. .state('app.exam.list', {
  205. url : '/list',
  206. templateUrl : 'routes/exam/list/list.html?v=' + new Date().getTime(),
  207. resolve : {
  208. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  209. return $ocLazyLoad.load(['routes/exam/list/list.js?v=' + new Date().getTime() ]);
  210. } ]
  211. }
  212. })
  213. .state('app.exam.checkin', {
  214. url : '/checkin/:agent_id/:aspect_id',
  215. templateUrl : 'routes/exam/checkin/checkin.html?v=' + new Date().getTime(),
  216. resolve : {
  217. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  218. return $ocLazyLoad.load(['routes/exam/checkin/checkin.js?v=' + new Date().getTime() ]);
  219. } ]
  220. }
  221. })
  222. .state('app.judge', {
  223. url : '/judge',
  224. templateUrl : 'routes/judge/judge.html?v=' + new Date().getTime(),
  225. resolve : {
  226. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  227. return $ocLazyLoad.load(['routes/judge/judge.js?v=' + new Date().getTime() ]);
  228. } ]
  229. }
  230. })
  231. .state('app.exam.wait', {
  232. url : '/wait/:agent_id/:aspect_id',
  233. templateUrl : 'routes/exam/wait/wait.html?v=' + new Date().getTime(),
  234. resolve : {
  235. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  236. return $ocLazyLoad.load(['routes/exam/wait/wait.js?v=' + new Date().getTime() ]);
  237. } ]
  238. }
  239. })
  240. .state('app.ym', {
  241. abstract : true,
  242. url : '/ym',
  243. template : '<div ui-view class="fade-in-up"></div>'
  244. }).state('app.ym.addr', {
  245. url : '/addr',
  246. templateUrl : 'routes/ym/addr/ym_addr.html?v=' + new Date().getTime(),
  247. resolve : {
  248. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  249. return $ocLazyLoad.load(['routes/ym/addr/ym_addr.js?v=' + new Date().getTime() ]);
  250. } ]
  251. }
  252. }).state('app.ym.mobile', {
  253. url : '/mobile',
  254. templateUrl : 'routes/ym/mobile/ym_mobile.html?v=' + new Date().getTime(),
  255. resolve : {
  256. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  257. return $ocLazyLoad.load(['routes/ym/mobile/ym_mobile.js?v=' + new Date().getTime() ]);
  258. } ]
  259. }
  260. }).state('app.ym.aspect_list', {
  261. url : '/aspect_list',
  262. templateUrl : 'routes/ym/list/ym_aspect_list.html?v=' + new Date().getTime(),
  263. resolve : {
  264. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  265. return $ocLazyLoad.load(['routes/ym/list/ym_aspect_list.js?v=' + new Date().getTime() ]);
  266. } ]
  267. }
  268. }).state('app.ym.std_admis', {
  269. url : '/std_admis',
  270. templateUrl : 'routes/ym/admis/std_admis.html?v=' + new Date().getTime(),
  271. resolve : {
  272. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  273. return $ocLazyLoad.load(['routes/ym/admis/std_admis.js?v=' + new Date().getTime() ]);
  274. } ]
  275. }
  276. }).state('app.ym.aspect_info', {
  277. url : '/aspect_info/:enrol_id',
  278. templateUrl : 'routes/ym/info/ym_aspect_info.html?v=' + new Date().getTime(),
  279. resolve : {
  280. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  281. return $ocLazyLoad.load(['routes/ym/info/ym_aspect_info.js?v=' + new Date().getTime() ]);
  282. } ]
  283. }
  284. }).state('app.ym.score', {
  285. url : '/score/:aspect_name/:batch',
  286. templateUrl : 'routes/ym/score/ym_score.html?v=' + new Date().getTime(),
  287. resolve : {
  288. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  289. return $ocLazyLoad.load(['routes/ym/score/ym_score.js?v=' + new Date().getTime() ]);
  290. } ]
  291. }
  292. }).state('app.ym.image', {
  293. url : '/image/:aspect_name',
  294. templateUrl : 'routes/ym/image/ym_image.html?v=' + new Date().getTime(),
  295. resolve : {
  296. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  297. return $ocLazyLoad.load(['routes/ym/image/ym_image.js?v=' + new Date().getTime() ]);
  298. } ]
  299. }
  300. }).state('app.ym.batch', {
  301. url : '/batch',
  302. templateUrl : 'routes/score/ym/score_ym.html?v=' + new Date().getTime(),
  303. resolve : {
  304. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  305. return $ocLazyLoad.load(['routes/score/ym/score_ym.js?v=' + new Date().getTime() ]);
  306. } ]
  307. }
  308. })
  309. .state('app.reexam', {
  310. abstract : true,
  311. url : '/reexam',
  312. template : '<div ui-view class="fade-in-up"></div>'
  313. }).state('app.reexam.list', {
  314. url : '/list',
  315. templateUrl : 'routes/reexam/list/reexam_list.html?v=' + new Date().getTime(),
  316. resolve : {
  317. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  318. return $ocLazyLoad.load(['routes/reexam/list/reexam_list.js?v=' + new Date().getTime() ]);
  319. } ]
  320. }
  321. }).state('app.reexam.info', {
  322. url : '/info/:enrol_id',
  323. templateUrl : 'routes/reexam/info/reexam_info.html?v=' + new Date().getTime(),
  324. resolve : {
  325. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  326. return $ocLazyLoad.load(['routes/reexam/info/reexam_info.js?v=' + new Date().getTime() ]);
  327. } ]
  328. }
  329. }).state('app.std.wybinding', {
  330. url : '/wybinding',
  331. templateUrl : 'routes/std/wyBinding/wy_std_binding.html?v=' + new Date().getTime(),
  332. resolve : {
  333. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  334. return $ocLazyLoad.load(['routes/std/wyBinding/wy_std_binding.js?v=' + new Date().getTime() ]);
  335. } ]
  336. }
  337. }).state('app.std.notice', {
  338. url : '/notice',
  339. templateUrl : 'routes/std/notice/std_notice.html?v=' + new Date().getTime(),
  340. resolve : {
  341. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  342. return $ocLazyLoad.load(['routes/std/notice/std_notice.js?v=' + new Date().getTime() ]);
  343. } ]
  344. }
  345. }).state('app.reexam.search', {
  346. url : '/search',
  347. templateUrl : 'routes/reexam/search/search_info.html?v=' + new Date().getTime(),
  348. resolve : {
  349. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  350. return $ocLazyLoad.load(['routes/reexam/search/search_info.js?v=' + new Date().getTime() ]);
  351. } ]
  352. }
  353. }).state('app.zxappointment', {
  354. abstract : true,
  355. url : '/zxappointment',
  356. template : '<div ui-view class="fade-in-up"></div>'
  357. }).state('app.zxappointment.list', {
  358. url : '/list',
  359. templateUrl : 'routes/zxappointment/list/zx_appointment_list.html?v=' + new Date().getTime(),
  360. resolve : {
  361. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  362. return $ocLazyLoad.load(['routes/zxappointment/list/zx_appointment_list.js?v=' + new Date().getTime() ]);
  363. } ]
  364. }
  365. }).state('app.zxappointment.info', {
  366. url : '/info/:enrol_id/:aspect_id',
  367. templateUrl : 'routes/zxappointment/info/zx_appointment_info.html?v=' + new Date().getTime(),
  368. resolve : {
  369. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  370. return $ocLazyLoad.load(['routes/zxappointment/info/zx_appointment_info.js?v=' + new Date().getTime() ]);
  371. } ]
  372. }
  373. }).state('app.zxnotice', {
  374. abstract : true,
  375. url : '/zxnotice',
  376. template : '<div ui-view class="fade-in-up"></div>'
  377. }).state('app.zxnotice.info', {
  378. url : '/info/:flag',
  379. templateUrl : 'routes/score/notice/notice_info.html?v=' + new Date().getTime(),
  380. resolve : {
  381. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  382. return $ocLazyLoad.load(['routes/zxappointment/notice/notice_info.js?v=' + new Date().getTime() ]);
  383. } ]
  384. }
  385. }).state('app.score', {
  386. abstract : true,
  387. url : '/score',
  388. template : '<div ui-view class="fade-in-up"></div>'
  389. }).state('app.score.list', {
  390. url : '/list',
  391. templateUrl : 'routes/score/list/score_list.html?v=' + new Date().getTime(),
  392. resolve : {
  393. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  394. return $ocLazyLoad.load(['routes/score/list/score_list.js?v=' + new Date().getTime() ]);
  395. } ]
  396. }
  397. }).state('app.score.info', {
  398. url : '/info/:aspect_id',
  399. templateUrl : 'routes/score/info/score_info.html?v=' + new Date().getTime(),
  400. resolve : {
  401. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  402. return $ocLazyLoad.load(['routes/score/info/score_info.js?v=' + new Date().getTime() ]);
  403. } ]
  404. }
  405. }).state('app.score.xylist', {
  406. url : '/xylist',
  407. templateUrl : 'routes/score/list/score_list_xy.html?v=' + new Date().getTime(),
  408. resolve : {
  409. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  410. return $ocLazyLoad.load(['routes/score/list/score_list_xy.js?v=' + new Date().getTime() ]);
  411. } ]
  412. }
  413. }).state('app.cyfz', {
  414. abstract : true,
  415. url : '/cyfz',
  416. template : '<div ui-view class="fade-in-up"></div>'
  417. }).state('app.cyfz.lq', {
  418. url : '/lq',
  419. templateUrl : 'routes/score/cyfz/cyfz_lq_list.html?v=' + new Date().getTime(),
  420. resolve : {
  421. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  422. return $ocLazyLoad.load(['routes/score/cyfz/cyfz_lq_list.js?v=' + new Date().getTime() ]);
  423. } ]
  424. }
  425. }).state('app.zxappoint', {
  426. abstract : true,
  427. url : '/zxappoint',
  428. template : '<div ui-view class="fade-in-up"></div>'
  429. }).state('app.zxappoint.list', {
  430. url : '/list',
  431. templateUrl : 'routes/zxappoint/list/zx_appoint_list.html?v=' + new Date().getTime(),
  432. resolve : {
  433. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  434. return $ocLazyLoad.load(['routes/zxappoint/list/zx_appoint_list.js?v=' + new Date().getTime() ]);
  435. } ]
  436. }
  437. }).state('app.zxappoint.info', {
  438. url : '/info/:enrol_id/:aspect_id',
  439. templateUrl : 'routes/zxappoint/info/zx_appoint_info.html?v=' + new Date().getTime(),
  440. resolve : {
  441. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  442. return $ocLazyLoad.load(['routes/zxappoint/info/zx_appoint_info.js?v=' + new Date().getTime() ]);
  443. } ]
  444. }
  445. }).state('app.wish', {
  446. abstract : true,
  447. url : '/wish',
  448. template : '<div ui-view class="fade-in-up"></div>'
  449. }).state('app.wish.std', {
  450. url : '/std/:aspect_id',
  451. templateUrl : 'routes/std/wish/std_wish.html?v=' + new Date().getTime(),
  452. resolve : {
  453. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  454. return $ocLazyLoad.load(['routes/std/wish/std_wish.js?v=' + new Date().getTime() ]);
  455. } ]
  456. }
  457. }).state('app.variety', {
  458. abstract : true,
  459. url : '/variety',
  460. template : '<div ui-view class="fade-in-up"></div>'
  461. }).state('app.variety.choose', {
  462. url : '/choose/:enrol_id/:enrol_flag',
  463. templateUrl : 'routes/enrol/variety/choose_variety.html?v=' + new Date().getTime(),
  464. resolve : {
  465. deps : [ '$ocLazyLoad', function($ocLazyLoad) {
  466. return $ocLazyLoad.load(['routes/enrol/variety/choose_variety.js?v=' + new Date().getTime() ]);
  467. } ]
  468. }
  469. })
  470. } ]);