routes-common.ts 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. // 不需要登录的路由
  30. export const rootRouter = [
  31. {
  32. path: '/information-detail',
  33. name: 'information-detail',
  34. component: () => import('@/views/information/information-detail'),
  35. meta: {
  36. title: '资讯详情'
  37. }
  38. },
  39. {
  40. path: '/payCenter',
  41. name: 'payCenter',
  42. component: () => import('@/views/adapay/pay-center'),
  43. meta: {
  44. title: '支付'
  45. }
  46. },
  47. {
  48. path: '/payDefine',
  49. name: 'payDefine',
  50. component: () => import('@/views/adapay/pay-define'),
  51. meta: {
  52. title: '支付'
  53. }
  54. },
  55. {
  56. path: '/payResult',
  57. name: 'payResult',
  58. component: () => import('@/views/adapay/pay-result'),
  59. meta: {
  60. title: '支付'
  61. }
  62. },
  63. {
  64. path: '/:pathMatch(.*)*',
  65. component: () => import('@/views/404'),
  66. meta: {
  67. title: '404 Not Fund',
  68. platform: paymentType
  69. }
  70. }
  71. ]