bug
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user