Browse Source

编辑优化代码

niujiuru 1 month ago
parent
commit
7420d3c35f

+ 10 - 3
web-ui.service/web/app.html

@@ -3,7 +3,7 @@
 
 <head>
 <meta charset="utf-8">
-<title>河南云飞科技设备管理平台</title>
+<title>河南云飞科技RTU设备管理</title>
 <link rel="stylesheet" href="static/css/app.css">
 <link rel="stylesheet" href="static/css/button.css">
 </head>
@@ -12,8 +12,15 @@
 <div class="app">
    <header class="topbar">
     <div class="device">
-      <span class="icon">🆔</span>
-      <span id="imei-value">--</span>
+      <span class="icon">🌾</span>
+      <div class="device-info">
+        <div class="title-line">
+          <span class="title">河南云飞科技RTU设备管理</span>
+        </div>
+        <div class="imei-line">
+          <span id="imei-value">--</span>
+        </div>
+      </div>
     </div>
     <div class="actions">
       <button class="btn btn-red" onclick="logout()">退出</button>

+ 2 - 2
web-ui.service/web/login.html

@@ -4,7 +4,7 @@
 <head>
 <meta charset="UTF-8">
 <meta name="viewport" content="width=device-width, initial-scale=1.0">
-<title>河南云飞科技设备管理平台</title>
+<title>河南云飞科技RTU设备管理</title>
 <link rel="stylesheet" href="static/css/login.css">
 </head>
 
@@ -12,7 +12,7 @@
 <div class="login-box">
     <div class="logo"> 🌾 </div>
 
-    <h1>河南云飞科技设备管理平台</h1>
+    <h1>河南云飞科技RTU设备管理</h1>
     <div class="subtitle">
         科技赋能农业,数据驱动未来
     </div>

+ 2 - 2
web-ui.service/web/pages/page2.html

@@ -40,7 +40,7 @@
       <div class="left-pane">
         <div class="card">
           <div class="card-header">
-            <h2>网卡信息</h2>
+            <h2>网络接口</h2>
             <button class="btn" title="点击刷新最新数据" onclick="getNetInfo1()">🔄</button>
           </div>
           <pre class="output" id="text1">点击刷新获取数据...</pre>
@@ -48,7 +48,7 @@
 
         <div class="card">
           <div class="card-header">
-            <h2>路由信息</h2>
+            <h2>系统路由</h2>
             <button class="btn" title="点击刷新最新数据" onclick="getNetInfo3()">🔄</button>
           </div>
           <pre class="output" id="text2">点击刷新获取数据...</pre>

+ 45 - 22
web-ui.service/web/static/css/app.css

@@ -20,35 +20,57 @@ body{
 
 /* 标题栏 */
 .topbar{
-    height:52px;
-    display:flex;
-    justify-content:space-between;
-    align-items:center;
-    padding:0 16px;
+    height: 64px;
+    background: linear-gradient(180deg, #1f2937, #111827);
+    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
+    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
+    display: flex;
+    align-items: center;
+    justify-content: space-between;
+    padding: 0;
+}
 
-    background:linear-gradient(180deg,#1f2937,#111827);
-    border-bottom:1px solid rgba(148,163,184,0.18);
+.device{
+    display: flex;
+    align-items: center;
+    gap: 12px;
+    margin-left: 20px;
+}
 
-    color:#e2e8f0;
-    font-size:14px;
-    letter-spacing:0.5px;
-    font-weight:500;
+.device .icon{
+    font-size: 28px;
+    width: 24px;
+    display: flex;
+    align-items: center;
+    justify-content: center;
+}
 
-    box-shadow:0 1px 0 rgba(0,0,0,0.4);
+.device-info {
+    display: flex;
+    flex-direction: column;
+    justify-content: center;
+    gap: 1px;
 }
 
-.device{
-    font-family: ui-monospace, monospace;
-    display:flex;
-    align-items:center;
-    gap:8px;
-    font-size:15px;
-    font-weight:500
+.title-line {
+    line-height: 1.3;
 }
 
-.device .icon{
-    display:inline-block;
-    transform: translate(2px, -1px);
+.title-line .title {
+    font-size: 15px;
+    font-weight: 600;
+    color: #e2e8f0;
+    letter-spacing: 0.5px;
+}
+
+.imei-line {
+    line-height: 1.3;
+}
+
+#imei-value {
+    font-family: ui-monospace, monospace;
+    font-size: 15px;
+    color: #94a3b8;
 }
 
 .actions{
@@ -74,6 +96,7 @@ body{
 
     display:flex;
     flex-direction:column;
+    padding: 20px;
 }
 
 .menu{