From e405611526c6904267ca027f1291608847f68d72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=81=E6=B4=AA=E9=9C=9E?= Date: Wed, 14 Jan 2026 11:57:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=82=A1=E4=BB=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Share/components/MiddlePanel/index.js | 51 ++++++++++++++++--- .../Share/components/MiddlePanel/index.less | 29 ++++++++++- src/pages/Container/Share/index.js | 1 - 3 files changed, 73 insertions(+), 8 deletions(-) diff --git a/src/pages/Container/Share/components/MiddlePanel/index.js b/src/pages/Container/Share/components/MiddlePanel/index.js index e942b66..53e4855 100644 --- a/src/pages/Container/Share/components/MiddlePanel/index.js +++ b/src/pages/Container/Share/components/MiddlePanel/index.js @@ -1,7 +1,7 @@ import "./index.less"; import Title from "~/pages/Container/WhiteBranchOffice/components/Title"; -import cake from "~/assets/images/public/white/img7.png"; +import weather from "~/assets/images/public/weather/1.png"; import {useState} from "react"; import SeamlessScroll from "zy-react-library/components/SeamlessScroll"; function WhiteShareMiddle() { @@ -21,6 +21,14 @@ function WhiteShareMiddle() { { unitName: "二公司", name: "王岩" ,duties:"公司经理", phone:"3095311" }, ]); + const [block3List, setBlock3List] = useState([ + { unitName: "二公司", state: "未处置" ,preventiveMeasures:"远离大树、电线杆..." }, + { unitName: "二公司", state: "未处置" ,preventiveMeasures:"远离大树、电线杆..." }, + { unitName: "二公司", state: "未处置" ,preventiveMeasures:"远离大树、电线杆..." }, + { unitName: "二公司", state: "未处置" ,preventiveMeasures:"远离大树、电线杆..." }, + { unitName: "二公司", state: "未处置" ,preventiveMeasures:"远离大树、电线杆..." }, + { unitName: "二公司", state: "未处置" ,preventiveMeasures:"远离大树、电线杆..." }, + ]); return (
@@ -65,20 +73,51 @@ function WhiteShareMiddle() {
-
秦皇岛市气象台发布大风橙色预警[工级/严重]11
+
秦皇岛市气象台发布大风橙色预警[工级/严重]
-
+
+ 晴 +
+ +
+
温度
+
25℃
+
+
+
风速:
+
16米8级
+
+
+
+
+
+
公司名称
+
处置状态
+
预防措施
+
+
+ + {block3List.map((item, index) => ( +
+
{item.unitName}
+
{item.state}
+
{item.preventiveMeasures}
+
+ ))} +
+
+
- - - + + + ); } diff --git a/src/pages/Container/Share/components/MiddlePanel/index.less b/src/pages/Container/Share/components/MiddlePanel/index.less index 74dc8cc..0df50cf 100644 --- a/src/pages/Container/Share/components/MiddlePanel/index.less +++ b/src/pages/Container/Share/components/MiddlePanel/index.less @@ -58,14 +58,38 @@ } .emergency_right{ - margin-left: 20px; + margin-left: 10px; padding-top: 5px; + padding-right: 5px; + flex: 1; .weather{ .title{ color: #ff6600; font-size: 14px; font-weight: bold; } + .weather_main{ + width: 100%; + display: flex; + justify-content: space-between; + color: #2b4977; + font-size: 14px; + font-weight: bold; + margin-top: 10px; + .item{ + width: 30%; + text-align: center; + .num{ + color: #2e75c6; + } + } + } + .weather_bottom{ + .fcb{ + color: #0c90ff; + } + .table-style(112px, 1fr 1fr 2fr); + } } } @@ -112,6 +136,9 @@ border-right: none; } } + .fcb{ + color: #0c90ff; + } .th { font-weight: bold; diff --git a/src/pages/Container/Share/index.js b/src/pages/Container/Share/index.js index edc583b..a58252c 100644 --- a/src/pages/Container/Share/index.js +++ b/src/pages/Container/Share/index.js @@ -12,7 +12,6 @@ function WhiteShareOffice() {
-