router-config.js 4.82 KB
Newer Older
zhanghaozhe committed
1 2 3
import loadable from '@loadable/component'


zhanghaozhe committed
4 5
import Index from '@/components/Index';
import My from '@/components/my';
6
import Passport from '@/components/passport';
7
import Scholarship from '@/components/scholarship';
zhanghaozhe committed
8

zhanghaozhe committed
9 10
const Coupons = loadable(() => import(/* webpackChunkName: 'coupons'*/ '@/components/coupons'))
const Study = loadable(() => import(/* webpackChunkName: 'study'*/'@/components/study'))
11
const Video = loadable(() => import(/* webpackChunkName: 'video'*/'@/components/video'))
xuzhenghua committed
12
const sharePoster = loadable(() => import(/* webpackChunkName: 'shareposter'*/'@/components/sharePoster'))
xuzhenghua committed
13
const myOrders = loadable(() => import(/* webpackChunkName: 'myorders'*/'@/components/myOrders'))
xuzhenghua committed
14
const Purchased = loadable(() => import(/* webpackChunkName: 'purchased'*/'@/components/purchased'))
xuzhenghua committed
15
const ToGroup = loadable(() => import(/* webpackChunkName: 'togroup'*/'@/components/detail/group/togroup'))
zhanghaozhe committed
16 17 18 19 20 21 22 23 24 25 26 27 28 29
const PayOrder = loadable(() => import(/* webpackChunkName: 'PayOrder'*/'@/components/order/payOrder/PayOrder'))
const DrawDocument = loadable(() => import(/* webpackChunkName: 'DrawDocument'*/'@/components/scholarship/DrawDocument/DrawDocument'))
const BargainMiddlePage = loadable(() => import(/* webpackChunkName: 'BargainMiddlePage'*/'@/components/bargainMiddlePage'))
const ShopCart = loadable(() => import(/* webpackChunkName: 'ShopCart'*/'@/components/shopCart'))
const Examination = loadable(() => import(/* webpackChunkName: 'Examination'*/'@/components/examination'))
const Detail = loadable(() => import(/* webpackChunkName: 'detail'*/'@/components/detail/index'))
const SearchResult = loadable(() => import(/* webpackChunkName: 'SearchResult'*/'@/components/search/search-result'))
const Search = loadable(() => import(/* webpackChunkName: 'search'*/'@/components/search/index'))
const Preferential = loadable(() => import(/* webpackChunkName: 'Preferential'*/'@/components/preferential/index'))
const Orderinfo = loadable(() => import(/* webpackChunkName: 'Orderinfo'*/'@/components/order/orderinfo'))
const Order = loadable(() => import(/* webpackChunkName: 'Order'*/'@/components/order/index'))
const CourseList = loadable(() => import(/* webpackChunkName: 'CourseList'*/'@/components/classify/courselist'))
const MyEdit = loadable(() => import(/* webpackChunkName: 'MyEdit'*/'@/components/my/edit'))
const Classify = loadable(() => import(/* webpackChunkName: 'Classify'*/'@/components/classify'))
wangshuo committed
30 31
const CampTest = loadable(() => import(/* webpackChunkName: 'Classify'*/'@/components/video/camp/campTest'))
const CampResolve = loadable(() => import(/* webpackChunkName: 'Classify'*/'@/components/video/camp/campResolve'))
zhanghaozhe committed
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
export default [
    {
        path: '/',
        exact: true,
        component: Index
    },
    {
        path: '/classify',
        component: Classify
    },
    {
        path: '/study',
        component: Study
    },
    {
        path: '/my',
        component: My
    },
    {
xuzhenghua committed
51
        path: '/myedit',
xuzhenghua committed
52 53
        component: MyEdit,
        isPrivate: true
xuzhenghua committed
54 55
    },
    {
zhanghaozhe committed
56 57 58 59 60 61 62 63 64
        path: '/courselist',
        component: CourseList
    },
    {
        path: '/preferential',
        component: Preferential
    },
    {
        path: '/search',
zhanghaozhe committed
65
        exact: true,
zhanghaozhe committed
66 67 68
        component: Search
    },
    {
zhanghaozhe committed
69 70 71 72
        path: '/search-result',
        component: SearchResult
    },
    {
zhanghaozhe committed
73
        path: '/order',
zhanghaozhe committed
74 75
        component: Order,
        isPrivate: true
zhanghaozhe committed
76 77
    },
    {
xuzhenghua committed
78 79 80 81
        path: '/orderinfo',
        component: Orderinfo
    },
    {
zhanghaozhe committed
82 83 84 85 86 87 88 89
        path: '/detail',
        component: Detail
    },
    {
        path: '/examination',
        component: Examination
    },
    {
zhanghaozhe committed
90
        path: '/coupons',
91 92
        component: Coupons,
        isPrivate: true
zhanghaozhe committed
93 94
    },
    {
zhanghaozhe committed
95
        path: '/shopcart',
xuzhenghua committed
96 97
        component: ShopCart,
        isPrivate: true
zhanghaozhe committed
98 99 100 101 102 103 104 105 106
    },
    {
        path: '/bargain-middle-page',
        component: BargainMiddlePage
    },
    {
        path: '/passport',
        component: Passport
    },
107 108
    {
        path: '/play',
109 110
        component: Video,
        isPrivate: true
111
    },
xuzhenghua committed
112
    {
113 114 115 116 117 118 119
        path: '/scholarship',
        component: Scholarship
    },
    {
        path: '/document',
        component: DrawDocument
    },
wangshuo committed
120
    {
xuzhenghua committed
121
        path: '/shareposter',
xuzhenghua committed
122 123
        component: sharePoster,
        isPrivate: true
xuzhenghua committed
124
    },
xuzhenghua committed
125 126
    {
        path: '/myorders',
xuzhenghua committed
127 128 129 130 131 132 133
        component: myOrders,
        isPrivate: true
    },
    {
        path: '/purchased',
        component: Purchased,
        isPrivate: true
xuzhenghua committed
134
    },
wangshuo committed
135
    {
wangshuo committed
136 137 138
        path: '/payOrder',
        component: PayOrder
    },
xuzhenghua committed
139
    {
wangshuo committed
140 141 142 143 144 145 146 147
        path: '/campTest',
        component: CampTest
    },
    {
        path: '/campResolve',
        component: CampResolve
    },
    {
xuzhenghua committed
148 149 150 151
        path: '/togroup',
        component: ToGroup,
        isPrivate: true
    },
152 153 154 155
    {
        path: '/aist-share',
        component: loadable(() => import(/* webpackChunkName: 'aist-share'*/'@/components/share-page/aist-share'))
    }
zhanghaozhe committed
156
]