Bläddra i källkod

fix: 优化通州地图路线与弹窗交互

sequoia tungfang 4 veckor sedan
förälder
incheckning
482fcae07a
1 ändrade filer med 12 tillägg och 1 borttagningar
  1. 12 1
      src/components/TongzhouTrafficMap.vue

+ 12 - 1
src/components/TongzhouTrafficMap.vue

@@ -35,7 +35,7 @@
         </div>
       </div>
     </div>
-    <div class="legend-show-btn" v-if="(!mode || mode === '路口') && !legendVisible" @click="toggleLegend">
+    <div class="legend-show-btn" v-if="(!mode || mode === '路口') && !legendVisible" @click="toggleLegend" :style="legendShowBtnStyle">
       <div class="legend-show-icon">☰</div>
     </div>
   </div>
@@ -173,6 +173,11 @@ export default {
     isHomePage() {
       return this.$route && this.$route.path === '/home';
     },
+    legendShowBtnStyle() {
+      if (!this.isHomePage) return {};
+      const right = (this.privateStyle.legend && this.privateStyle.legend.right) ? this.privateStyle.legend.right : '25%';
+      return { right, borderRadius: '6px' };
+    },
     legendStatusConfig() {
       if (!this.mode) return this.statusConfig;
       if (this.mode === '路口') {
@@ -952,6 +957,12 @@ export default {
   height: 100%;
 }
 
+::v-deep .amap-logo,
+::v-deep .amap-copyright,
+::v-deep .amap-copyright-logo {
+  display: none !important;
+}
+
 ::v-deep .pure-light-node.breathe {
   animation: light-breathe 2s infinite ease-in-out;
 }