Commit fccc6b8c authored by 王晓倩's avatar 王晓倩

Merge remote-tracking branch 'origin/master'

parents a98b4f6b 1d3f5ad1
......@@ -59,23 +59,15 @@
</div>
<div class="mapChange">
<div class="qiehuan" @mouseover="hover = true" @mouseleave="hover = false">
<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)">
<img src="../../assets/image/weixing.png" alt="">
<div class="mapqh2">卫星</div>
</div>
<div :class="{ active: mapStyle }" @click="mapChange(2)">
<img class="divsecond" src="../../assets/image/quanxi.png" alt="">
<div class="mapqh3">全景</div>
</div>
</div>
</transition>
<div class="qiehuan">
<div :class="{ active: !mapStyle }" @click="mapChange(1)">
<img src="../../assets/image/weixing.png" alt="" v-show="!downIcon">
<div class="mapqh2" v-show="!downIcon">卫星</div>
</div>
<div :class="{ active: mapStyle }" @click="mapChange(2)">
<img src="../../assets/image/quanxi.png" alt="" v-show="downIcon">
<div class="mapqh3" v-show="downIcon">全景</div>
</div>
</div>
</div>
</div>
......@@ -85,15 +77,16 @@
import { pipeColor } from "@/utils/mapClass/config.js";
export default {
data() {
downIcon: true;
return {
pipeColor,
mapStyle:true,
hover:false
};
},
methods: {
// 更改卫星图
mapChange(num) {
this.downIcon = !this.downIcon
if (num == 1) {
this.mapStyle = false;
} else {
......@@ -176,8 +169,8 @@ export default {
}
.qiehuan img{
width: 70px;
height: 40px;
width: 56px;
height: 38px;
}
.divsecond{
margin-left: 8px;
......@@ -197,18 +190,17 @@ export default {
}
.mapqh2{
position: fixed;
margin-top: -23px;
font-size: 14px;
margin-top: -21px;
font-size: 12px;
color: #838280;
background-color: #fff;
}
.mapqh3{
position: fixed;
margin-top: -23px;
font-size: 14px;
margin-top: -21px;
font-size: 12px;
color: #838280;
background-color: #fff;
margin-left: 8px;
}
@keyframes show {
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