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

Merge remote-tracking branch 'origin/master'

parents a98b4f6b 1d3f5ad1
...@@ -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 {
...@@ -176,8 +169,8 @@ export default { ...@@ -176,8 +169,8 @@ export default {
} }
.qiehuan img{ .qiehuan img{
width: 70px; width: 56px;
height: 40px; height: 38px;
} }
.divsecond{ .divsecond{
margin-left: 8px; margin-left: 8px;
...@@ -197,18 +190,17 @@ export default { ...@@ -197,18 +190,17 @@ export default {
} }
.mapqh2{ .mapqh2{
position: fixed; position: fixed;
margin-top: -23px; margin-top: -21px;
font-size: 14px; font-size: 12px;
color: #838280; color: #838280;
background-color: #fff; background-color: #fff;
} }
.mapqh3{ .mapqh3{
position: fixed; position: fixed;
margin-top: -23px; margin-top: -21px;
font-size: 14px; font-size: 12px;
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