123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230 |
- import Vue from 'vue'
- import Router from 'vue-router'
-
- import mainPage from './mainPage/index'
- import indexPage from './mainPage/indexPage/index'
- import fiveA from './fiveA/index'
- import majorProjects from './majorProjects/index'
- import majorProjectsList from './majorProjectsList/index'
- import majorProjectsDetail from './majorProjectsDetail/index'
- import placeOrderForCourse from './placeOrderForCourse/index'
- import coffeeIndex from './mainPage/coffeeIndex/index'
- import placeOrder from './placeOrder/index'
- import placeOrderDetail from './placeOrderDetail/index'
- import orderList from './orderList/index'
- import libraryIndex from './mainPage/libraryIndex/index'
- import userCenter from './mainPage/userCenter/index'
- import bindMobile from './bindMobile/bindMobile'
- import lessonOrder from './lessonOrder/index'
- import vip from './vip/index'
- import vipDetail from './vipDetail/index'
- import card from './card/index'
- import coupons from './coupons/index'
- import courseList from './courseList/index'
- import lessonDetail from './lessonDetail/index'
- import cardDetail from './cardDetail/index'
- import gymCardDetail from './gymCardDetail/index'
- import couponsDetail from './couponsDetail/index'
- import receive from './receive/index'
- import receiveResults from './receiveResults/index'
- import receiveChannel from './receiveChannel/index'
- import rush from './rush/index'
- import calendar from './calendar/calendar'
- import activeList from './activeList/activeList'
- import customizationDetail from './customization/customizationDetail'
- import customizationList from './customization/customizationList'
- import checkModel from './calendar/checkModel'
- import making from './calendar/making'
- import preview from './calendar/preview'
-
- Vue.use(Router)
-
- const router = new Router({
- routes: [{
- path: '/mainPage',
- name: 'mainPage',
- component: mainPage,
- children: [{
- path: 'indexPage',
- name: 'indexPage',
- component: indexPage,
- children: []
- }, {
- path: 'coffeeIndex',
- name: 'coffeeIndex',
- component: coffeeIndex,
- children: []
- }, {
- path: 'libraryIndex',
- name: 'libraryIndex',
- component: libraryIndex,
- children: []
- }, {
- path: 'userCenter',
- name: 'userCenter',
- component: userCenter,
- children: []
- }]
- }, {
- path: '/placeOrder',
- name: 'placeOrder',
- component: placeOrder,
- children: []
- }, {
- path: '/placeOrderDetail',
- name: 'placeOrderDetail',
- component: placeOrderDetail,
- children: []
- }, {
- path: '/orderList',
- name: 'orderList',
- component: orderList,
- children: []
- }, {
- path: '/majorProjects',
- name: 'majorProjects',
- component: majorProjects,
- children: []
- }, {
- path: '/courseList',
- name: 'courseList',
- component: courseList,
- children: []
- }, {
- path: '/majorProjectsList',
- name: 'majorProjectsList',
- component: majorProjectsList,
- children: []
- }, {
- path: '/majorProjectsDetail',
- name: 'majorProjectsDetail',
- component: majorProjectsDetail,
- children: []
- }, {
- path: '/placeOrderForCourse',
- name: 'placeOrderForCourse',
- component: placeOrderForCourse,
- children: []
- }, {
- path: '/fiveA',
- name: 'fiveA',
- component: fiveA,
- children: []
- }, {
- path: '/bindMobile',
- name: 'bindMobile',
- component: bindMobile,
- children: []
- }, {
- path: '/lessonOrder',
- name: 'lessonOrder',
- component: lessonOrder,
- children: []
- }, {
- path: '/vip',
- name: 'vip',
- component: vip,
- children: []
- }, {
- path: '/vipDetail',
- name: 'vipDetail',
- component: vipDetail,
- children: []
- }, {
- path: '/card',
- name: 'card',
- component: card,
- children: []
- }, {
- path: '/coupons',
- name: 'coupons',
- component: coupons,
- children: []
- }, {
- path: '/lessonDetail',
- name: 'lessonDetail',
- component: lessonDetail,
- children: []
- }, {
- path: '/cardDetail',
- name: 'cardDetail',
- component: cardDetail,
- children: []
- }, {
- path: '/gymCardDetail',
- name: 'gymCardDetail',
- component: gymCardDetail,
- children: []
- }, {
- path: '/couponsDetail',
- name: 'couponsDetail',
- component: couponsDetail,
- children: []
- }, {
- path: '/receive',
- name: 'receive',
- component: receive,
- children: []
- }, {
- path: '/receiveResults',
- name: 'receiveResults',
- component: receiveResults,
- children: []
- }, {
- path: '/receiveShared/:id/:salesid/:type/:random/:sharetype',
- name: 'receive',
- component: receive
- }, {
- path: '/receiveChannel',
- name: 'receiveChannel',
- component: receiveChannel,
- children: []
- }, {
- path: '/receiveChannelShared/:id/:type/:sharetype',
- name: 'receiveChannel',
- component: receiveChannel
- }, {
- path: '/rush',
- name: 'rush',
- component: rush
- }, {
- path: '/calendar',
- name: 'calendar',
- component: calendar
- }, {
- path: '/activeList',
- name: 'activeList',
- component: activeList
- }, {
- path: '/customizationDetail',
- name: 'customizationDetail',
- component: customizationDetail
- }, {
- path: '/customizationList',
- name: 'customizationList',
- component: customizationList
- }, {
- path: '/checkModel',
- name: 'checkModel',
- component: checkModel
- }, {
- path: '/making',
- name: 'making',
- component: making
- }, {
- path: '/preview',
- name: 'preview',
- component: preview
- }],
- linkActiveClass: 'active',
- })
-
- router.beforeEach((to, from, next) => {
-
-
-
-
- next()
- })
-
- export default router
|