基于亦庄一张图系统为模板创建的Demo系统
surprise
2024-04-16 f51e0da4c397110b2916a9dc371b6d745042029d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<template>
  <div class="botttomMenuBox">
    <div class="bottomwrapper" @click="setMapMenuClick">
      <div class="imgbox">
        <img src="../assets/img/menu/chengshigengxin.png" />
      </div>
      <div class="textbox">
        <span>历史影像 </span>
      </div>
    </div>
  </div>
</template>
 
<script lang="ts" setup>
import { ref, onMounted, reactive, defineProps, defineEmits, watch } from "vue";
import store from "@/store";
import mapScreen from "../assets/js/mapScreen";
import historyLayer from "../assets/js/historyLayer";
const setMapMenuClick = () => {
  if (mapScreen.isScreen) {
    mapScreen.edit();
    historyLayer.removeLeftMapLayer();
    historyLayer.removeRightMapLayer();
    store.state.showScreenFlag = true;
  } else {
    store.state.showScreenFlag = false;
    mapScreen.Init();
  }
};
</script>
 
<style scoped lang="less">
.botttomMenuBox {
  width: 20px;
  height: 30px;
  z-index: 40;
  position: absolute;
  bottom: 130px;
  left: 50%;
  transform: trsnslate(-50%, 0%);
  .bottomwrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
  }
 
  .imgbox {
    width: 110px;
    height: 90px;
    background: url("../assets/img/menu/b1.png");
    background-size: 100% 100%;
    position: relative;
  }
  .imgbox:hover {
    background-image: url("../assets/img/menu/h1.png");
  }
 
  .imgbox img {
    width: 32px;
    position: absolute;
    top: 37%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .textbox {
    margin-top: 2px;
    width: 100px;
    height: 28px;
    background-image: url("../assets/img/menu/textbg.png");
    background-size: 100% 100%;
  }
 
  .textbox span {
    text-align: center;
    display: block;
    font-size: 20px;
    font-family: Source Han Sans SC;
    font-weight: 400;
    color: #ffffff;
    line-height: 28px;
    text-shadow: 0px 2px 2px rgba(32, 32, 32, 0.8);
  }
}
</style>