// 开门红业绩排名 const PerformanceReport = () => import('@/views/ebiz/goodStart/PerformanceReport') // 开门红专区 const Prefecture = () => import('@/views/ebiz/goodStart/Prefecture') const Treasure = () => import('@/views/ebiz/goodStart/Treasure') const TreasureDetail = () => import('@/views/ebiz/goodStart/TreasureDetail') const GoodStartScheme = () => import('@/views/ebiz/goodStart/GoodStartScheme') const businessMap = () => import('@/views/ebiz/goodStart/BusinessMap') const issueList = () => import('@/views/ebiz/goodStart/IssueList') const newsPaper = () => import('@/views/ebiz/goodStart/NewsPaper') const spreadParams = function(route) { const params = {} for (let key in route.query) { params[key] = route.query[key] } return params } export default [ { path: '/goodStart/performanceReport', name: 'Prefecture', component: PerformanceReport, meta: { title: '开门红业绩查询' } }, { path: '/goodStart/prefecture', name: 'Prefecture', component: Prefecture, meta: { title: '开门红专区' } }, { path: '/goodStart/treasure', name: 'Treasure', component: Treasure, meta: { title: '百宝箱' } }, { path: '/goodStart/treasureDetail', name: 'TreasureDetail', component: TreasureDetail, props: route => spreadParams(route) }, { path: '/goodStart/goodStartScheme', name: 'GoodStartScheme', component: GoodStartScheme, meta: { title: '开门红方案' } }, { path: '/goodStart/businessMap', name: 'businessMap', component: businessMap, meta: { title: '开门红业务地图' } }, { path: '/goodStart/issueList', name: 'issueList', component: issueList, meta: { title: '个人出单榜' } }, { path: '/goodStart/newsPaper', name: 'newsPaper', component: newsPaper, meta: { title: '开门红实时贺报' } } ]