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


xuzhenghua committed
4 5 6 7
import Index from '@/components/Index'
import My from '@/components/my'
import Passport from '@/components/passport'
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
const ShareCourse = loadable(() => import(/* webpackChunkName: 'ShareCourse'*/'@/components/ShareCourse/index'))
const Country = loadable(() => import(/* webpackChunkName: 'Country' */'@/components/country/index'))
xuzhenghua committed
34 35
const ExpandCallback = loadable(() => import('@/components/expand/callback'))
const ExpandShare = loadable(() => import('@/components/expand/share'))
xuzhenghua committed
36 37
const Activity = loadable(() => import(/* webpackChunkName: 'Activity' */'@/components/activity/1111/index'))
const Invite = loadable(() => import(/* webpackChunkName: 'Invite' */'@/components/activity/1111/invite'))
xuzhenghua committed
38
const NewVip = loadable(() => import(/* webpackChunkName: 'Invite' */'@/components/vip/index'))
zhanghaozhe committed
39
export default [
FE committed
40 41 42
  {
    path: '/',
    exact: true,
zhanghaozhe committed
43
    component: Index,
FE committed
44 45 46
  },
  {
    path: '/vip/newvip',
zhanghaozhe committed
47
    component: NewVip,
FE committed
48 49 50
  },
  {
    path: '/classify',
zhanghaozhe committed
51
    component: Classify,
FE committed
52 53 54
  },
  {
    path: '/study',
zhanghaozhe committed
55
    component: Study,
FE committed
56 57 58
  },
  {
    path: '/my',
zhanghaozhe committed
59
    component: My,
FE committed
60 61 62 63
  },
  {
    path: '/myedit',
    component: MyEdit,
zhanghaozhe committed
64
    isPrivate: true,
FE committed
65 66 67
  },
  {
    path: '/courselist',
zhanghaozhe committed
68
    component: CourseList,
FE committed
69 70 71
  },
  {
    path: '/preferential',
zhanghaozhe committed
72
    component: Preferential,
FE committed
73 74 75 76
  },
  {
    path: '/search',
    exact: true,
zhanghaozhe committed
77
    component: Search,
FE committed
78 79 80
  },
  {
    path: '/search-result',
zhanghaozhe committed
81
    component: SearchResult,
FE committed
82 83 84 85
  },
  {
    path: '/order',
    component: Order,
zhanghaozhe committed
86
    isPrivate: true,
FE committed
87 88 89
  },
  {
    path: '/orderinfo',
zhanghaozhe committed
90
    component: Orderinfo,
FE committed
91 92 93
  },
  {
    path: '/detail',
zhanghaozhe committed
94
    component: Detail,
FE committed
95 96 97
  },
  {
    path: '/getDetail',
zhanghaozhe committed
98
    component: Detail,
FE committed
99 100 101
  },
  {
    path: '/examination',
zhanghaozhe committed
102
    component: Examination,
FE committed
103 104 105 106
  },
  {
    path: '/coupons',
    component: Coupons,
zhanghaozhe committed
107
    isPrivate: true,
FE committed
108 109 110 111
  },
  {
    path: '/shopcart',
    component: ShopCart,
zhanghaozhe committed
112
    isPrivate: true,
FE committed
113 114 115
  },
  {
    path: '/bargain-middle-page',
zhanghaozhe committed
116
    component: BargainMiddlePage,
FE committed
117 118 119
  },
  {
    path: '/passport',
zhanghaozhe committed
120
    component: Passport,
FE committed
121 122 123 124
  },
  {
    path: '/play',
    component: Video,
zhanghaozhe committed
125
    isPrivate: true,
FE committed
126 127 128
  },
  {
    path: '/scholarship',
zhanghaozhe committed
129
    component: Scholarship,
FE committed
130 131 132
  },
  {
    path: '/document',
zhanghaozhe committed
133
    component: DrawDocument,
FE committed
134 135 136 137
  },
  {
    path: '/shareposter',
    component: sharePoster,
zhanghaozhe committed
138
    isPrivate: true,
FE committed
139 140 141 142
  },
  {
    path: '/myorders',
    component: myOrders,
zhanghaozhe committed
143
    isPrivate: true,
FE committed
144 145 146 147
  },
  {
    path: '/purchased',
    component: Purchased,
zhanghaozhe committed
148
    isPrivate: true,
FE committed
149 150 151
  },
  {
    path: '/payOrder',
zhanghaozhe committed
152
    component: PayOrder,
FE committed
153 154 155
  },
  {
    path: '/campTest',
zhanghaozhe committed
156
    component: CampTest,
FE committed
157 158 159
  },
  {
    path: '/campResolve',
zhanghaozhe committed
160
    component: CampResolve,
FE committed
161 162 163 164
  },
  // 分享领红包课程列表页
  {
    path: '/ShareCourse',
zhanghaozhe committed
165
    component: ShareCourse,
FE committed
166
  },
167

FE committed
168 169 170
  // 区号
  {
    path: '/country',
zhanghaozhe committed
171
    component: Country,
FE committed
172 173 174
  },
  {
    path: '/togroup',
zhanghaozhe committed
175
    component: ToGroup,
FE committed
176 177 178
  },
  {
    path: '/aist-share',
zhanghaozhe committed
179
    component: loadable(() => import(/* webpackChunkName: 'aist-share'*/'@/components/share-page/aist-share')),
FE committed
180 181 182
  },
  {
    path: '/blessingRank',
zhanghaozhe committed
183
    component: loadable(() => import(/* webpackChunkName: 'blessing-rank' */'@/components/blessingRank/index')),
FE committed
184 185 186
  },
  {
    path: '/blessingPreheat',
zhanghaozhe committed
187
    component: loadable(() => import(/* webpackChunkName: 'blessing-preheat' */'@/components/blessingPreheat/index')),
FE committed
188 189 190
  },
  {
    path: '/blessingGetPrize',
zhanghaozhe committed
191
    component: loadable(() => import(/* webpackChunkName: 'blessing-getPrize' */'@/components/blessingGetPrize/index')),
FE committed
192 193 194
  },
  {
    path: '/prize-winner-list',
zhanghaozhe committed
195
    component: loadable(() => import(/* webpackChunkName: 'prize-winner-list' */'@/components/activity/1111/prize-winner-list')),
FE committed
196 197 198 199
  },
  //定金订单页面
  {
    path: '/deposit-order',
zhanghaozhe committed
200
    component: loadable(() => import(/* webpackChunkName: 'deposit-order' */ '@components/order/deposit/deposit-order')),
FE committed
201 202 203 204
  },
  //定金支付页面
  {
    path: '/deposit-pay-order',
zhanghaozhe committed
205
    component: loadable(() => import(/* webpackChunkName: 'deposit-pay-order' */ '@components/order/deposit/deposit-pay-order')),
FE committed
206 207 208 209
  },
  //尾款支付页面
  {
    path: '/final-deposit-order',
zhanghaozhe committed
210
    component: loadable(() => import(/* webpackChunkName: 'deposit-pay-order' */ '@components/order/deposit/final-order')),
FE committed
211 212 213 214
  },
  // 定金支付之后
  {
    path: '/expand/callback',
zhanghaozhe committed
215
    component: ExpandCallback,
FE committed
216 217 218 219
  },
  // 定金-邀请好友助力
  {
    path: '/expand/index',
zhanghaozhe committed
220
    component: ExpandShare,
FE committed
221 222 223
  },
  {
    path: '/toAppDemo',
zhanghaozhe committed
224
    component: loadable(() => import(/* webpackChunkName: 'aist-share'*/'@/components/blessingPreheat/toAppDemo')),
FE committed
225 226 227 228 229 230 231 232 233 234
  },
  {
    path: '/activity',
    exact: true,
    component: Activity,
  },
  {
    path: '/invite',
    component: Invite,
  },
xuzhenghua committed
235

FE committed
236 237 238
  //双旦活动
  {
    path: '/activity/newyear-2019/landing',
zhanghaozhe committed
239
    component: loadable(() => import(/* webpackChunkName: 'newyear-2019-landing'*/ '@components/activity/newyear-2019/landing/index')),
FE committed
240
  },
FE committed
241

FE committed
242 243 244
  // 双旦活动预热页面
  {
    path: '/year/yearIndex',
zhanghaozhe committed
245
    component: loadable(() => import(/* webpackChunkName: 'newyear-yearIndex' */ '@components/activity/newyear-2019/preheat/index')),
FE committed
246
  },
xuzhenghua committed
247

FE committed
248 249 250
  // 我的宝箱
  {
    path: '/year/yearTreasure',
zhanghaozhe committed
251
    component: loadable(() => import(/* webpackChunkName: 'newyear-yearIndex' */ '@components/activity/newyear-2019/myTreasure/index')),
FE committed
252 253 254 255 256
  }
  ,
  // 双旦心愿单
  {
    path: '/year/yearWish',
zhanghaozhe committed
257
    component: loadable(() => import(/* webpackChunkName: 'newyear-yearIndex' */ '@components/activity/newyear-2019/year-wish/index')),
FE committed
258 259 260 261
  },
  // python 小课页面
  {
    path: '/python',
zhanghaozhe committed
262
    component: loadable(() => import(/* webpackChunkName: 'python-class'*/'@/components/python')),
FE committed
263 264 265
  },
  {
    path: '/pythonShare',
zhanghaozhe committed
266
    component: loadable(() => import('@/components/pythonShare')),
FE committed
267 268 269
  },
  {
    path: '/pythonStudy',
zhanghaozhe committed
270
    component: loadable(() => import('@/components/python/pythonStudy')),
FE committed
271 272 273 274
  },
  //  赠一得一
  {
    path: '/active/givecourse',
zhanghaozhe committed
275
    component: loadable(() => import(/* activity-give-courses */'@components/activity/give-courses/index')),
FE committed
276 277 278
  },
  {
    path: '/active/assistance',
zhanghaozhe committed
279
    component: loadable(() => import(/* activity-give-courses-assistance */'@components/activity/give-courses/assistance/index')),
FE committed
280 281 282
  },
  {
    path: '/active/to',
zhanghaozhe committed
283
    component: loadable(() => import(/* activity-give-courses-share */'@components/activity/give-courses/share-content/index')),
FE committed
284 285 286
  },
  {
    path: '/wxerr',
zhanghaozhe committed
287
    component: loadable(() => import(/* wx-err */ '@components/wxerr/index')),
FE committed
288
  },
FE committed
289 290 291 292 293

  // 助学计划落地页
  {
    path: '/college',
    exact: true,
zhanghaozhe committed
294
    component: loadable(() => import('@/components/college')),
FE committed
295 296 297 298 299
  },
  // 助学计划落地页
  {
    path: '/college/:id',
    exact: true,
zhanghaozhe committed
300
    component: loadable(() => import('@/components/college/courseList')),
FE committed
301
  },
zhanghaozhe committed
302 303
  //限时免费落地页
  {
304
    path: '/free',
zhanghaozhe committed
305
    exact: true,
zhanghaozhe committed
306
    component: loadable(() => import(/*limit-free*/'@/components/limit-free')),
wangshuo committed
307
  },
wangshuo committed
308
  // 新的开宝箱活动-活动页
wangshuo committed
309 310
  {
    path: '/box/boxActive',
zhanghaozhe committed
311
    component: loadable(() => import(/* webpackChunkName: 'treasure-box-home' */ '@components/activity/treasure-box/preheat/index')),
wangshuo committed
312
  },
wangshuo committed
313 314 315
  // 新的开宝箱活动-我的宝箱
  {
    path: '/box/yearTreasure',
316
    component: loadable(() => import(/* webpackChunkName: 'treasure-box-mybox' */ '@components/activity/treasure-box/myTreasure/index')),
317 318
  },
  // 新的开宝箱活动-扫码、分享页
319
  {
320
    path: '/box/landing',
zhanghaozhe committed
321
    component: loadable(() => import(/* webpackChunkName: 'newyear-2019-landing'*/ '@components/activity/treasure-box/landing/index')),
322
  },
zhanghaozhe committed
323 324 325 326
  //ML小课
  {
    path: '/ml',
    exact: true,
zhanghaozhe committed
327
    component: loadable(() => import(/* webpackChunkName: 'ml' */'@/components/ml')),
zhanghaozhe committed
328
  },
zhanghaozhe committed
329 330
  {
    path: '/mlShare',
zhanghaozhe committed
331
    component: loadable(() => import(/* webpackChunkName: 'mlShare' */'@/components/mlShare')),
zhanghaozhe committed
332 333 334 335
  },
  //ai水平测试
  {
    path: '/ai-test',
zhanghaozhe committed
336 337 338 339 340
    component: loadable(() => import(/* webpackChunkName: 'ai-test' */'@/components/ai-test')),
  },
  //智能选课
  {
    path: '/intelligent-recommend',
zhanghaozhe committed
341
    isPrivate: true,
zhanghaozhe committed
342
    component: loadable(() => import(/* webpackChunkName: 'intelligent-recommend' */'@/components/intelligent-recommend')),
zhanghaozhe committed
343
  },
zhanghaozhe committed
344 345
  //题库
  {
zhanghaozhe committed
346
    path: '/problems/:id',
zhanghaozhe committed
347 348
    component: loadable(() => import('@/components/problems')),
  },
zhanghaozhe committed
349 350 351 352 353
  //2020-717
  {
    path: '/anniversary_2020',
    component: loadable(() => import('@/components/activity/2020-717')),
  },
xuzhenghua committed
354
]