import Vue from "vue";
import Router from "vue-router";

Vue.use(Router);

export default new Router({
  mode: "hash",
  routes: [{
      path: "/index",
      name: "index",
      component: () =>
        import ("../views")
    },
    {
      path: "/",
      name: "index",
      component: () =>
        import ("../views")
    },
    // 选择项目页面
    {
      path: "/project-select",
      name: "projectSelect",
      component: () =>
        import ("../views/project")
    },
    // 评估结果页面
    {
      path: "/report/compensate",
      name: "reportCompensate",
      component: () =>
        import ("../views/report/compensate")
    },
    // 协议结果页面
    {
      path: "/report/agreement",
      name: "reportAgreement",
      component: () =>
        import ("../views/report/agreement")
    },
    // 查看pdf页面
    {
      path: "/showPdf",
      name: "showPdf",
      component: () =>
        import ("../views/pdf/pdf")
    },
    // 评估结果pdf
    {
      path: "/evaluteResult",
      name: "evaluteResult",
      component: () =>
        import ("../views/pdf/evaluteResult")
    },
    // 政策详情页面
    {
      path: "/policyInfo",
      name: "policyInfo",
      component: () =>
        import ("../views/policyInfo/policyInfo")
    }
  ]
});