routes-common.ts 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. const paymentType = (window as any).paymentType
  2. import { RouteRecordRaw } from 'vue-router'
  3. // 需要登录的路由
  4. export const router: RouteRecordRaw[] = [
  5. {
  6. path: '/lessonCourseware',
  7. name: 'lessonCourseware',
  8. component: () => import('@/views/lessonCourseware/index'),
  9. meta: {
  10. title: '选择课件'
  11. }
  12. },
  13. {
  14. path: '/courseList',
  15. name: 'courseList',
  16. component: () => import('@/views/courseList/index'),
  17. meta: {
  18. title: '课程列表'
  19. }
  20. },
  21. {
  22. path: '/coursewarePlay',
  23. name: 'coursewarePlay',
  24. component: () => import('@/views/coursewarePlay/index'),
  25. meta: {
  26. title: '课程播放'
  27. }
  28. },
  29. {
  30. path: '/exerciseAfterClass',
  31. name: 'exerciseAfterClass',
  32. component: () => import('@/views/exercise-after-class/index'),
  33. meta: {
  34. title: '观看视频'
  35. }
  36. },
  37. {
  38. path: '/accompany',
  39. name: 'accompany',
  40. component: () => import('@/views/accompany/index'),
  41. meta: {
  42. title: '云教练'
  43. },
  44. children: [
  45. {
  46. path: '',
  47. name: 'category',
  48. component: () => import('@/views/accompany/category')
  49. },
  50. {
  51. path: 'musicList',
  52. name: 'music-list',
  53. component: () => import('@/views/accompany/music-list')
  54. },
  55. ]
  56. },
  57. {
  58. path: '/information-list',
  59. name: 'information-list',
  60. component: () => import('@/views/information'),
  61. meta: {
  62. title: '资讯列表'
  63. }
  64. },
  65. {
  66. path: '/information-detail',
  67. name: 'information-detail',
  68. component: () => import('@/views/information/information-detail'),
  69. meta: {
  70. title: '资讯详情'
  71. }
  72. },
  73. {
  74. path: '/notice-detail',
  75. name: 'notice-detail',
  76. component: () => import('@/views/information/notice-detail'),
  77. meta: {
  78. title: '公告详情'
  79. }
  80. },
  81. {
  82. path: '/help-center',
  83. name: 'help-center',
  84. component: () => import('@/views/information/help-center'),
  85. meta: {
  86. title: '帮助中心'
  87. }
  88. },
  89. {
  90. path: '/help-detail',
  91. name: 'help-detail',
  92. component: () => import('@/views/information/help-center/detail'),
  93. meta: {
  94. title: '帮助中心详情'
  95. }
  96. },
  97. {
  98. path: '/unit-test',
  99. name: 'unit-test',
  100. component: () => import('@/views/unit-test'),
  101. meta: {
  102. title: '单元测验'
  103. }
  104. },
  105. {
  106. path: '/unit-detail',
  107. name: 'unit-detail',
  108. component: () => import('@/views/unit-test/unit-detail'),
  109. meta: {
  110. title: '测验详情'
  111. }
  112. },
  113. {
  114. path: '/test-exercise',
  115. name: 'test-exercise',
  116. component: () => import('@/views/unit-test/test-exercise'),
  117. meta: {
  118. title: '测试练习'
  119. }
  120. },
  121. {
  122. path: '/practice-mode',
  123. name: 'practice-mode',
  124. component: () => import('@/views/unit-test/practice-mode'),
  125. meta: {
  126. title: '练习模式'
  127. }
  128. },
  129. {
  130. path: '/examination-mode',
  131. name: 'examination-mode',
  132. component: () => import('@/views/unit-test/examination-mode'),
  133. meta: {
  134. title: '测试详情'
  135. }
  136. },
  137. {
  138. path: '/approval-manage-subsidy',
  139. name: 'approval-manage-subsidy',
  140. component: () => import('@/school/approval-manage/subsidy/index'),
  141. meta: {
  142. title: '补助确认'
  143. }
  144. },
  145. {
  146. path: '/mine-orchestra',
  147. name: 'mine-orchestra',
  148. component: () => import('@/views/mine-orchestra/index'),
  149. meta: {
  150. title: '我的乐团'
  151. }
  152. },
  153. {
  154. path: '/photo-list',
  155. name: 'photo-list',
  156. component: () => import('@/views/mine-orchestra/photo-list/index'),
  157. meta: {
  158. title: '我的乐团'
  159. }
  160. },
  161. {
  162. path: '/photo-list',
  163. name: 'photo-list',
  164. component: () => import('@/views/mine-orchestra/photo-list/index'),
  165. meta: {
  166. title: '我的乐团'
  167. }
  168. },
  169. {
  170. path: '/photo-list-detail',
  171. name: 'photo-list-detail',
  172. component: () => import('@/views/mine-orchestra/photo-list/detail'),
  173. meta: {
  174. title: '我的乐团'
  175. }
  176. },
  177. ]
  178. // 不需要登录的路由
  179. export const rootRouter = [
  180. {
  181. path: '/payCenter',
  182. name: 'payCenter',
  183. component: () => import('@/views/adapay/pay-center'),
  184. meta: {
  185. title: '支付'
  186. }
  187. },
  188. {
  189. path: '/payDefine',
  190. name: 'payDefine',
  191. component: () => import('@/views/adapay/pay-define'),
  192. meta: {
  193. title: '支付'
  194. }
  195. },
  196. {
  197. path: '/payResult',
  198. name: 'payResult',
  199. component: () => import('@/views/adapay/pay-result'),
  200. meta: {
  201. title: '支付'
  202. }
  203. },
  204. {
  205. path: '/preview-protocol',
  206. name: 'preview-protocol',
  207. component: () => import('@/views/preview-protocol/index'),
  208. meta: {
  209. title: '管乐团用户注册协议'
  210. }
  211. },
  212. {
  213. path: '/privacyProtocol',
  214. name: 'privacyProtocol',
  215. component: () => import('@/views/preview-protocol/privacy'),
  216. meta: {
  217. title: '管乐团隐私政策'
  218. }
  219. },
  220. {
  221. path: '/cashProtocol',
  222. name: 'cashProtocol',
  223. component: () => import('@/views/preview-protocol/cash-protocol'),
  224. meta: {
  225. title: '管乐团隐私政策'
  226. }
  227. },
  228. {
  229. path: '/guide',
  230. name: 'guide',
  231. component: () => import('@/views/guide/guide'),
  232. meta: {
  233. title: '投屏帮助'
  234. }
  235. },
  236. {
  237. path: '/follow-account',
  238. name: 'follow-account',
  239. component: () => import('@/views/follow-account'),
  240. meta: {
  241. title: '关注微信公众号'
  242. }
  243. },
  244. {
  245. path: '/:pathMatch(.*)*',
  246. component: () => import('@/views/404'),
  247. meta: {
  248. title: '404 Not Fund',
  249. platform: paymentType
  250. }
  251. }
  252. ]