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

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

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

wangshuo committed
237 238 239 240
    // 双旦活动预热页面
    {
        path: '/year/yearIndex',
        component: loadable(() => import(/* webpackChunkName: 'newyear-yearIndex' */ '@components/activity/newyear-2019/preheat/index'))
FE committed
241 242 243 244 245 246
    },
    
    // 我的宝箱
    {
        path: '/year/yearTreasure',
        component: loadable(() => import(/* webpackChunkName: 'newyear-yearIndex' */ '@components/activity/newyear-2019/myTreasure/index'))
wangshuo committed
247
    }
xuzhenghua committed
248 249 250 251 252 253
    ,
    // 双旦心愿单
    {
        path: '/year/yearWish',
        component: loadable(() => import(/* webpackChunkName: 'newyear-yearIndex' */ '@components/activity/newyear-2019/year-wish/index'))
    }
xuzhenghua committed
254
]