From 1d552a3bad95caae4af15322df28e6240b797693 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Thu, 13 Aug 2026 15:32:06 +0800
Subject: [PATCH] feat: app视频封面图

---
 applications/mobile-web-view/src/appComponents/LeafletMap/indexWX.vue |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/applications/mobile-web-view/src/appComponents/LeafletMap/indexWX.vue b/applications/mobile-web-view/src/appComponents/LeafletMap/indexWX.vue
index 60789d8..05745e3 100644
--- a/applications/mobile-web-view/src/appComponents/LeafletMap/indexWX.vue
+++ b/applications/mobile-web-view/src/appComponents/LeafletMap/indexWX.vue
@@ -419,6 +419,10 @@
 				weight: 0, // 隐藏多边形边框,使用折线作为边框
 			});
 
+			polygon.on('click', function(e) {
+				handlePolygonClick(item, e);
+			});
+
 			// 创建折线(边框)
 			const polyline = L.polyline([...latLngs, latLngs[0]], { // 闭合多边形
 				color: item.airspaceType === '0' ? '#00ff06' : '#ff0000',
@@ -434,6 +438,12 @@
 		});
 }
 
+// 点击事件处理函数
+function handlePolygonClick(item, event) {
+	// 把值返回给父组件
+	EventBus.emit('mapClickAirspace', item)
+}
+
 const mapClearMarker = () => {
 	addressMarkersLayer.clearLayers()
 }

--
Gitblit v1.9.3