import Vue from 'vue'
import Router from 'vue-router'
import login from './views/login'
import index from './views/index'

Vue.use(Router)

export default new Router({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes: [
    {
			path: '/',
			name: 'login',
			component: login,
    },
    {
      path: '/index',
      name: 'index',
      component: index,
      meta: { 
        'title':"MAGE Data Services",
        'http-equiv':"X-UA-Compatible",
        'content':'IE=Edge,chrome=1'
      }
    }
    // {
    //   path: '/index',
    //   name: 'index',
    //   component: index,
    //   meta: { 
    //     'title':"印象之旅~感动与世界同步",
    //     'http-equiv':"X-UA-Compatible",
    //     'content':'IE=Edge,chrome=1'
    //   },
    //   children:[
    //     {
		// 			path: '/detail/:id',
		// 			name: 'detail',
		// 			component: resolve => require(['@/components/mall/detail'], resolve),
		// 			meta: {
		// 				title: '团队详情-印象之旅~感动与世界同步'
		// 			}
    //     },
    //     {
		// 			path: '/detail/:id/:pre',
		// 			name: 'detail',
		// 			component: resolve => require(['@/components/mall/detail'], resolve),
		// 			meta: {
		// 				title: '团队详情-印象之旅~感动与世界同步'
		// 			}
    //     },
    //     {
		// 			path: '/detailTwo/:id/',
		// 			name: 'detailTwo',
		// 			component: resolve => require(['@/components/mall/detailTwo'], resolve),
		// 			meta: {
		// 				title: '团队详情-印象之旅~感动与世界同步'
		// 			}
    //     },
    //     {
		// 			path: '/detailTwo/:id/:pre',
		// 			name: 'detailTwo',
		// 			component: resolve => require(['@/components/mall/detailTwo'], resolve),
		// 			meta: {
		// 				title: '团队详情-印象之旅~感动与世界同步'
		// 			}
    //     },
    //     {
		// 			path: '/heel',
		// 			name: 'heel',
		// 			component: resolve => require(['@/components/mall/heeltour'], resolve),
		// 			meta: {
		// 				title: '跟团游-印象之旅~感动与世界同步'
		// 			}
    //     },
    //     {
    //       path: '/coding',
		// 			name: 'coding',
		// 			component: resolve => require(['@/components/mall/coding'], resolve),
		// 			meta: {
		// 				title: '正在开发中-印象之旅~感动与世界同步'
		// 			}
    //     },
    //     {
    //       path: '/search',
		// 			name: 'search',
		// 			component: resolve => require(['@/components/mall/search'], resolve),
		// 			meta: {
		// 				title: '搜索行程-印象之旅~感动与世界同步'
		// 			}
    //     },
    //     {
    //       path: '/PersonalHome',
		// 			name: 'PersonalHome',
		// 			component: resolve => require(['@/components/PersonalCenter/PersonalHome'], resolve),
		// 			meta: {
						
    //       },
    //       children:[{
    //         path: '/PsCenter',
    //         name: 'PsCenter',
    //         component: resolve => require(['@/components/PersonalCenter/PsCenter'], resolve),
    //         meta: {
    //           title: '个人中心'
    //         }
    //       },{
    //         path: '/PsOrder',
    //         name: 'PsOrder',
    //         component: resolve => require(['@/components/PersonalCenter/PsOrder'], resolve),
    //         meta: {
    //           title: '订单管理'
    //         }
    //       },{
    //         path: '/PsSystem',
    //         name: 'PsSystem',
    //         component: resolve => require(['@/components/PersonalCenter/PsSystem'], resolve),
    //         meta: {
    //           title: '系统管理'
    //         }
    //       },{
    //         path: '/PsAccBalance',
    //         name: 'PsAccBalance',
    //         component: resolve => require(['@/components/PersonalCenter/PsAccBalance'], resolve),
    //         meta: {
    //           title: '账户余额'
    //         }
    //       },{
    //         path: '/OrderInvoice',
    //         name: 'OrderInvoice',
    //         component: resolve => require(['@/components/PersonalCenter/OrderInvoice'], resolve),
    //         meta: {
    //           title: '发票信息'
    //         }
    //       }]
    //     }
    //   ]
    // }
  ]
})
