routes-student.ts 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. import Auth from '@/student/layout/auth'
  2. import { router, rootRouter } from './routes-common'
  3. type metaType = {
  4. isRegister: boolean
  5. }
  6. const noLoginRouter = [
  7. {
  8. path: '/share-music-sheet',
  9. name: 'share-music-sheet',
  10. component: () => import('@/teacher/share-page/share-music-sheet/index'),
  11. meta: {
  12. title: '分享乐曲'
  13. }
  14. }
  15. ]
  16. export default [
  17. {
  18. path: '/',
  19. component: Auth,
  20. children: [
  21. ...router,
  22. {
  23. path: '/login',
  24. name: 'login',
  25. component: () => import('@/student/layout/login'),
  26. meta: {
  27. isRegister: false
  28. } as metaType
  29. },
  30. {
  31. path: '/home',
  32. name: 'home',
  33. component: () => import('@/student/home/index')
  34. },
  35. {
  36. path: '/practiceClass',
  37. name: 'practiceClass',
  38. component: () => import('@/student/practice-class/index'),
  39. meta: {
  40. title: '陪练课'
  41. }
  42. },
  43. {
  44. path: '/videoDetail',
  45. name: 'videoDetail',
  46. component: () => import('@/student/video-class/video-detail'),
  47. meta: {
  48. title: '视频课'
  49. }
  50. },
  51. {
  52. path: '/videoClassDetail',
  53. name: 'videoClassDetail',
  54. component: () => import('@/student/video-class/video-class-detail'),
  55. meta: {
  56. title: '视频课详情'
  57. }
  58. },
  59. {
  60. path: '/liveDetail',
  61. name: 'liveDetail',
  62. component: () => import('@/student/live-class/live-detail'),
  63. meta: {
  64. title: '直播课详情'
  65. }
  66. },
  67. {
  68. path: '/memberRecord',
  69. name: 'memberRecord',
  70. component: () => import('@/student/member-center/member-record'),
  71. meta: {
  72. title: '训练统计'
  73. }
  74. },
  75. {
  76. path: '/tradeRecord',
  77. name: 'tradeRecord',
  78. component: () => import('@/student/trade/index'),
  79. meta: {
  80. title: '交易记录'
  81. }
  82. },
  83. {
  84. path: '/teacherHome',
  85. name: 'teacherHome',
  86. component: () => import('@/student/teacher-dependent/teacher-home'),
  87. meta: {
  88. title: '老师主页'
  89. }
  90. },
  91. {
  92. path: '/teacherElegant',
  93. name: 'teacherElegant',
  94. component: () => import('@/student/teacher-dependent/teacher-elegant'),
  95. meta: {
  96. title: '老师风采'
  97. }
  98. },
  99. {
  100. path: '/music-upload',
  101. component: () => import('@/teacher/music/upload'),
  102. meta: {
  103. title: '上传曲谱'
  104. }
  105. },
  106. {
  107. path: '/teacherFollow',
  108. component: () => import('@/student/teacher-dependent/teacher-follow'),
  109. meta: {
  110. title: '我的关注'
  111. }
  112. }
  113. ]
  114. },
  115. ...noLoginRouter,
  116. ...rootRouter,
  117. {
  118. path: '/inviteTeacher',
  119. name: 'inviteTeacher',
  120. component: () => import('@/student/invite-teacher/index'),
  121. meta: {
  122. title: '邀请学员'
  123. }
  124. },
  125. {
  126. path: '/inviteSuccess',
  127. name: 'inviteSuccess',
  128. component: () => import('@/student/invite-teacher/invite-success'),
  129. meta: {
  130. title: '注册成功'
  131. }
  132. },
  133. {
  134. path: '/transfer',
  135. component: () => import('@/student/down-load/transfer'),
  136. meta: {
  137. title: '酷乐秀学院'
  138. }
  139. },
  140. {
  141. path: '/download',
  142. component: () => import('@/student/down-load/download')
  143. },
  144. {
  145. path: '/:pathMatch(.*)*',
  146. component: () => import('@/views/404'),
  147. meta: {
  148. title: '404 Not Fund',
  149. platform: 'STUDENT'
  150. }
  151. }
  152. ]