routes-common.ts 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. const paymentType = (window as any).paymentType
  2. // 需要登录的路由
  3. export const router = [
  4. {
  5. path: '/lessonCourseware',
  6. name: 'lessonCourseware',
  7. component: () => import('@/views/lessonCourseware/index'),
  8. meta: {
  9. title: '选择课件'
  10. }
  11. },
  12. {
  13. path: '/courseList',
  14. name: 'courseList',
  15. component: () => import('@/views/courseList/index'),
  16. meta: {
  17. title: '课程列表'
  18. }
  19. },
  20. {
  21. path: '/coursewarePlay',
  22. name: 'coursewarePlay',
  23. component: () => import('@/views/coursewarePlay/index'),
  24. meta: {
  25. title: '课程播放'
  26. }
  27. },
  28. {
  29. path: '/information-detail',
  30. name: 'information-detail',
  31. component: () => import('@/views/information/information-detail'),
  32. meta: {
  33. title: '资讯详情'
  34. }
  35. },
  36. {
  37. path: '/notice-detail',
  38. name: 'notice-detail',
  39. component: () => import('@/views/information/notice-detail'),
  40. meta: {
  41. title: '公告详情'
  42. }
  43. }
  44. ]
  45. // 不需要登录的路由
  46. export const rootRouter = [
  47. {
  48. path: '/payCenter',
  49. name: 'payCenter',
  50. component: () => import('@/views/adapay/pay-center'),
  51. meta: {
  52. title: '支付'
  53. }
  54. },
  55. {
  56. path: '/payDefine',
  57. name: 'payDefine',
  58. component: () => import('@/views/adapay/pay-define'),
  59. meta: {
  60. title: '支付'
  61. }
  62. },
  63. {
  64. path: '/payResult',
  65. name: 'payResult',
  66. component: () => import('@/views/adapay/pay-result'),
  67. meta: {
  68. title: '支付'
  69. }
  70. },
  71. {
  72. path: '/preview-protocol',
  73. name: 'preview-protocol',
  74. component: () => import('@/views/preview-protocol/index'),
  75. meta: {
  76. title: '管乐团用户注册协议'
  77. }
  78. },
  79. {
  80. path: '/:pathMatch(.*)*',
  81. component: () => import('@/views/404'),
  82. meta: {
  83. title: '404 Not Fund',
  84. platform: paymentType
  85. }
  86. }
  87. ]