// 法案相关
const BillHome = () => import('@/views/bill/billHome/index.vue')
const BillLayoutContainer = () => import('@/views/bill/billLayout/index.vue')
const BillLayout = () => import('@/views/bill/index.vue')
const BillIntroduction = () => import('@/views/bill/introdoction/index.vue')
const BillBackground = () => import('@/views/bill/background/index.vue')
const BillTemplate = () => import('@/views/bill/template/index.vue')
const BillDeepDigLayout = () => import('@/views/bill/deepDig/index.vue')
const BillDeepDigProcessOverview = () => import('@/views/bill/deepDig/processOverview/index.vue')
const BillDeepDigProcessAnalysis = () => import('@/views/bill/deepDig/processAnalysis/index.vue')
const BillDeepDigPoliContribution = () => import('@/views/bill/deepDig/poliContribution/index.vue')
const BillInfluenceLayout = () => import('@/views/bill/influence/index.vue')
const BillInfluenceIndustry = () => import('@/views/bill/influence/industry/index.vue')
const BillInfluenceScientificResearch = () => import('@/views/bill/influence/scientificResearch/index.vue')
const BillRelevantCircumstance = () => import('@/views/bill/relevantCircumstance/index.vue')
const BillVersionCompare = () => import('@/views/bill/versionCompare/index.vue')


const billRoutes = [
  // 法案系统路由
  {
    path: "/billHome",
    name: "BillHome",
    component: BillHome,
    meta: {
      title: "科技法案概览"
    }
  },
  {
    path: "/billLayout",
    name: "BillLayoutContainer",
    component: BillLayoutContainer,
    redirect: "/billLayout/bill",
    meta: {
      title: "法案详情",
      dynamicTitle: true // 标记需要动态设置标题
    },
    children: [
      // 法案分析路由
      {
        path: "bill",
        name: "BillLayout",
        component: BillLayout,
        redirect: "/billLayout/bill/introduction",
        // meta: {
        //   title: "法案分析",
        // },
        children: [
          {
            path: "introduction",
            name: "BillIntroduction",
            component: BillIntroduction,
            // meta: { 
            //   title: "法案简介"
            
            // }
          },
          {
            path: "background",
            name: "BillBackground",
            component: BillBackground,
            // meta: { title: "法案背景" }
          },
          {
            path: "template",
            name: "BillTemplate",
            component: BillTemplate,
            // meta: { title: "内容概要" }
          }
        ]
      },
      // 深度挖掘路由
      {
        path: "deepDig",
        name: "BillDeepDigLayout",
        component: BillDeepDigLayout,
        redirect: "/billLayout/deepDig/processOverview",
        // meta: {
        //   title: "深度挖掘"
        // },
        children: [
          {
            path: "processOverview",
            name: "BillDeepDigProcessOverview",
            component: BillDeepDigProcessOverview,
            // meta: { title: "流程概要" }
          },
          {
            path: "processAnalysis",
            name: "BillDeepDigProcessAnalysis",
            component: BillDeepDigProcessAnalysis,
            // meta: { title: "流程分析" }
          },
          {
            path: "poliContribution",
            name: "BillDeepDigPoliContribution",
            component: BillDeepDigPoliContribution,
            // meta: { title: "政治献金" }
          }
        ]
      },
      // 影响分析路由
      {
        path: "influence",
        name: "BillInfluenceLayout",
        component: BillInfluenceLayout,
        redirect: "/billLayout/influence/industry",
        // meta: {
        //   title: "影响分析"
        // },
        children: [
          {
            path: "industry",
            name: "BillInfluenceIndustry",
            component: BillInfluenceIndustry,
            // meta: { title: "对华产业影响" }
          },
          {
            path: "scientificResearch",
            name: "BillInfluenceScientificResearch",
            component: BillInfluenceScientificResearch,
            // meta: { title: "对华科研影响" }
          }
        ]
      },
      {
        path: "relevantCircumstance",
        name: "BillRelevantCircumstance",
        component: BillRelevantCircumstance,
        // meta: {
        //   title: "相关情况"
        // }
      },
      {
        path: "versionCompare",
        name: "BillVersionCompare",
        component: BillVersionCompare,
        meta: {
          title: "版本对比"
        }
      }
    ]
  },
]

export default billRoutes