From 71261b4a82770d25b4cda4e41d203da2c8c54cb0 Mon Sep 17 00:00:00 2001 From: liuye Date: Mon, 10 Oct 2022 17:19:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=B0=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../apps/AppCommunityResource/components/resourceMap.vue | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/project/pengliuyang/apps/AppCommunityResource/components/resourceMap.vue b/project/pengliuyang/apps/AppCommunityResource/components/resourceMap.vue index 139f6199..b48cf34c 100644 --- a/project/pengliuyang/apps/AppCommunityResource/components/resourceMap.vue +++ b/project/pengliuyang/apps/AppCommunityResource/components/resourceMap.vue @@ -55,8 +55,6 @@ export default { mapLib: null, type: '', typeList: [], - fireIcon: require('./img/fire-icon.png'), - fireIconActive: require('./img/fire-icon-active.png'), isShowInfo: false, resourceList: [], chooseResourceId: '', @@ -119,7 +117,7 @@ export default { renderMarker(context) { const resourceId = context.data[0].id - let el = `` + let el = `` context.marker.setContent(el); context.marker.setAnchor("center") @@ -133,11 +131,9 @@ export default { document.querySelectorAll('.mark-icon').forEach(el => { el.style['width'] = '38px' el.style['height'] = '38px' - el.src = this.fireIcon }) document.querySelector(`#resourceId-${e.target.id}`).style['width'] = '50px' document.querySelector(`#resourceId-${e.target.id}`).style['height'] = '50px' - document.querySelector(`#resourceId-${e.target.id}`).src = this.fireIconActive }) }, @@ -198,7 +194,7 @@ export default { params: { current: 1, size: 1000000, - // areaId: this.areaId, + areaId: this.areaId, categoryId: this.type } }).then(res => { @@ -210,6 +206,7 @@ export default { id: item.id, corpId: item.corpId, areaName: item.areaName, + icon: item.categoryIcon } }) this.addMakert(points)