diff --git a/src/assets/css/index.css b/src/assets/css/index.css index fe24a06..9f944be 100644 --- a/src/assets/css/index.css +++ b/src/assets/css/index.css @@ -1110,4 +1110,9 @@ color: #FF4500 !important; border-color: #FF4500 !important; } + +:deep(.amap-info-content) { + background: transparent !important; + padding: 0 !important; +} /* 危废车辆列表完成 */ \ No newline at end of file diff --git a/src/assets/image/add.png b/src/assets/image/add.png new file mode 100644 index 0000000..f55a732 Binary files /dev/null and b/src/assets/image/add.png differ diff --git a/src/assets/image/big_background.png b/src/assets/image/big_background.png new file mode 100644 index 0000000..408ae31 Binary files /dev/null and b/src/assets/image/big_background.png differ diff --git a/src/assets/image/liuliang.png b/src/assets/image/liuliang.png new file mode 100644 index 0000000..cc18ee2 Binary files /dev/null and b/src/assets/image/liuliang.png differ diff --git a/src/assets/image/play.png b/src/assets/image/play.png new file mode 100644 index 0000000..a422738 Binary files /dev/null and b/src/assets/image/play.png differ diff --git a/src/assets/image/reduce.png b/src/assets/image/reduce.png new file mode 100644 index 0000000..9a43267 Binary files /dev/null and b/src/assets/image/reduce.png differ diff --git a/src/assets/image/zhnj/03_01.png b/src/assets/image/zhnj/03_01.png new file mode 100644 index 0000000..03a5a20 Binary files /dev/null and b/src/assets/image/zhnj/03_01.png differ diff --git a/src/assets/image/zhnj/back.png b/src/assets/image/zhnj/back.png new file mode 100644 index 0000000..b3770d4 Binary files /dev/null and b/src/assets/image/zhnj/back.png differ diff --git a/src/assets/image/zhnj/backreturn.png b/src/assets/image/zhnj/backreturn.png new file mode 100644 index 0000000..1011711 Binary files /dev/null and b/src/assets/image/zhnj/backreturn.png differ diff --git a/src/assets/image/zhnj/backreturnhover.png b/src/assets/image/zhnj/backreturnhover.png new file mode 100644 index 0000000..760a463 Binary files /dev/null and b/src/assets/image/zhnj/backreturnhover.png differ diff --git a/src/assets/image/zhnj/biaoti.png b/src/assets/image/zhnj/biaoti.png new file mode 100644 index 0000000..e750d8d Binary files /dev/null and b/src/assets/image/zhnj/biaoti.png differ diff --git a/src/assets/image/zhnj/button01.png b/src/assets/image/zhnj/button01.png new file mode 100644 index 0000000..713daf5 Binary files /dev/null and b/src/assets/image/zhnj/button01.png differ diff --git a/src/assets/image/zhnj/button02.png b/src/assets/image/zhnj/button02.png new file mode 100644 index 0000000..7101caf Binary files /dev/null and b/src/assets/image/zhnj/button02.png differ diff --git a/src/assets/image/zhnj/bzj.png b/src/assets/image/zhnj/bzj.png new file mode 100644 index 0000000..d81e27b Binary files /dev/null and b/src/assets/image/zhnj/bzj.png differ diff --git a/src/assets/image/zhnj/close.png b/src/assets/image/zhnj/close.png new file mode 100644 index 0000000..deb1687 Binary files /dev/null and b/src/assets/image/zhnj/close.png differ diff --git a/src/assets/image/zhnj/location.png b/src/assets/image/zhnj/location.png new file mode 100644 index 0000000..3681a51 Binary files /dev/null and b/src/assets/image/zhnj/location.png differ diff --git a/src/assets/image/zhnj/nongji.png b/src/assets/image/zhnj/nongji.png new file mode 100644 index 0000000..2d54494 Binary files /dev/null and b/src/assets/image/zhnj/nongji.png differ diff --git a/src/assets/image/zhnj/nynjicon3.png b/src/assets/image/zhnj/nynjicon3.png new file mode 100644 index 0000000..3b52b14 Binary files /dev/null and b/src/assets/image/zhnj/nynjicon3.png differ diff --git a/src/assets/image/zhnj/nynjicon5.png b/src/assets/image/zhnj/nynjicon5.png new file mode 100644 index 0000000..b23ce7c Binary files /dev/null and b/src/assets/image/zhnj/nynjicon5.png differ diff --git a/src/assets/image/zhnj/nynjicon6.png b/src/assets/image/zhnj/nynjicon6.png new file mode 100644 index 0000000..6810371 Binary files /dev/null and b/src/assets/image/zhnj/nynjicon6.png differ diff --git a/src/assets/image/zhnj/other.png b/src/assets/image/zhnj/other.png new file mode 100644 index 0000000..84428d2 Binary files /dev/null and b/src/assets/image/zhnj/other.png differ diff --git a/src/assets/image/zhnj/owner.png b/src/assets/image/zhnj/owner.png new file mode 100644 index 0000000..94b9fbe Binary files /dev/null and b/src/assets/image/zhnj/owner.png differ diff --git a/src/assets/image/zhnj/sgj.png b/src/assets/image/zhnj/sgj.png new file mode 100644 index 0000000..ef45afb Binary files /dev/null and b/src/assets/image/zhnj/sgj.png differ diff --git a/src/assets/image/zhnj/state.png b/src/assets/image/zhnj/state.png new file mode 100644 index 0000000..a957577 Binary files /dev/null and b/src/assets/image/zhnj/state.png differ diff --git a/src/assets/image/zhnj/tlj.png b/src/assets/image/zhnj/tlj.png new file mode 100644 index 0000000..0163cae Binary files /dev/null and b/src/assets/image/zhnj/tlj.png differ diff --git a/src/assets/image/zhnj/wx.png b/src/assets/image/zhnj/wx.png new file mode 100644 index 0000000..49d363b Binary files /dev/null and b/src/assets/image/zhnj/wx.png differ diff --git a/src/assets/image/zhnj/zj01.png b/src/assets/image/zhnj/zj01.png new file mode 100644 index 0000000..5fcb280 Binary files /dev/null and b/src/assets/image/zhnj/zj01.png differ diff --git a/src/assets/image/zhnj/zj02.png b/src/assets/image/zhnj/zj02.png new file mode 100644 index 0000000..0c0f8ea Binary files /dev/null and b/src/assets/image/zhnj/zj02.png differ diff --git a/src/assets/image/zhnj/zj03.png b/src/assets/image/zhnj/zj03.png new file mode 100644 index 0000000..af485f0 Binary files /dev/null and b/src/assets/image/zhnj/zj03.png differ diff --git a/src/assets/image/zhnj/zygj.png b/src/assets/image/zhnj/zygj.png new file mode 100644 index 0000000..2fe5970 Binary files /dev/null and b/src/assets/image/zhnj/zygj.png differ diff --git a/src/assets/image/zhwl/tcdiliul.png b/src/assets/image/zhwl/tcdiliul.png new file mode 100644 index 0000000..c9d103e Binary files /dev/null and b/src/assets/image/zhwl/tcdiliul.png differ diff --git a/src/components/LiulDialog.vue b/src/components/LiulDialog.vue new file mode 100644 index 0000000..52889cd --- /dev/null +++ b/src/components/LiulDialog.vue @@ -0,0 +1,869 @@ + + + + + \ No newline at end of file diff --git a/src/components/SoilDialog copy.vue b/src/components/SoilDialog copy.vue new file mode 100644 index 0000000..c862c9a --- /dev/null +++ b/src/components/SoilDialog copy.vue @@ -0,0 +1,912 @@ + + + + + \ No newline at end of file diff --git a/src/components/zhnjCov.vue b/src/components/zhnjCov.vue new file mode 100644 index 0000000..96f4bdf --- /dev/null +++ b/src/components/zhnjCov.vue @@ -0,0 +1,1494 @@ + + + + + + + \ No newline at end of file diff --git a/src/pages/Home/index.vue b/src/pages/Home/index.vue index 4fef2df..8ac4178 100644 --- a/src/pages/Home/index.vue +++ b/src/pages/Home/index.vue @@ -757,70 +757,83 @@ export default { this.vehicleMarkers.push(locationMarker); }, - // 显示车辆信息窗口(深色科技风) - showVehicleInfoWindow(point, vehicleInfo) { - this.closeVehicleInfoWindow(); - - const lng = parseFloat(point.jingdu || point.longitude || point.lng || point.lon); - const lat = parseFloat(point.weidu || point.latitude || point.lat); - - const vehicleName = vehicleInfo.vePlate || vehicleInfo.plateNumber || '车辆'; - - const infoContent = ` -
-
- 🚛 - ${vehicleName} + // 显示车辆信息窗口(深色科技风) + showVehicleInfoWindow(point, vehicleInfo) { + this.closeVehicleInfoWindow(); + + const lng = parseFloat(point.jingdu || point.longitude || point.lng || point.lon); + const lat = parseFloat(point.weidu || point.latitude || point.lat); + + const vehicleName = vehicleInfo.vePlate || vehicleInfo.plateNumber || '车辆'; + + // 使用自定义HTML,不依赖InfoWindow的默认样式 + const infoContent = ` +
+
+ 🚛 + ${vehicleName} +
+
+
+ 设备ID: + ${vehicleInfo.gpsDeviceId || vehicleInfo.gpsId || '--'}
-
-
- 设备ID: - ${vehicleInfo.gpsDeviceId || vehicleInfo.gpsId || '--'} -
-
- 车牌号: - ${vehicleInfo.vePlate || vehicleInfo.plateNumber || '--'} -
-
- 最新时间: - ${point.createTime || point.server_time || point.updateTime || '--'} -
-
- 经度: - ${lng.toFixed(6)} -
-
- 纬度: - ${lat.toFixed(6)} -
+
+ 车牌号: + ${vehicleInfo.vePlate || vehicleInfo.plateNumber || '--'}
-
- 📍 点击标记查看详情 +
+ 最新时间: + ${point.createTime || point.server_time || point.updateTime || '--'} +
+
+ 经度: + ${lng.toFixed(6)} +
+
+ 纬度: + ${lat.toFixed(6)}
- `; +
+ 📍 点击标记查看详情 +
+
+ `; + + this.vehicleInfoWindow = new AMap.InfoWindow({ + content: infoContent, + offset: new AMap.Pixel(0, -35), + autoMove: true, + closeWhenClickMap: true, + // 关键:设置背景透明 + isCustom: true, + }); + + if (!isNaN(lng) && !isNaN(lat)) { + this.vehicleInfoWindow.open(this.aMap, [lng, lat]); + this.vehicleMarkers.push(this.vehicleInfoWindow); - this.vehicleInfoWindow = new AMap.InfoWindow({ - content: infoContent, - offset: new AMap.Pixel(0, -35), - autoMove: true, - closeWhenClickMap: true, - }); - - if (!isNaN(lng) && !isNaN(lat)) { - this.vehicleInfoWindow.open(this.aMap, [lng, lat]); - this.vehicleMarkers.push(this.vehicleInfoWindow); - } - }, + // 额外:手动覆盖InfoWindow的默认背景 + setTimeout(() => { + const infoWindowEl = document.querySelector('.amap-info-content'); + if (infoWindowEl) { + infoWindowEl.style.background = 'transparent !important'; + infoWindowEl.style.padding = '0 !important'; + } + }, 50); + } + }, // 关闭信息窗口 closeVehicleInfoWindow() {