Browse Source

修改样式

zs 10 months ago
parent
commit
184a8ac064
2 changed files with 6 additions and 4 deletions
  1. 5 3
      src/views/main/twelveHatch/index.vue
  2. 1 1
      src/views/main/twelveHatch/path/map.vue

+ 5 - 3
src/views/main/twelveHatch/index.vue

@@ -61,7 +61,7 @@
                 <div class="center_1">
                   <div class="box">
                     <div class="boxnav mapc" style="position: relative">
-                      <map1></map1>
+                      <map1 class="map"></map1>
                     </div>
                   </div>
                 </div>
@@ -373,8 +373,10 @@ onBeforeUnmount(() => {
     background-size: 100% 100%;
   }
   .map {
-    position: relative;
-    height: 100%;
+    position: absolute;
+    top: 0;
+    left: -8%;
+    width: 100%;
   }
   .mapnav {
     position: absolute;

+ 1 - 1
src/views/main/twelveHatch/path/map.vue

@@ -267,7 +267,7 @@ function drawChina() {
       center: [125.593273, 44.290795],
       map: 'china',
       roam: true, //是否允许缩放,拖拽
-      zoom: 4, //初始化大小
+      zoom: 5, //初始化大小
       //缩放大小限制
       scaleLimit: {
         min: 0.1, //最小