routes-student.ts 4.2 KB

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