|
|
|
@ -1366,34 +1366,33 @@ export default {
|
|
|
|
if (that.jobDetail.jobRequestLabelNames.length > 0) {
|
|
|
|
if (that.jobDetail.jobRequestLabelNames.length > 0) {
|
|
|
|
that.jobDetail.jobRequestLabelNames.forEach((item1, index) => {
|
|
|
|
that.jobDetail.jobRequestLabelNames.forEach((item1, index) => {
|
|
|
|
if (index <= 3) {
|
|
|
|
if (index <= 3) {
|
|
|
|
that.G.fillTextLineBreak(ctx, item1, baseLeft + labelLeft + 80, line4 + 4, 400, 40, "#666", mainFontSize); // 标签字符
|
|
|
|
that.G.fillTextLineBreak(ctx, item1, baseLeft + labelLeft + 80, line4 + 4, 500, 40, "#666", mainFontSize);
|
|
|
|
// that.G.roundRect1(ctx, baseLeft + labelLeft, line4 - 38, ctx.measureText(item1).width + 24, 56, 8, "#00000012");
|
|
|
|
labelLeft += ctx.measureText(item1).width + 40;
|
|
|
|
labelLeft += ctx.measureText(item1).width + 32;
|
|
|
|
if (index == 3) {
|
|
|
|
if (index == 3) {
|
|
|
|
labelLeft = 0;
|
|
|
|
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;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} else if (index > 3 && index <= 6) {
|
|
|
|
} 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, 500, 40, "#666", mainFontSize);
|
|
|
|
that.G.fillTextLineBreak(ctx, item1, baseLeft + labelLeft + 80, line5 + 4, 400, 40, "#666", mainFontSize); // 标签字符
|
|
|
|
labelLeft += ctx.measureText(item1).width + 40;
|
|
|
|
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 + 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"); // 宣传标语背景
|
|
|
|
that.G.roundRect1(ctx, mycenter - 712 / 2, line6, 712, 60, 4, "#fff6e8"); // 宣传标语背景
|
|
|
|
// 绘制立即咨询
|
|
|
|
// 绘制立即咨询
|
|
|
|
|