This commit is contained in:
yanran200730
2022-10-09 10:19:31 +08:00
parent 2a48e816f4
commit 57e8a411c2

View File

@@ -119,10 +119,11 @@ export default {
},
renderMarker(context) {
console.log(context)
const buildId = context.data[0].id
let el = `<div class="mark" id="buildId-${buildId}">
<img src="${context.data[0].icon || 'https://cdn.cunwuyun.cn/dvcp/ply/icon.png'}">
<img src="${context.data[0].categoryIcon || 'https://cdn.cunwuyun.cn/dvcp/ply/icon.png'}">
</div>`
context.marker.setContent(el);
@@ -474,8 +475,14 @@ export default {
border-radius: 50%;
cursor: pointer;
img {
width: 50px;
height: 50px;
border-radius: 50%;
}
&:hover {
opacity: 0.7;
opacity: 0.8;
}
}