routes-student.ts 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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. export default [
  18. {
  19. path: '/',
  20. component: Auth,
  21. children: [
  22. ...router,
  23. {
  24. path: '/login',
  25. name: 'login',
  26. component: () => import('@/views/layout/login'),
  27. meta: {
  28. isRegister: false
  29. } as metaType
  30. },
  31. {
  32. path: '/home',
  33. name: 'home',
  34. component: () => import('@/student/home/index')
  35. },
  36. {
  37. path: '/coupons',
  38. name: 'coupons',
  39. component: () => import('@/student/coupons/index'),
  40. meta: {
  41. title: '优惠券'
  42. }
  43. },
  44. {
  45. path: '/memberCenter',
  46. name: 'memberCenter',
  47. component: () => import('@/student/member-center/index'),
  48. meta: {
  49. title: '会员中心'
  50. }
  51. },
  52. {
  53. path: '/tradeRecord',
  54. name: 'tradeRecord',
  55. component: () => import('@/student/trade-record/index'),
  56. meta: {
  57. title: '交易记录'
  58. }
  59. },
  60. {
  61. path: '/my-orchestra',
  62. name: 'my-orchestra',
  63. component: () => import('@/student/my-orchestra/index'),
  64. meta: {
  65. title: '我的乐团'
  66. }
  67. }, {
  68. path: '/photo-detail',
  69. name: 'photo-detail',
  70. component: () => import('@/student/my-orchestra/photo-detail'),
  71. meta: {
  72. title: '相片'
  73. }
  74. }, {
  75. path: '/apply-withdrawal',
  76. name: 'apply-withdrawal',
  77. component: () => import('@/student/my-orchestra/apply-withdrawal'),
  78. meta: {
  79. title: '申请退团'
  80. }
  81. }
  82. ]
  83. },
  84. {
  85. path: '/msuicGroup',
  86. component: MusicAuth,
  87. children: [
  88. {
  89. path: '/loginMusic',
  90. name: 'loginMusic',
  91. component: () => import('@/student/music-group/layout/login'),
  92. meta: {
  93. isRegister: false
  94. } as metaType
  95. },
  96. {
  97. path: '/preApply',
  98. name: 'preApply',
  99. component: () => import('@/student/music-group/pre-apply/index'),
  100. meta: {
  101. title: '乐团报名'
  102. }
  103. },
  104. {
  105. path: '/orderDetail',
  106. name: 'orderDetail',
  107. component: () => import('@/student/music-group/pre-apply/order-detail'),
  108. meta: {
  109. title: '订单详情'
  110. }
  111. },
  112. {
  113. path: '/shopAddress',
  114. name: 'shopAddress',
  115. component: () => import('@/student/music-group/shop-address/index'),
  116. meta: {
  117. title: '收货地址'
  118. }
  119. },
  120. {
  121. path: '/addressOperation',
  122. name: 'addressOperation',
  123. component: () => import('@/student/music-group/shop-address/address-operation'),
  124. meta: {
  125. title: '收货地址'
  126. }
  127. },
  128. {
  129. path: '/attendance-rule',
  130. name: 'attendance-rule',
  131. component: () => import('@/views/attendance-rule/index'),
  132. meta: {
  133. title: '考勤规则'
  134. }
  135. },
  136. {
  137. path: '/ranking-list',
  138. name: 'ranking-list',
  139. component: () => import('@/student/ranking-list/index'),
  140. meta: {
  141. title: '排行榜'
  142. }
  143. }
  144. ]
  145. },
  146. ...noLoginRouter,
  147. ...rootRouter
  148. ]