123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159 |
- import Vue from 'vue'
- import Router from 'vue-router'
- import login from '@/containers/login/login'
- // import Register from '@/containers/register/registation'
- import Register from '@/containers/register/register.vue'
- import NewInfo from '@/containers/post/info.vue'
- import Reset from '@/containers/reset/reset'
- import main from '@/containers/main/main'
- import center from '@/containers/center/center'
- import Play from '@/containers/center/play/index.vue'
- import Index from '@/containers/main/index/index'
- import Profile from '@/containers/main/profile/profile'
- import Apply from '@/containers/main/apply/apply'
- import PostList from '@/containers/main/post/list'
- import PostInfo from '@/containers/main/post/info'
- import HelpList from '@/containers/main/help/list'
- import AboutMe from '@/containers/main/about/aboutMe'
- import Verify from '@/containers/main/verify/index'
- import CenterHome from '@/containers/center/home/index'
- import CenterSetting from '@/containers/center/setting/index'
- import CenterTrain from '@/containers/center/class/train/index'
- import CenterOffline from '@/containers/center/class/offline/index'
- import CenterStudyArchives from '@/containers/center/studyArchives/index'
- import CenterMyNotes from '@/containers/center/myNotes/index'
- import CenterMyOrder from '@/containers/center/myOrder/index'
- import CenterMessage from '@/containers/center/message/index'
- import CenterSign from '@/containers/center/sign/index'
- import CenterMarket from '@/containers/center/market/index'
- import CenterExam from '@/containers/center/exam/index'
- Vue.use(Router)
- export default new Router({
- routes: [{
- path: '/',
- name: 'login',
- component: login,
- },
- {
- path: '/register',
- name: 'register',
- component: Register,
- },
- {
- path: '/news',
- name: 'news',
- component: NewInfo,
- },
- {
- path: '/reset',
- name: 'reset',
- component: Reset,
- },
- {
- path: '/main',
- name: 'main',
- component: main,
- children: [{
- path: 'index',
- component: Index,
- },
- {
- path: 'about',
- component: AboutMe,
- },
- {
- path: 'profile',
- component: Profile,
- },
- {
- path: 'apply',
- component: Apply,
- },
- {
- path: 'postlist/:type',
- component: PostList,
- },
- {
- path: 'post/:postId',
- component: PostInfo,
- },
- {
- path: 'help',
- component: HelpList,
- },
- {
- path: 'verify',
- component: Verify,
- }
- ]
- },
- {
- path: '/center',
- name: 'center',
- component: center,
- children: [{
- path: 'home',
- component: CenterHome,
- },
- {
- path: 'class/train',
- component: CenterTrain,
- },
- {
- path: 'class/offline',
- component: CenterOffline,
- },
- {
- path: 'play/:courseId',
- name: 'play',
- component: Play,
- },
- {
- path: 'studyArchives',
- component: CenterStudyArchives,
- },
- {
- path: 'myOrder',
- component: CenterMyOrder,
- },
- {
- path: 'myNotes',
- component: CenterMyNotes,
- },
- {
- path: 'message',
- component: CenterMessage,
- },
- {
- path: 'exam/:courseId',
- component: CenterExam,
- },
- {
- path: 'market',
- component: CenterMarket,
- },
- {
- path: 'sign',
- component: CenterSign,
- },
- {
- path: 'setting',
- component: CenterSetting,
- }
- ],
- }
- ]
- })
|