123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- import Vue from 'vue'
- import VueRouter from 'vue-router'
- import HomeView from '../views/HomeView.vue'
- import PointsRank from '../views/PointsRank.vue'
- Vue.use(VueRouter)
- const routes = [
- {
- path:'/',
- redirect:'/home',
- },
- {
- path: '/home',
- component: HomeView,
- redirect:'/home/pointsMall',
- children: [
- {
- path: '/home/index',
- component: () => import('@/views/HomeView/Index.vue'),
- meta: {
- index: 1
- }
- },
- {
- path: '/home/index/msgDetail',
- component: () => import('@/views/HomeView/MsgDetail.vue')
- },
- {
- path: '/home/signIn',
- component: () => import('@/views/HomeView/SignIn.vue')
- },
- {
- path: '/home/myMedal',
- component: () => import('@/views/HomeView/MyMedal.vue')
- },
- {
- path: '/home/commend',
- component: () => import('@/views/HomeView/Commend.vue')
- },
- {
- path: '/home/commend/commendDetail',
- component: () => import('@/views/HomeView/CommendDetail.vue')
- },
- {
- path: '/home/earnPoints',
- component: () => import('@/views/HomeView/EarnPoints.vue')
- },
- {
- path: '/home/citeList',
- component: () => import('@/views/HomeView/CiteList.vue')
- },
- {
- path: '/home/pointsMall',
- component: () => import('@/views/HomeView/PointsMall.vue')
- },
- {
- path: '/home/pointsMall/redeem',
- component: () => import('@/views/HomeView/RedeemView.vue')
- },
- {
- path: '/home/myCenter/goodsDetail',
- component: () => import('@/views/HomeView/GoodsDetail.vue')
- },
- {
- path: '/home/pointsMall/goodDetail',
- component: () => import('@/views/HomeView/GoodDetail.vue')
- },
- {
- path: '/home/welfareList',
- component: () => import('@/views/HomeView/WelfareList.vue')
- },
- {
- path: '/home/myCenter',
- component: () => import('@/views/HomeView/MyCenter.vue')
- },
- {
- path: '/home/festiveEvents',
- component: () => import('@/views/HomeView/FestiveEvents.vue')
- },
- {
- path: '/home/festiveEvents/game',
- component: () => import('@/views/HomeView/Game.vue')
- },
- {
- path: '/home/festiveEvents/answerGame',
- component: () => import('@/views/HomeView/AnswerGame/AnswerGame.vue')
- },
- {
- path: '/home/festiveEvents/qiXiGame',
- component: () => import('@/views/HomeView/AnswerGame/QiXiAnswerGame.vue')
- },
- {
- path: '/home/festiveEvents/drawCarouselGame',
- component: () => import('@/views/HomeView/DrawCarouselGame/DrawCarouselGame.vue')
- },
- ]
- },
- {
- path: '/noticeCenter',
- component: () => import('../views/NoticeCenter.vue'),
- meta: {
- index: 2
- }
- },
- {
- path: '/pointsRank',
- component: PointsRank,
- redirect:'/pointsRank/present',
- children: [
- {
- path: '/pointsRank/present',
- component: () => import('@/views/PointsRank/Present.vue')
- },
- {
- path: '/pointsRank/history',
- component: () => import('@/views/PointsRank/History.vue')
- },
- ]
- }
- ]
- const router = new VueRouter({
- linkActiveClass:'route-active',
- routes,
- })
- export default router
|