Commit e3e4748f authored by yaqizhang's avatar yaqizhang

地图切换

parent 48aa3145
...@@ -59,23 +59,15 @@ ...@@ -59,23 +59,15 @@
</div> </div>
<div class="mapChange"> <div class="mapChange">
<div class="qiehuan" @mouseover="hover = true" @mouseleave="hover = false"> <div class="qiehuan">
<img class="divfirst" src="../../assets/image/quanjing.png" alt="">
<div class="mapqh1">地图切换</div>
<transition name="show">
<div v-if="hover" class="qiehuanlog">
<div :class="{ active: !mapStyle }" @click="mapChange(1)"> <div :class="{ active: !mapStyle }" @click="mapChange(1)">
<img src="../../assets/image/weixing.png" alt=""> <img src="../../assets/image/weixing.png" alt="" v-show="!downIcon">
<div class="mapqh2">卫星</div> <div class="mapqh2" v-show="!downIcon">卫星</div>
</div> </div>
<div :class="{ active: mapStyle }" @click="mapChange(2)"> <div :class="{ active: mapStyle }" @click="mapChange(2)">
<img class="divsecond" src="../../assets/image/quanxi.png" alt=""> <img src="../../assets/image/quanxi.png" alt="" v-show="downIcon">
<div class="mapqh3">全景</div> <div class="mapqh3" v-show="downIcon">全景</div>
</div> </div>
</div>
</transition>
</div> </div>
</div> </div>
</div> </div>
...@@ -85,15 +77,16 @@ ...@@ -85,15 +77,16 @@
import { pipeColor } from "@/utils/mapClass/config.js"; import { pipeColor } from "@/utils/mapClass/config.js";
export default { export default {
data() { data() {
downIcon: true;
return { return {
pipeColor, pipeColor,
mapStyle:true, mapStyle:true,
hover:false
}; };
}, },
methods: { methods: {
// 更改卫星图 // 更改卫星图
mapChange(num) { mapChange(num) {
this.downIcon = !this.downIcon
if (num == 1) { if (num == 1) {
this.mapStyle = false; this.mapStyle = false;
} else { } else {
...@@ -208,7 +201,6 @@ export default { ...@@ -208,7 +201,6 @@ export default {
font-size: 14px; font-size: 14px;
color: #838280; color: #838280;
background-color: #fff; background-color: #fff;
margin-left: 8px;
} }
@keyframes show { @keyframes show {
0%{ 0%{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment