123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379 |
- import Auth from '@/teacher/layout/auth'
- import { router, rootRouter } from './routes-common'
- type metaType = {
- isRegister: boolean
- }
- // 不需要登录的路由
- const noLoginRouter = [
- {
- path: '/shareVideo',
- name: 'shareVideo',
- component: () => import('@/teacher/share-page/share-video/index'),
- meta: {
- title: '分享视频课'
- }
- },
- {
- path: '/shareLive',
- name: 'shareLive',
- component: () => import('@/teacher/share-page/share-live/index'),
- meta: {
- title: '分享直播课'
- }
- },
- {
- path: '/shareMall',
- name: 'shareMall',
- component: () => import('@/teacher/share-page/share-mall/index'),
- meta: {
- title: '分享商品'
- }
- },
- {
- path: '/shareVip',
- name: 'shareVip',
- component: () => import('@/teacher/share-page/share-vip/index'),
- meta: {
- title: '会员中心'
- }
- },
- {
- path: '/shareAblum',
- name: 'shareAblum',
- component: () => import('@/teacher/share-page/share-album/index'),
- meta: {
- title: '分享专辑'
- }
- },
- {
- path: '/shareMusic',
- name: 'shareMusic',
- component: () => import('@/teacher/share-page/share-music/index'),
- meta: {
- title: '分享曲谱'
- }
- },
- {
- path: '/login-cert',
- name: 'login-cert',
- component: () => import('@/teacher/layout/login-cert'),
- meta: {
- isRegister: false,
- title: '老师入驻'
- } as metaType
- }
- ]
- export default [
- {
- path: '/',
- component: Auth,
- children: [
- ...router,
- {
- path: '/login',
- name: 'login',
- component: () => import('@/teacher/layout/login'),
- meta: {
- isRegister: false
- } as metaType
- },
- {
- path: '/home',
- name: 'home',
- component: () => import('@/teacher/home/index')
- },
- {
- path: '/teacherCert',
- name: 'teacherCert',
- component: () => import('@/teacher/teacher-cert/index'),
- meta: {
- title: '达人认证'
- }
- },
- {
- path: '/teacherCertUpdate',
- name: 'teacherCertUpdate',
- component: () =>
- import('@/teacher/teacher-cert/teacher-cert-update/index'),
- meta: {
- title: '资料修改'
- }
- },
- {
- path: '/music-upload',
- component: () => import('@/teacher/music/upload'),
- meta: {
- title: '上传曲谱'
- }
- },
- {
- path: '/music-upload/:id/edit',
- component: () => import('@/teacher/music/upload'),
- meta: {
- title: '修改曲谱'
- }
- },
- // {
- // path: '/music-list',
- // component: () => import('@/teacher/music/list/switch'),
- // meta: {
- // title: '曲谱列表'
- // }
- // },
- {
- path: '/review-list',
- component: () => import('@/teacher/review/list'),
- meta: {
- title: '曲谱审核列表'
- }
- },
- {
- path: '/review/:id',
- component: () => import('@/teacher/review/detail'),
- meta: {
- title: '曲谱审核详情'
- }
- },
- {
- path: '/openLive',
- name: 'openLive',
- component: () => import('@/teacher/open-live/index'),
- meta: {
- title: '开通直播'
- }
- },
- {
- path: '/liveDetail',
- name: 'liveDetail',
- component: () => import('@/teacher/live-class/live-detail'),
- meta: {
- title: '直播课详情'
- }
- },
- {
- path: '/musicCert',
- name: 'musicCert',
- component: () => import('@/teacher/music-cert/index'),
- meta: {
- title: '音乐人认证'
- }
- },
- {
- path: '/videoCreate',
- name: 'videoCreate',
- component: () => import('@/teacher/video-class/create'),
- meta: {
- title: '创建视频课'
- }
- },
- {
- path: '/videoDetail',
- name: 'videoDetail',
- component: () => import('@/teacher/video-class/video-detail'),
- meta: {
- title: '视频课详情'
- }
- },
- {
- path: '/videoClassDetail',
- name: 'videoClassDetail',
- component: () => import('@/teacher/video-class/video-class-detail'),
- meta: {
- title: '视频课详情'
- }
- },
- {
- path: '/liveCreate',
- name: 'liveCreate',
- component: () => import('@/teacher/live-class/create'),
- meta: {
- title: '创建直播课'
- }
- },
- {
- path: '/practiceSetting',
- name: 'practiceSetting',
- component: () => import('@/teacher/practice-class/practice-setting'),
- meta: {
- title: '趣纠课设置'
- }
- },
- {
- path: '/practiceSettingTimer',
- name: 'practiceSettingTimer',
- component: () => import('@/teacher/practice-class/timer/timer'),
- meta: {
- title: '设置约课时间段'
- }
- },
- {
- path: '/myFans',
- name: 'myFans',
- component: () => import('@/teacher/my-fans/index'),
- meta: {
- title: '我的粉丝'
- }
- },
- {
- path: '/pianoRoom',
- name: 'pianoRoom',
- component: () => import('@/teacher/piano-room/index'),
- meta: {
- title: '云酷琴房'
- }
- },
- {
- path: '/courseRecord',
- name: 'courseRecord',
- component: () => import('@/teacher/piano-room/course-record'),
- meta: {
- title: '课程记录'
- }
- },
- {
- path: '/accountRechargeTimer',
- name: 'accountRechargeTimer',
- component: () => import('@/teacher/piano-room/account-recharge-timer'),
- meta: {
- title: '账户充值'
- }
- },
- {
- path: '/myStudent',
- name: 'myStudent',
- component: () => import('@/teacher/piano-room/my-student'),
- meta: {
- title: '我的学员'
- }
- },
- {
- path: '/classArrangement',
- name: 'classArrangement',
- component: () => import('@/teacher/piano-room/class-arrangement'),
- meta: {
- title: '排课'
- }
- },
- {
- path: '/createClass',
- name: 'createClass',
- component: () =>
- import('@/teacher/piano-room/class-arrangement/create-class'),
- meta: {
- title: '创建直播课'
- }
- },
- {
- path: '/rechargeRecord',
- name: 'rechargeRecord',
- component: () => import('@/teacher/piano-room/recharge-record'),
- meta: {
- title: '交易记录'
- }
- },
- {
- path: '/cashProtocol',
- name: 'cashProtocol',
- component: () => import('@/teacher/cash-protocol/index'),
- meta: {
- title: '结算协议'
- }
- },
- {
- path: '/incomeConsus',
- name: 'incomeConsus',
- component: () => import('@/teacher/income-consus/index'),
- meta: {
- title: '收入统计'
- }
- },
- {
- path: '/extendPlan',
- name: 'extendPlan',
- component: () => import('@/teacher/extend-plan/index'),
- meta: {
- title: '推广计划'
- }
- },
- {
- path: '/extendPlanDetail',
- name: 'extendPlanDetail',
- component: () => import('@/teacher/extend-plan/detail'),
- meta: {
- title: '推广计划'
- }
- },
- {
- path: '/track-review-activity',
- component: () =>
- import('@/teacher/share-page/track-review-activity/index'),
- meta: {
- title: '曲目评测活动'
- }
- },
- {
- path: '/leaderboard',
- component: () => import('@/teacher/leaderboard/index'),
- meta: {
- title: '曲目挑战排行榜'
- // isExternal: true // 是否外部浏览器可以打开
- }
- },
- {
- path: '/mySheetMusic',
- component: () => import('@/teacher/my-sheetMusic'),
- meta: {
- title: '我的乐谱'
- }
- },
- {
- path: '/teacherHome',
- component: () => import('@/teacher/teacher-dependent/teacher-home'),
- meta: {
- title: '老师主页'
- }
- },
- {
- path: '/train-tool',
- component: () => import('@/tenant/music/train-tool'),
- meta: {
- title: '训练教程'
- }
- },
- {
- path: '/courseList',
- component: () => import('@/tenant/music/courseList'),
- meta: {
- title: '教程详情'
- }
- },
- {
- path: '/coursewarePlay',
- component: () => import('@/tenant/music/coursewarePlay'),
- meta: {
- title: '教程播放'
- }
- },
- {
- path: '/upload-protocol',
- component: () => import('@/teacher/music/upload-protocol'),
- meta: {
- title: '协议'
- }
- }
- ]
- },
- ...rootRouter,
- ...noLoginRouter,
- {
- path: '/:pathMatch(.*)*',
- component: () => import('@/views/404'),
- meta: {
- title: '404 Not Fund',
- platform: 'TEACHER'
- }
- }
- ]
|