1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- const paymentType = (window as any).paymentType
- // 需要登录的路由
- export const router = [
- {
- path: '/lessonCourseware',
- name: 'lessonCourseware',
- component: () => import('@/views/lessonCourseware/index'),
- meta: {
- title: '选择课件'
- }
- },
- {
- path: '/courseList',
- name: 'courseList',
- component: () => import('@/views/courseList/index'),
- meta: {
- title: '课程列表'
- }
- },
- {
- path: '/coursewarePlay',
- name: 'coursewarePlay',
- component: () => import('@/views/coursewarePlay/index'),
- meta: {
- title: '课程播放'
- }
- },
- {
- path: '/information-detail',
- name: 'information-detail',
- component: () => import('@/views/information/information-detail'),
- meta: {
- title: '资讯详情'
- }
- },
- {
- path: '/notice-detail',
- name: 'notice-detail',
- component: () => import('@/views/information/notice-detail'),
- meta: {
- title: '公告详情'
- }
- }
- ]
- // 不需要登录的路由
- export const rootRouter = [
- {
- path: '/payCenter',
- name: 'payCenter',
- component: () => import('@/views/adapay/pay-center'),
- meta: {
- title: '支付'
- }
- },
- {
- path: '/payDefine',
- name: 'payDefine',
- component: () => import('@/views/adapay/pay-define'),
- meta: {
- title: '支付'
- }
- },
- {
- path: '/payResult',
- name: 'payResult',
- component: () => import('@/views/adapay/pay-result'),
- meta: {
- title: '支付'
- }
- },
- {
- path: '/preview-protocol',
- name: 'preview-protocol',
- component: () => import('@/views/preview-protocol/index'),
- meta: {
- title: '管乐团用户注册协议'
- }
- },
- {
- path: '/:pathMatch(.*)*',
- component: () => import('@/views/404'),
- meta: {
- title: '404 Not Fund',
- platform: paymentType
- }
- }
- ]
|