From 71609aecb8525bef6e30a8220439c0f249804bf4 Mon Sep 17 00:00:00 2001 From: jscyl13849007907 <13849007907@163.com> Date: Thu, 19 Jun 2025 15:49:58 +0800 Subject: [PATCH] no message --- root/detail/job.vue | 47 +++++++++++++++++++++++------------------------ 1 file changed, 23 insertions(+), 24 deletions(-) diff --git a/root/detail/job.vue b/root/detail/job.vue index 9da833d..34fcf1d 100644 --- a/root/detail/job.vue +++ b/root/detail/job.vue @@ -1366,34 +1366,33 @@ export default { if (that.jobDetail.jobRequestLabelNames.length > 0) { that.jobDetail.jobRequestLabelNames.forEach((item1, index) => { if (index <= 3) { - that.G.fillTextLineBreak(ctx, item1, baseLeft + labelLeft + 80, line4 + 4, 400, 40, "#666", mainFontSize); // 标签字符 - // that.G.roundRect1(ctx, baseLeft + labelLeft, line4 - 38, ctx.measureText(item1).width + 24, 56, 8, "#00000012"); - labelLeft += ctx.measureText(item1).width + 32; - if (index == 3) { - labelLeft = 0; - } - } else if (index > 3 && index <= 6) { - // that.G.roundRect1(ctx, baseLeft + labelLeft, line5 - 38, ctx.measureText(item1).width + 24, 56, 8, "#00000012"); - that.G.fillTextLineBreak(ctx, item1, baseLeft + labelLeft + 80, line5 + 4, 400, 40, "#666", mainFontSize); // 标签字符 - labelLeft += ctx.measureText(item1).width + 32; - } - }); - } else if (that.jobDetail.jobSpecialLabelNames.length > 0) { - that.jobDetail.jobSpecialLabelNames.forEach((item1, index) => { - if (index <= 3) { - that.G.fillTextLineBreak(ctx, item1, baseLeft + labelLeft + 80, line4 + 4, 400, 40, "#666", mainFontSize); // 标签字符 - // that.G.roundRect1(ctx, baseLeft + labelLeft, line4 - 38, ctx.measureText(item1).width + 24, 56, 8, "#00000012"); - labelLeft += ctx.measureText(item1).width + 32; - if (index == 3) { - labelLeft = 0; - } + that.G.fillTextLineBreak(ctx, item1, baseLeft + labelLeft + 80, line4 + 4, 500, 40, "#666", mainFontSize); + labelLeft += ctx.measureText(item1).width + 40; + if (index == 3) { + labelLeft = 0; + } } else if (index > 3 && index <= 6) { - // that.G.roundRect1(ctx, baseLeft + labelLeft, line5 - 38, ctx.measureText(item1).width + 24, 56, 8, "#00000012"); - that.G.fillTextLineBreak(ctx, item1, baseLeft + labelLeft + 80, line5 + 4, 400, 40, "#666", mainFontSize); // 标签字符 - labelLeft += ctx.measureText(item1).width + 32; + that.G.fillTextLineBreak(ctx, item1, baseLeft + labelLeft + 80, line5 + 4, 500, 40, "#666", mainFontSize); + labelLeft += ctx.measureText(item1).width + 40; } }); } + // else if (that.jobDetail.jobSpecialLabelNames.length > 0) { + // that.jobDetail.jobSpecialLabelNames.forEach((item1, index) => { + // // if (index <= 3) { + // that.G.fillTextLineBreak(ctx, item1, baseLeft + labelLeft + 80, line4 + 4, 400, 40, "#666", mainFontSize); // 标签字符 + // // that.G.roundRect1(ctx, baseLeft + labelLeft, line4 - 38, ctx.measureText(item1).width + 24, 56, 8, "#00000012"); + // labelLeft += ctx.measureText(item1).width + 20; + // // if (index == 3) { + // // labelLeft = 0; + // // } + // // } else if (index > 3 && index <= 6) { + // // // that.G.roundRect1(ctx, baseLeft + labelLeft, line5 - 38, ctx.measureText(item1).width + 24, 56, 8, "#00000012"); + // // that.G.fillTextLineBreak(ctx, item1, baseLeft + labelLeft + 80, line5 + 4, 400, 40, "#666", mainFontSize); // 标签字符 + // // labelLeft += ctx.measureText(item1).width + 32; + // // } + // }); + // } // 根据标签数量调整宣传标语位置 that.G.roundRect1(ctx, mycenter - 712 / 2, line6, 712, 60, 4, "#fff6e8"); // 宣传标语背景 // 绘制立即咨询