index.js 2.83 KB
Newer Older
xulili's avatar
xulili committed
1 2 3 4 5 6 7 8 9 10 11 12
import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: Home
  },
xd's avatar
xd committed
13 14 15
  {
    path: '/turntableDetail',
    name: 'turntableDetail',
xd's avatar
xd committed
16
    component: () => import('../views/active/turntableDetail.vue')
xd's avatar
xd committed
17 18 19 20
  },
  {
    path: '/createActive',
    name: 'createActive',
21
    component: () => import('../views/active/createActive.vue')
xd's avatar
xd committed
22 23 24 25
  },
  {
    path: '/activeList',
    name: 'activeList',
26
    component: () => import('../views/active/activeList.vue')
xd's avatar
xd committed
27
  },
xd's avatar
xd committed
28 29 30 31 32
  {
    path: '/createBigWheelActive',
    name: 'createBigWheelActive',
    component: () => import('../views/active/createBigWheelActive.vue')
  },
33 34 35
  {
    path: '/discount',
    name: 'Discount',
xd's avatar
xd committed
36
    component: () => import('@/views/sideNav/discount/index')
37
  },
38 39 40
  {
    path: '/mainSale',
    name: 'MainSale',
xd's avatar
xd committed
41
    component: () => import('@/views/mainSale/active/main/index')
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
  },
  {
    path: '/changeCounter',
    name: 'changeCounter',
    component: () => import('@/views/counter/changeCounter')
  },
  {
    path: '/counterInfo',
    name: 'counterInfo',
    component: () => import('@/views/counter/counterInfo')
  },
  {
    path: '/counterMaintain',
    name: 'counterMaintain',
    component: () => import('@/views/counter/counterMaintain')
  },
  {
    path: '/goodManage',
    name: 'goodManage',
    component: () => import('@/views/goods/goodManage')
xd's avatar
xd committed
62
  },
xd's avatar
xd committed
63 64 65 66 67 68
  {
    path: '/goodGrounding',
    name: 'goodGrounding',
    component: () => import('@/views/goods/goodGrounding')
  },
  {
xd's avatar
xd committed
69 70
    path: '/profitList',
    name: 'profitList',
xd's avatar
xd committed
71 72
    component: () => import('@/views/profit/index')
  },
Z's avatar
Z committed
73 74 75 76
  {
    path: '/actTemplate',
    name: 'ActTemplate',
    component: () => import('@/views/mainSale/active/template/index')
Z's avatar
Z committed
77 78 79 80 81
  },
  {
    path: '/me',
    name: 'Me',
    component: () => import('@/views/mainSale/me/main/index')
Z's avatar
Z committed
82 83 84 85 86
  },
  {
    path: '/task',
    name: 'Task',
    component: () => import('@/views/mainSale/me/task/index')
xd's avatar
xd committed
87 88 89 90 91
  },
  {
    path: '/taskList',
    name: 'taskList',
    component: () => import('@/views/task/taskList')
xd's avatar
xd committed
92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
  },
  {
    path: '/newMemberTask',
    name: 'newMemberTask',
    component: () => import('@/views/task/newMemberTask')
  },
  {
    path: '/case',
    name: 'case',
    component: () => import('@/views/case/index')
  },
  {
    path: '/caseDetail',
    name: 'caseDetail',
    component: () => import('@/views/case/caseDetail')
  },
xulili's avatar
xulili committed
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124
  // {
  //   path: '/about',
  //   name: 'about',
  //   // route level code-splitting
  //   // this generates a separate chunk (about.[hash].js) for this route
  //   // which is lazy-loaded when the route is visited.
  //   component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  // }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router