From bfa061edf56598f05b5817565bf181c64b149f99 Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: 星期二, 23 七月 2024 16:47:42 +0800
Subject: [PATCH] 提交

---
 src/views/homePage.vue |   22 +++++++++++++++++++---
 1 files changed, 19 insertions(+), 3 deletions(-)

diff --git a/src/views/homePage.vue b/src/views/homePage.vue
index 078084f..9958de5 100644
--- a/src/views/homePage.vue
+++ b/src/views/homePage.vue
@@ -3,7 +3,7 @@
     <div class="title">
       <div class="logo">
         <img class="pics2" :src="logoPng">
-        <span style="font-size: 40px;color: black">国科鸿宇</span>
+        <span style="font-size: 40px;color: black">国泰新华</span>
         <div style="width: 2px;height: 40px;background-color: #1C68A7;margin-top: 5px;margin-left: 15px;margin-right: 15px"></div>
         <span style="font-size: 28px;color: white">安全在线教育平台</span>
       </div>
@@ -81,6 +81,10 @@
         </div>
       </div>
 
+    </div>
+    <!--  底部  -->
+    <div class="el-login-footer">
+      <span>Copyright ©2024-{{nowYear}} All Rights Reserved.</span>
     </div>
 <!--    <img class="pics1" :src="dataPng">-->
 <!--    <img class="pics2" :src="searchPng">-->
@@ -161,6 +165,17 @@
 const route = useRoute();
 const router = useRouter();
 const { proxy } = getCurrentInstance();
+const nowYear = ref();
+// 时间格式化
+const timeForm = {
+  hour12: false,
+  year: 'numeric',
+  month: '2-digit',
+  day: '2-digit',
+  hour: '2-digit',
+  minute: '2-digit',
+  second: '2-digit'
+}
 
 const loginForm = ref({
   username: "",
@@ -185,7 +200,8 @@
 const redirect = ref(undefined);
 
 onMounted(()=>{
-
+  const curTime = new Date().toLocaleString('zh', timeForm).replace(/\//g, '-');
+  nowYear.value = curTime.slice(0, 4);
 })
 
 const openRegist = ()=>{
@@ -442,7 +458,7 @@
   padding-left: 7px;
 }
 
-@media screen and (max-width: 980px) {
+@media screen and (max-width: 1050px) {
   .imG {
     display: none;
   }

--
Gitblit v1.9.2