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