routes-student.ts 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. import Auth from '@/views/layout/auth'
  2. import MusicAuth from '@/student/music-group/layout/auth'
  3. import { router, rootRouter } from './routes-common'
  4. type metaType = {
  5. isRegister: boolean
  6. }
  7. const noLoginRouter = [
  8. {
  9. path: '/payment-result',
  10. name: 'payment-result',
  11. component: () => import('@/student/payment-result/index'),
  12. meta: {
  13. title: '支付详情'
  14. }
  15. },
  16. {
  17. path: '/download',
  18. name: 'download',
  19. component: () => import('@/student/download/index'),
  20. meta: {
  21. title: '下载管乐团学生端'
  22. }
  23. },
  24. {
  25. path: '/transfer',
  26. component: () => import('@/student/download/transfer'),
  27. meta: {
  28. title: '管乐团'
  29. }
  30. },
  31. ]
  32. export default [
  33. {
  34. path: '/',
  35. component: Auth,
  36. children: [
  37. ...router,
  38. {
  39. path: '/login',
  40. name: 'login',
  41. component: () => import('@/views/layout/login'),
  42. meta: {
  43. isRegister: false
  44. } as metaType
  45. },
  46. {
  47. path: '/home',
  48. name: 'home',
  49. component: () => import('@/student/home/index')
  50. },
  51. {
  52. path: '/coupons',
  53. name: 'coupons',
  54. component: () => import('@/student/coupons/index'),
  55. meta: {
  56. title: '优惠券'
  57. }
  58. },
  59. {
  60. path: '/memberCenter',
  61. name: 'memberCenter',
  62. component: () => import('@/student/member-center/index'),
  63. meta: {
  64. title: '会员中心'
  65. }
  66. },
  67. {
  68. path: '/tradeRecord',
  69. name: 'tradeRecord',
  70. component: () => import('@/student/trade-record/index'),
  71. meta: {
  72. title: '交易记录'
  73. }
  74. },
  75. {
  76. path: '/my-orchestra',
  77. name: 'my-orchestra',
  78. component: () => import('@/student/my-orchestra/index'),
  79. meta: {
  80. title: '我的乐团'
  81. }
  82. },
  83. {
  84. path: '/photo-detail',
  85. name: 'photo-detail',
  86. component: () => import('@/student/my-orchestra/photo-detail'),
  87. meta: {
  88. title: '相片'
  89. }
  90. },
  91. {
  92. path: '/apply-withdrawal',
  93. name: 'apply-withdrawal',
  94. component: () => import('@/student/my-orchestra/apply-withdrawal'),
  95. meta: {
  96. title: '申请退团'
  97. }
  98. },
  99. {
  100. path: '/attendance-rule',
  101. name: 'attendance-rule',
  102. component: () => import('@/views/attendance-rule/index'),
  103. meta: {
  104. title: '考勤规则'
  105. }
  106. },
  107. {
  108. path: '/ranking-list',
  109. name: 'ranking-list',
  110. component: () => import('@/student/ranking-list/index'),
  111. meta: {
  112. title: '排行榜'
  113. }
  114. },
  115. {
  116. path: '/exercise-record',
  117. name: 'exercise-record',
  118. component: () => import('@/views/exercise-record'),
  119. meta: {
  120. title: '练习记录'
  121. }
  122. },
  123. {
  124. path: '/exercis-detail',
  125. name: 'exercis-detail',
  126. component: () => import('@/views/exercise-record/exercis-detail'),
  127. meta: {
  128. title: '练习统计'
  129. }
  130. }
  131. ]
  132. },
  133. {
  134. // 只针对乐团报名
  135. path: '/msuicGroup',
  136. component: MusicAuth,
  137. children: [
  138. {
  139. path: '/loginMusic',
  140. name: 'loginMusic',
  141. component: () => import('@/student/music-group/layout/login'),
  142. meta: {
  143. isRegister: false
  144. } as metaType
  145. },
  146. {
  147. path: '/preApply',
  148. name: 'preApply',
  149. component: () => import('@/student/music-group/pre-apply/index'),
  150. meta: {
  151. title: '乐团报名'
  152. }
  153. },
  154. {
  155. path: '/orderDetail',
  156. name: 'orderDetail',
  157. component: () => import('@/student/music-group/pre-apply/order-detail'),
  158. meta: {
  159. title: '订单详情'
  160. }
  161. },
  162. {
  163. path: '/shopAddress',
  164. name: 'shopAddress',
  165. component: () => import('@/student/music-group/shop-address/index'),
  166. meta: {
  167. title: '收货地址'
  168. }
  169. },
  170. {
  171. path: '/addressOperation',
  172. name: 'addressOperation',
  173. component: () => import('@/student/music-group/shop-address/address-operation'),
  174. meta: {
  175. title: '收货地址'
  176. }
  177. }
  178. // 非乐团报名的路由不要放在这里,放到上面去
  179. ]
  180. },
  181. ...noLoginRouter,
  182. ...rootRouter
  183. ]