北京经济技术开发区经开区虚拟城市项目-【前端】-移动端Web
lixuliang
2024-03-13 fa05dfcce55b8589d7f76175700a92fe196dcd9b
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<template>
  <div class="landAdmin">
    <transition name="el-zoom-in-bottom">
      <div class="Poplayer" v-if="showlandInfo">
        <div class="close" @click.stop="closehandle"></div>
        <div class="title">地块详情</div>
        <div class="content">
          <div class="con-item" v-for="(item, index) in KEY" :key="index">
            <span class="name">{{ index }}:</span>
            <span class="value">{{ state.info[item] }}</span>
          </div>
        </div>
      </div>
    </transition>
  </div>
</template>
 
<script>
import store from "@/utils/store2";
import keys from "@/utils/poiKeys";
export default {
  name: "landAdmin",
  components: {},
  data() {
    return {
      state: store.tdglInfo,
      KEY: {},
      showlandInfo: false,
    };
  },
  mounted() {
    if (this.list) {
      this.state.info = this.list;
    }
    this.KEY = keys[this.state.info.POITYPE];
  },
  watch: {
    "state.info": function (val) {
      console.log("state.info");
      this.KEY = keys[val.POITYPE];
    },
    "state.show": function (val) {
      console.log("state.show");
      this.showlandInfo = val;
    },
  },
  methods: {
    closehandle() {
      store.setTdlgInfo({});
      divPoint3 && divPoint3.deleteObject();
      store.setTdglShow(false);
      if (window.tdglLine) {
        window.mapapi.removeLayer(window.tdglLine);
        window.tdglLine = null;
      }
    },
  },
};
</script>
<style scoped>
.landAdmin {
  width: 100%;
  position: absolute;
  bottom: 0px;
  align-items: center;
  /* background: white; */
  z-index: 1000;
}
.Poplayer {
  /* min-width: 350px; */
  min-height: 180px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("./img/bg.png");
  background-color: #0b2c3f;
 
  border-radius: 10px;
  z-index: 999;
  color: #fff;
  /* padding: 20px; */
  padding: 10px 5px 10px 5px;
  box-sizing: border-box;
  font-size: 16px;
  pointer-events: all;
}
 
.title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 4px;
  padding-left: 26px;
}
 
/* .title {
  display: none;
  width: 100%;
  height: 30px;
  line-height: 30px;
  padding-left: 20px;
  margin-top: 10px;
} */
 
.close {
  pointer-events: all;
  width: 28px;
  height: 28px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("./img/close.png");
  float: right;
  margin-top: 8px;
  margin-right: 5px;
  cursor: pointer;
}
 
.content {
  width: 100%;
  margin: auto;
}
 
.con-item {
  width: 90%;
  /* overflow: hidden; */
  margin-left: 5%;
  margin-bottom: 7px;
  /* margin-right: 20px; */
  display: flex;
  align-items: center;
  justify-content: center;
}
 
.name {
  width: 30%;
  /* float: left; */
}
 
.value {
  width: 70%;
  /* max-width: 400px; */
  /* float: left; */
  color: aqua;
}
</style>