From 264880703c677d63b7e35b5eb085e6bc3214e3ed Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期三, 17 七月 2024 18:29:31 +0800
Subject: [PATCH] 2024.7.17

---
 src/utils/map/dialog.js |   13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/src/utils/map/dialog.js b/src/utils/map/dialog.js
index 443f87b..900ac0c 100644
--- a/src/utils/map/dialog.js
+++ b/src/utils/map/dialog.js
@@ -1,3 +1,4 @@
+import $ from 'jquery';
 import { factorName } from '@/constant/factor-name';
 import { factorUnit } from '@/constant/factor-unit';
 import { windDir } from '@/constant/wind-dir';
@@ -32,7 +33,8 @@
       isCustom: true, //浣跨敤鑷畾涔夌獥浣�
       content: this.createWindowContent(m),
       // eslint-disable-next-line no-undef
-      offset: new AMap.Pixel(16, -45)
+      offset: new AMap.Pixel(16, -45),
+      autoMove: false
     });
     return m.window;
   },
@@ -103,7 +105,7 @@
         n = 0;
       }
       var v = f.factorData.toFixed(n);
-      var unit = factorUnit[f.factorName];
+      var unit = factorUnit[f.factorName].unit;
       if (f.factorName == 'CO') {
         unit = '渭g/m鲁';
       }
@@ -165,9 +167,9 @@
     var titleD = document.createElement('div');
     var closeX = document.createElement('i');
     titleD.innerHTML = title;
-    closeX.className = 'fa fa-times';
-    // eslint-disable-next-line no-undef
+    closeX.className = 'text-close';
     $(closeX).attr('aria-hidden', 'true');
+    $(closeX).text('X');
     closeX.onclick = function () {
       marker.close();
       marker.window.close();
@@ -187,11 +189,8 @@
     refreshV.className = 'refresh-btn';
     var refresh = document.createElement('i');
     refresh.className = 'fa fa-refresh';
-    // eslint-disable-next-line no-undef
     $(refresh).attr('aria-hidden', 'true');
-    // eslint-disable-next-line no-undef
     $(refresh).css('color', '#ffffffc0');
-    // eslint-disable-next-line no-undef
     $(refresh).css('cursor', 'pointer');
     refresh.onclick = function () {
       //   $(this).addClass('fa-spin')

--
Gitblit v1.9.3