From 5002dc38ad7d4b08f99e576c4e2bcec1c70de8e1 Mon Sep 17 00:00:00 2001 From: liuyunqin Date: Mon, 29 Jun 2026 18:51:17 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E7=AB=99=E7=82=B9=E5=85=A5?= =?UTF-8?q?=E5=8F=A3=E6=8C=87=E5=90=91=E5=BA=94=E6=80=A5=E5=A4=A7=E5=B1=8F?= =?UTF-8?q?=20v3=20+=20v3=20=E4=BA=A4=E4=BA=92=E4=BC=98=E5=8C=96=EF=BC=88?= =?UTF-8?q?=E8=B7=AF=E7=BA=BF=E9=9D=A2=E6=9D=BF=E5=85=B3=E9=97=AD=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E3=80=81=E5=91=8A=E8=AD=A6=E8=B6=8B=E5=8A=BF=E3=80=81?= =?UTF-8?q?=E5=92=A8=E8=AF=A2=E5=8D=A1=E7=89=87=E7=B2=BE=E7=AE=80=E3=80=81?= =?UTF-8?q?=E6=80=A5=E6=95=91=E6=8F=90=E7=A4=BA=E4=B9=A6=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E7=BB=98=E7=BA=BF=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 4 +- .../xian-center/index-v3.html | 51 ++++++++++++++----- 2 files changed, 41 insertions(+), 14 deletions(-) diff --git a/index.html b/index.html index cce42ca..7d59d5a 100644 --- a/index.html +++ b/index.html @@ -863,8 +863,8 @@ const SITE_MAP = [ {label:'扫码溯源', file:'trace-query.html'}, {label:'溯源链路', file:'trace-detail.html'} ] }, - { name:'西安应急中心大屏', dir:'other-module/emergency-screen/xian-center', pages:[ - {label:'应急中心大屏', file:'index.html'} + { name:'西安应急中心大屏', dir:'other-module/emergency-screen/xian-center', entry:'index-v3.html', pages:[ + {label:'应急中心大屏', file:'index-v3.html'} ] }, { name:'标准版中心大屏', dir:'other-module/emergency-screen/standard-center', pages:[] }, { name:'九厂应急中心大屏', dir:'other-module/emergency-screen/jiuchang-center', pages:[] }, diff --git a/other-module/emergency-screen/xian-center/index-v3.html b/other-module/emergency-screen/xian-center/index-v3.html index 5b88aaf..f58c457 100644 --- a/other-module/emergency-screen/xian-center/index-v3.html +++ b/other-module/emergency-screen/xian-center/index-v3.html @@ -774,7 +774,9 @@ border-top:1.5px solid rgba(24,144,255,0.35);border-left:1.5px solid rgba(24,144,255,0.35);border-radius:10px 0 0 0;} .route-panel::after{content:'';position:absolute;bottom:0;right:0;width:10px;height:10px; border-bottom:1.5px solid rgba(24,144,255,0.35);border-right:1.5px solid rgba(24,144,255,0.35);border-radius:0 0 10px 0;} - .route-panel__title{font-size:12px;font-weight:600;color:var(--cyan);text-align:center;margin-bottom:2px;} + .route-panel__title{position:relative;font-size:12px;font-weight:600;color:var(--cyan);text-align:center;margin-bottom:2px;} + .route-panel__close{position:absolute;right:-2px;top:50%;transform:translateY(-50%);font-size:18px;color:var(--text-dim);cursor:pointer;line-height:1;transition:all .2s;} + .route-panel__close:hover{color:var(--text-main);} .route-panel__item{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid rgba(24,144,255,0.08);} .route-panel__item:last-child{border-bottom:none;} .route-panel__dot{width:10px;height:10px;border-radius:50%;flex-shrink:0;} @@ -1552,7 +1554,7 @@
-
距离最近资源
+
距离最近资源×
@@ -1711,7 +1713,7 @@
35
-
今日告警次数
+
今日告警次数 ↑15%
@@ -1748,23 +1750,14 @@
-
- -
36
入驻专家数
-
- -
1,286
累计咨询次数
-
- -
892
累计咨询人数
@@ -2815,6 +2808,32 @@ function closeGuidePanel(){ } } +/* [交互] 关闭"距离最近资源"面板:清理逻辑与 closeGuidePanel 一致 */ +function closeRoutePanel(){ + hideResourcePopup(); + document.getElementById('routePanel').classList.remove('route-panel--show'); + document.getElementById('empMarker').classList.remove('emp-marker--show'); + document.getElementById('routeSvg').classList.remove('route-svg--show'); + /* 隐藏所有路线 */ + Object.keys(ROUTE_MAP).forEach(function(k){ + var line=document.getElementById(ROUTE_MAP[k].line); + if(line)line.setAttribute('opacity','0'); + var m=document.getElementById(ROUTE_MAP[k].marker); + if(m)m.classList.remove('map-marker--route'); + }); + currentRouteType=null; + /* 恢复图例 */ + var legend=document.querySelector('.map-legend'); + if(legend)legend.style.display=''; + /* 恢复全部资源标记 */ + document.querySelectorAll('.map-marker').forEach(function(m){m.style.display='block';}); + /* 恢复全部资源Tab */ + var allTab=document.querySelector('.res-tab[onclick*="all"]'); + if(allTab){ + document.querySelectorAll('.res-tab').forEach(function(t){t.classList.remove('active','res-tab--route-active');}); + allTab.classList.add('active'); + } +} /* ========== 急救路线 ========== */ /* 路线类型 → { 路线SVG line id, 地图标记 id } */ var ROUTE_MAP={ @@ -2845,13 +2864,21 @@ var RESOURCE_INFO={ function onMapMarkerClick(el, key){ var routePanel=document.getElementById('routePanel'); + var guidePanel=document.getElementById('guidePanel'); var inRouteMode=routePanel&&routePanel.classList.contains('route-panel--show'); + var inGuideMode=guidePanel&&guidePanel.classList.contains('guide-panel--show'); /* 急救路线模式下:保留路线选择逻辑,并展示资源详情卡(含下发急救通知按钮) */ if(inRouteMode&&ROUTE_MAP[key]){ selectRoute(key); showResourcePopup(el, key, true); return; } + /* 急救提示书模式下:点击资源标记绘制/切换路线,并展示资源详情卡(参考急救路线交互,不带下发按钮) */ + if(inGuideMode&&ROUTE_MAP[key]){ + selectRoute(key); + showResourcePopup(el, key, false); + return; + } /* 普通模式:隐藏所有路线,显示资源弹窗(不带下发按钮) */ hideAllRoutes(); showResourcePopup(el, key, false);