import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/pages/Index/Index'
import Notice from '@/pages/Notice/Notice'
import Recruit from '@/pages/Recruit/Recruit'
import NewsDetail from '@/pages/NewsDetail/NewsDetail'
import Search from '@/pages/Search/Search'
import Law from '@/pages/Law/Law'
import CompanyQualify from '@/pages/CompanyQualify/CompanyQualify'
import Source from '@/pages/Source/Source'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Index',
      component: Index,
      meta: {
        title: '北京明世纪元'
      }
    },
    {
      path: '/notice',
      name: 'Notice',
      component: Notice,
      meta: {
        title: '北京明世纪元-信息公告'
      }
    },
    {
      path: '/law',
      name: 'Law',
      component: Law,
      meta: {
        title: '北京明世纪元-政策法规'
      }
    },
    {
      path: '/recruit',
      name: 'Recruit',
      component: Recruit,
      meta: {
        title: '北京明世纪元-相关招聘'
      }
    },
    {
      path: '/detail',
      name: 'NewsDetail',
      component: NewsDetail,
      meta: {
        title: '北京明世纪元-新闻详情'
      }
    },
    {
      path: '/search',
      name: 'Search',
      component: Search,
      meta: {
        title: '北京明世纪元-搜索结果'
      }
    },
    {
      path: '/qualify',
      name: 'CompanyQualify',
      component: CompanyQualify,
      meta: {
        title: '北京明世纪元-公司介绍和荣誉'
      }
    },
    {
      path: '/source',
      name: 'Source',
      component: Source,
      meta: {
        title: '北京明世纪元-单一来源公示'
      }
    }
  ]
})
