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 @@
@@ -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);