From f75e0187e2e32c1471d04c29c42517609910b7ec Mon Sep 17 00:00:00 2001
From: 付延余 <f-yanyu@outlook.com>
Date: 星期一, 11 四月 2022 01:25:19 +0800
Subject: [PATCH] login静态

---
 src/router/router.js                    |  140 +++++++++++++++++++++++++++++++++-------------
 src/pages/components/showIndexTitle.vue |    4 
 2 files changed, 102 insertions(+), 42 deletions(-)

diff --git a/src/pages/components/showIndexTitle.vue b/src/pages/components/showIndexTitle.vue
index 38a22e0..9997e49 100644
--- a/src/pages/components/showIndexTitle.vue
+++ b/src/pages/components/showIndexTitle.vue
@@ -40,7 +40,7 @@
         </el-menu-item>
       </div>
       <div class="showIndex-right">
-        <el-menu-item>
+        <el-menu-item index="/businessPolicy">
           <div class="showIndex-block">
             <h1>钀ュ晢鏀跨瓥</h1>
           </div>
@@ -115,7 +115,7 @@
   background-size: 100% 100%;
   .title {
     font-size: 3rem /* 30/10 */;
-    font-family: "Source Han Sans CN";
+    //font-family: "Source Han Sans CN";
     color: #fff;
     text-align: center;
     line-height: 7rem /* 70/10 */;
diff --git a/src/router/router.js b/src/router/router.js
index b705d9b..4aaa8fc 100644
--- a/src/router/router.js
+++ b/src/router/router.js
@@ -1,53 +1,113 @@
-import main from '@/pages/common/Home.vue'
+// import main from "@/pages/common/Home.vue";
 import showHome from "../pages/show/main/showHome";
 import jiuyeAndChuangye from "../pages/show/jiuyeAndChuangye/jiuyeAndChuangye";
 import shehuiBaozhang from "../pages/show/shehuiBaozhang/shehuiBaozhang";
 const indexRouter = {
-    path: '/',
-    name: 'index',
-    component: showHome,
-    redirect: '/index',
-    children: [
-        { path: '/index', meta: { title: '澶у睆棣栭〉' }, name: 'index', component: () => import('@/pages/show/index/index.vue')},
-        { path: '/jiuyeAndChuangye',
-          component: jiuyeAndChuangye,
-          redirect: '/workStatistics',
-          name: 'jiuyeAndChuangye',
-          children: [
-           { path: '/workStatistics', meta: {title: '灏变笟鍒涗笟'}, name: 'workStatistics',  component: () => import('@/pages/show/jiuyeAndChuangye/jiuyeChildren/workStatistics.vue')},
-           { path: '/chuangyeDanbaoDaikuan', meta: {title: '鍒涗笟鎷呬繚璐锋'}, name: 'chuangyeDanbaoDaikuan',  component: () => import('@/pages/show/jiuyeAndChuangye/jiuyeChildren/chuangyeDanbaoDaikuan.vue')},
-           { path: '/jiuyeQingkuang', meta: {title: '灏变笟鎯呭喌'}, name: 'jiuyeQingkuang',  component: () => import('@/pages/show/jiuyeAndChuangye/jiuyeChildren/jiuyeQingkuang.vue')},
-           { path: '/biyeshengStatistics', meta: {title: '姣曚笟鐢熺粺璁�'}, name: 'biyeshengStatistics',  component: () => import('@/pages/show/jiuyeAndChuangye/jiuyeChildren/biyeshengStatistics.vue')},
-         ]
+  path: "/",
+  name: "index",
+  component: showHome,
+  redirect: "/index",
+  children: [
+    {
+      path: "/index",
+      meta: { title: "澶у睆棣栭〉" },
+      name: "index",
+      component: () => import("@/pages/show/index/index.vue")
+    },
+    {
+      path: "/jiuyeAndChuangye",
+      component: jiuyeAndChuangye,
+      redirect: "/workStatistics",
+      name: "jiuyeAndChuangye",
+      children: [
+        {
+          path: "/workStatistics",
+          meta: { title: "灏变笟鍒涗笟" },
+          name: "workStatistics",
+          component: () =>
+            import(
+              "@/pages/show/jiuyeAndChuangye/jiuyeChildren/workStatistics.vue"
+            )
         },
         {
-          path: '/shehuiBaozhang',
-          component: shehuiBaozhang,
-          redirect: '/shehuiBaoxian',
-          name: 'shehuiBaozhang',
-          children: [
-            { path: '/shehuiBaoxian', meta: {title:'绀句細淇濋殰'}, name: 'shehuiBaoxian', component: () => import('@/pages/show/shehuiBaozhang/shehuiBaozhangChildren/shehuiBaoxian.vue')},
-            { path: '/shebaoShouzhiZongbiao', meta: {title:'绀句繚鏀舵敮鎬昏〃'}, name: 'shebaoShouzhiZongbiao', component: () => import('@/pages/show/shehuiBaozhang/shehuiBaozhangChildren/shebaoShouzhiZongbiao.vue')},
-          ]
+          path: "/chuangyeDanbaoDaikuan",
+          meta: { title: "鍒涗笟鎷呬繚璐锋" },
+          name: "chuangyeDanbaoDaikuan",
+          component: () =>
+            import(
+              "@/pages/show/jiuyeAndChuangye/jiuyeChildren/chuangyeDanbaoDaikuan.vue"
+            )
+        },
+        {
+          path: "/jiuyeQingkuang",
+          meta: { title: "灏变笟鎯呭喌" },
+          name: "jiuyeQingkuang",
+          component: () =>
+            import(
+              "@/pages/show/jiuyeAndChuangye/jiuyeChildren/jiuyeQingkuang.vue"
+            )
+        },
+        {
+          path: "/biyeshengStatistics",
+          meta: { title: "姣曚笟鐢熺粺璁�" },
+          name: "biyeshengStatistics",
+          component: () =>
+            import(
+              "@/pages/show/jiuyeAndChuangye/jiuyeChildren/biyeshengStatistics.vue"
+            )
         }
-    ]
-}
+      ]
+    },
+    {
+      path: "/shehuiBaozhang",
+      component: shehuiBaozhang,
+      redirect: "/shehuiBaoxian",
+      name: "shehuiBaozhang",
+      children: [
+        {
+          path: "/shehuiBaoxian",
+          meta: { title: "绀句細淇濋殰" },
+          name: "shehuiBaoxian",
+          component: () =>
+            import(
+              "@/pages/show/shehuiBaozhang/shehuiBaozhangChildren/shehuiBaoxian.vue"
+            )
+        },
+        {
+          path: "/shebaoShouzhiZongbiao",
+          meta: { title: "绀句繚鏀舵敮鎬昏〃" },
+          name: "shebaoShouzhiZongbiao",
+          component: () =>
+            import(
+              "@/pages/show/shehuiBaozhang/shehuiBaozhangChildren/shebaoShouzhiZongbiao.vue"
+            )
+        }
+      ]
+    },
+    {
+      path: "/businessPolicy",
+      meta: { title: "钀ュ晢鏀跨瓥" },
+      name: "businessPolicy",
+      component: () => import("@/pages/show/businessPolicy/BusinessPolicy")
+    }
+  ]
+};
 const login = {
-  path: '/login',
-  component: () => import('@/pages/login.vue'),
+  path: "/login",
+  component: () => import("@/pages/login.vue"),
   meta: {
-    title: `鍚庡彴鐧婚檰`,
+    title: `鍚庡彴鐧婚檰`
   }
-}
-const NotFound = {
-  path: '/404',
-  component: () => import('@/error_pages/404.vue'),
-  meta: {
-    title: "404 | 鍟婂摝~ 浣犳墍璁块棶鐨勯〉闈笉瀛樺湪",
-  }
-}
+};
+// const NotFound = {
+//   path: "/404",
+//   component: () => import("@/error_pages/404.vue"),
+//   meta: {
+//     title: "404 | 鍟婂摝~ 浣犳墍璁块棶鐨勯〉闈笉瀛樺湪"
+//   }
+// };
 export const routers = [
   indexRouter,
-  login,
+  login
   // NotFound
-]
+];

--
Gitblit v1.9.1