Browse Source

修改地图marker图片超出显示

wangcc 2 years ago
parent
commit
e6b4c13383

+ 1 - 5
src/components/alarm.vue

@@ -1,5 +1,5 @@
 <!--
- * @LastEditors: gcz
+ * @LastEditors: wangcc
 -->
 <template>
   <div class="alarm-wrap">
@@ -40,7 +40,6 @@ export default {
     };
   },
   created() {
-    console.log(this.data);
     this.ScrollUp();
   },
   computed: {
@@ -49,7 +48,6 @@ export default {
   watch: {
     '$store.state.addr.mapLevel': {
       handler(val) {
-        console.log(val);
         if (val === 'city') {
           // console.log('aowfk');
           let _this = this;
@@ -78,8 +76,6 @@ export default {
             label: item.cityName,
             areaId: element.areaId
           });
-          console.log(element.areaCode.substring(0, 6));
-          console.log(item.cityName);
           this.$store.dispatch('searchArea', {
             parentId: element.areaCode.substring(0, 6),
             name: item.cityName,

+ 19 - 1
src/components/amapnow.vue

@@ -980,7 +980,6 @@ export default {
         this.map.remove(this.economicsArr);
       }
       smallClassMap(params).then((res) => {
-        console.log(res);
         if (res.code == 200) {
           this.smallClassMapArr = res.rows;
           if (this.leftPage === 'forest') {
@@ -1732,6 +1731,8 @@ export default {
     .marker-imgs {
       display: block;
       line-height: 18px !important;
+      width: 376px;
+      overflow: auto;
       img {
         width: 40px;
         height: 40px;
@@ -1739,6 +1740,23 @@ export default {
         cursor: pointer;
       }
     }
+    .marker-imgs::-webkit-scrollbar{
+      background: transparent;
+      opacity: 0.6px;
+      width: 10px;
+      height: 8px;
+    }
+    .marker-imgs::-webkit-scrollbar-thumb{
+      background: rgba($color: #07a2eb8e, $alpha: 0.6);
+      border-radius: 20px;
+      -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
+      
+    }
+    .marker-imgs::-webkit-scrollbar-track {/*滚动条里面轨道*/
+        -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
+        border-radius: 10px;
+        background: transparent;
+    }
   }
 }
 

+ 0 - 1
src/components/header.vue

@@ -78,7 +78,6 @@ import timeFormat from '@/utils/timeFormat'
         },
         methods: {
             toggleFullScreen(){
-                console.log('document.documentElement.requestFullscreen',document.documentElement.requestFullscreen);
                 // alternative standard method
                 if (!document.fullscreenElement &&
                     !document.mozFullScreenElement && !document.webkitFullscreenElement && !document.msFullscreenElement) { // current working methods

+ 1 - 2
src/components/map.vue

@@ -3,7 +3,7 @@
  * @Author: wangcc
  * @Date: 2022-06-10 11:51:36
  * @LastEditors: wangcc
- * @LastEditTime: 2022-06-16 09:31:01
+ * @LastEditTime: 2022-08-03 09:25:06
  * @FilePath: \castgroup_bigscreen\src\components\map.vue
  * @Copyright: Copyright (c) 2016~2022 by wangcc, All Rights Reserved. 
 -->
@@ -143,7 +143,6 @@ export default {
           // })
         })
         .catch((e) => {
-          console.log(e);
         });
     },
     getMap(AMap) {

+ 0 - 2
src/components/pickerAddr.vue

@@ -75,7 +75,6 @@ export default {
   },
   watch: {
     '$store.state.addr.selectCity'(val) {
-      console.log(val);
       this.selectCity = val;
     },
     '$store.state.addr.selectDistrict'(val) {
@@ -167,7 +166,6 @@ export default {
     //   });
     // },
     cityChange(val, level) {
-      console.log(val);
       if (level == 'city') {
         this.changeSelectCity({
           value: val.value,