From 4076c14a8eac96cd716522f2cb15dcda0eb4fcef Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: 星期三, 10 四月 2024 08:37:53 +0800
Subject: [PATCH] 新修改

---
 src/views/loginPage/loginPage.vue |   53 +++++++++++++++++++++++++++++++++++++----------------
 1 files changed, 37 insertions(+), 16 deletions(-)

diff --git a/src/views/loginPage/loginPage.vue b/src/views/loginPage/loginPage.vue
index 7ad9d7c..a002b1d 100644
--- a/src/views/loginPage/loginPage.vue
+++ b/src/views/loginPage/loginPage.vue
@@ -1,17 +1,22 @@
 <template>
     <div class="login-container">
+        <div class="starBg">
+
+        </div>
         <div class="loginContent">
-          <div class="welcc">广域特殊气体泄露在线监测预警系统</div>
+          <div class="welcc">广域特殊气体泄漏在线监测预警系统</div>
             <div class="loginPanel">
                 <div class="loginGroup">
                   <div style="width: 100%">
-                    <div style="width:100%;text-align: center;font-size: 22px;color: #11FEEE">欢迎登录</div>
+                    <div style="width:100%;text-align: center;font-size: 28px;color: #11FEEE">欢迎登录</div>
                       <AccountLogin />
                   </div>
                 </div>
             </div>
         </div>
-        <div class="rights">技术支持:苏州国科鸿宇智能科技有限公司<br/><span>GTXH Intelligent Security Management System V1.0.1</span></div>
+        <div class="rights">技术支持:苏州国科鸿宇智能科技有限公司<br/>
+<!--          <span>GTXH Intelligent Security Management System V1.0.1</span>-->
+        </div>
     </div>
 </template>
 
@@ -23,7 +28,7 @@
 import loginIconTwo from '/@/assets/login-icon-two.svg';
 import { NextLoading } from '/@/utils/loading';
 import AccountLogin from '/@/views/loginPage/component/accountLogin.vue';
-
+import "amfe-flexible";
 // 定义接口来定义对象的类型
 interface LoginState {
     isScan: boolean;
@@ -45,6 +50,19 @@
         // 页面加载时
         onMounted(() => {
             NextLoading.done();
+            const baseSize = 38;
+            /* 设置 rem 函数 */
+            function setRem() {
+              const scale = document.documentElement.clientWidth / 1920; /* 当前页面宽度缩放比例,可根据自己需要修改 */
+              document.documentElement.style.fontSize = baseSize * Math.min(scale, 2) + "px";/* 设置页面根节点字体大小 */
+              console.log('切换尺寸>>',document.documentElement.style.fontSize)
+            }
+            setRem();/* 初始化 rem */
+
+            window.onresize = () => {
+              setRem();/* 改变窗口大小时重新设置 rem */
+              console.log('执行切换')
+            }
         });
         return {
             logoMini,
@@ -57,15 +75,6 @@
 </script>
 
 <style scoped lang="scss">
-    @media screen and (min-width: 1366px){
-
-    }
-    @media screen and (min-width: 1024px) and (max-width: 1366px){
-
-    }
-    @media screen and (min-width: 960px) and (max-width: 1024px){
-
-    }
 .login-container {
     width: 100%;
     height: 100%;
@@ -77,7 +86,19 @@
     background: url('../../assets/loginPage/login-bg.jpg') no-repeat center;
     background-size: 100% 100%;
     /*background-image: radial-gradient(at center, #0075c3, #000b61);*/
-
+    .starBg{
+      width: 1030px;
+      height: 1135px;
+      position: absolute;
+      left: 50%;
+      transform: translateX(-50%);
+      top: 50px;
+      z-index: -1;
+      background: url("../../assets/loginPage/starFalls.gif") no-repeat center;
+      background-size: 100% 100%;
+      opacity: 0.1;
+      -webkit-opacity: 0.1;
+    }
     .rights {
         font-size: 12px;
         color: #fff;
@@ -91,7 +112,7 @@
         }
     }
     .loginContent {
-        width: 32vw;
+        width: 40%;
         display: flex;
         flex-direction: column;
         align-items: center;
@@ -109,7 +130,7 @@
         }
         .loginPanel {
             width: 100%;
-            padding: 4vh;
+            padding: 60px 180px 80px;
             box-sizing: border-box;
             display: flex;
             flex-direction: column;

--
Gitblit v1.9.2