北京经济技术开发区经开区虚拟城市项目-【前端】--政府服务中心-1号屏Web
Surpriseplus
2023-10-10 1d0db2268bc114753f1f2b0fce056cfbaf519a64
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<template>
  <div style="z-index: 100000000">
    <div class="Poplayer">
      <div
        class="close"
        @click.stop="closehandle"
      ></div>
      <!-- <div class="title">点位详情</div> -->
      <div class="content">
        <div class="ssdw">{{ state.list[KEY["所属单位"]] }}</div>
        <div class="lxr">联系人:{{ state.list[KEY["联系人"]] }}</div>
        <div class="dz">地址:{{ state.list[KEY["地址"]] }}</div>
        <!-- <div class="con-item" v-for="(item, index) in KEY" :key="index">
          <span class="name">{{ index }}:</span>
          <span class="value">{{ state.list[item] }}</span>
        </div> -->
      </div>
    </div>
  </div>
</template>
 
<script>
import store from "@/utils/store";
import keys from "@/utils/poiKeys";
export default {
  name: "Main",
  components: {},
  props: {
    keys: {
      type: Object,
    },
    list: {
      type: Object,
    },
  },
  data() {
    return {
      state: store.Poplayer,
      KEY: {},
    };
  },
  computed: {},
  mounted() {
    if (this.list) {
      this.state.list = this.list;
    }
    this.KEY = keys[this.state.list.POITYPE];
  },
  watch: {
    "state.list": function (val) {
      this.KEY = keys[val.POITYPE];
    },
  },
  methods: {
    closehandle() {
      if (window.pickFeature && window.pickFeature.primitive) {
        window.pickFeature.primitive.image = window.imgUrl;
        window.pickFeature.primitive.scale = window.scale;
        window.pickFeature = null;
      }
      store.setlocalLayerListAction({});
      divPoint3 && divPoint3.deleteObject();
      store.setlocalLayerShowAction(false);
      if (window.tdglLine) {
        sgworld.Creator.DeleteObject(window.tdglLine);
        window.tdglLine = null;
      }
    },
  },
};
</script>
 
<style scoped>
.Poplayer {
  min-width: 380px;
  max-width: 580px;
  /* width: 380px; */
  /* min-height: 183px; */
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("./img/bg.png");
  z-index: 999;
  color: #fff;
  font-family: SourceHanSansSC-R;
  /* 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: 15px;
  cursor: pointer;
}
 
.content {
  width: 100%;
  margin: auto;
}
 
.con-item {
  width: 90%;
  overflow: hidden;
  margin-bottom: 7px;
  margin-left: 25px;
  margin-right: 20px;
  word-break: break-all;
}
 
.name {
  /* min-width: 100px; */
  float: left;
}
 
.value {
  max-width: 400px;
  float: left;
  color: aqua;
}
.ssdw {
  width: 94%;
  margin: 20px auto 0;
  text-align: center;
  color: #f2be10;
  font: bold 18px sans-serif;
}
.lxr {
  margin: 13px auto 0;
  max-width: 80%;
  text-align: center;
  color: #fff;
  font: bold 15px sans-serif;
}
.dz {
  margin: 13px auto 20px;
  max-width: 80%;
  text-align: center;
  color: #fff;
  font: bold 15px sans-serif;
}
</style>