From 7287fd7df2b1b1a388ebaa13cd6a57735e0d3657 Mon Sep 17 00:00:00 2001 From: Sjh <55341701@qq.com> Date: Fri, 10 Nov 2023 16:42:15 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=96=B0=E5=A2=9E]=E9=A2=84=E8=AD=A6=E6=A1=86?= =?UTF-8?q?=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../get-out-of-line-details.component.ts | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.ts b/src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.ts index 0adda6e..6559ed2 100644 --- a/src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.ts +++ b/src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.ts @@ -284,11 +284,11 @@ export class GetOutOfLineDetailsComponent implements OnInit { this.ctx.font = "16px Verdana"; let name = ""; // ⛑️ ζˆ΄δΊ† - // πŸ‘·β€β™‚οΈ 沑戴 + // πŸ‘¨β€πŸ¦² 沑戴 if (this.isShowAxOtherRegion) { if (this.typeArr[item.id].name.indexOf("δΊΊ") !== -1) { let icon; - item.helmet_person ? (icon = "⛑️") : (icon = "πŸ‘·β€β™‚οΈ"); + item.helmet_person ? (icon = "⛑️") : (icon = "πŸ‘¨β€πŸ¦²"); name = icon + this.typeArr[item.id].name + item.scores; } else { name = this.typeArr[item.id].name + item.scores; @@ -296,7 +296,7 @@ export class GetOutOfLineDetailsComponent implements OnInit { } else { if (this.typeArr[item.id].name.indexOf("δΊΊ") !== -1) { let icon; - item.helmet_person ? (icon = "⛑️") : (icon = "πŸ‘·β€β™‚οΈ"); + item.helmet_person ? (icon = "⛑️") : (icon = "πŸ‘¨β€πŸ¦²"); name = icon + this.typeArr[item.id].name; } else { name = this.typeArr[item.id].name; @@ -311,7 +311,6 @@ export class GetOutOfLineDetailsComponent implements OnInit { ); } else { if (item.error) { - console.log("衰了几遍222", this.typeArr[item.id].name); this.ctx.strokeStyle = this.typeArr[item.id].color; this.ctx.lineWidth = 3; this.ctx.strokeRect( @@ -324,6 +323,12 @@ export class GetOutOfLineDetailsComponent implements OnInit { this.ctx.fillRect(startPoint[0], startPoint[1], 10, 10); this.ctx.fillStyle = this.typeArr[item.id].color; this.ctx.font = "16px Verdana"; + + if (this.typeArr[item.id].name.indexOf("δΊΊ") !== -1) { + let icon; + item.helmet_person ? (icon = "⛑️") : (icon = "πŸ‘¨β€πŸ¦²"); + this.ctx.fillText(icon, startPoint[0], startPoint[1] - 5); + } } } });