|
|
@@ -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;
|
|
|
}
|