123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166 |
- 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 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 userCenter from './mainPage/userCenter/index'
- import bindMobile from './bindMobile/bindMobile'
- import lessonOrder from './lessonOrder/index'
- import vip from './vip/index'
- import card from './card/index'
- import coupons from './coupons/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'
-
- 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: '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: '/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: '/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
- }],
- linkActiveClass: 'active',
- })
-
- router.beforeEach((to, from, next) => {
-
-
-
-
- next()
- })
-
- export default router
|