This commit is contained in:
yanran200730
2022-10-11 09:55:55 +08:00
parent 88e9c450b5
commit b26eb2e1dc

View File

@@ -7,6 +7,7 @@
</div> </div>
<div class="community-info__header"> <div class="community-info__header">
<h2>{{ info.resourceName }}</h2> <h2>{{ info.resourceName }}</h2>
<el-tag type="success" size="small" style="margin: 6px 0;">{{ info.categoryName }}</el-tag>
<div>{{ info.areaName }}{{ info.address }}</div> <div>{{ info.areaName }}{{ info.address }}</div>
</div> </div>
<div class="community-info__wrapper"> <div class="community-info__wrapper">
@@ -44,7 +45,8 @@ export default {
satellite: null, satellite: null,
zoom: 11, zoom: 11,
choosedId: '', choosedId: '',
center: [] center: [],
list: []
} }
}, },
computed: { computed: {
@@ -78,18 +80,16 @@ export default {
} }
}) })
this.list = points
this.addMakert(points) this.addMakert(points)
} }
}) })
}, },
getInfo (id) { getInfo (id) {
this.instance.post(`/app/appresourceinfo/queryDetailById?id=${id}`).then(res => { this.info = this.list.filter(v => id === v.id)[0]
if (res.code === 0) { this.isShowInfo = true
this.info = res.data
this.isShowInfo = true
}
})
}, },
renderClusterMarker(context) { renderClusterMarker(context) {
@@ -195,7 +195,6 @@ export default {
color: #fff; color: #fff;
font-size: 20px; font-size: 20px;
font-weight: 500; font-weight: 500;
margin-bottom: 10px;
} }
div { div {
@@ -204,14 +203,6 @@ export default {
color: #D2E0FF; color: #D2E0FF;
font-size: 12px; font-size: 12px;
} }
span {
display: block;
margin-top: 4px;
font-style: normal;
color: #82C5FF;
font-size: 14px;
}
} }
.community-info { .community-info {