5ab9d491 by renchao@pashanhoo.com

style:证书预览

1 parent 12a05c3b
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-09-06 15:41:50 4 * @LastEditTime: 2023-09-06 15:47:54
5 --> 5 -->
6 <template> 6 <template>
7 <div class="from-clues loadingtext" v-Loading="loading" element-loading-text="拼命加载中..." style="height:720px;text-align: center;"> 7 <div class="from-clues loadingtext" v-Loading="loading" element-loading-text="拼命加载中..." style="height:720px;text-align: center;">
...@@ -463,20 +463,19 @@ ...@@ -463,20 +463,19 @@
463 arr.push(currentLine); 463 arr.push(currentLine);
464 if (i > 0) { 464 if (i > 0) {
465 arr.forEach((line, index) => { 465 arr.forEach((line, index) => {
466 context.fillText(line, 770, 428 + (23 * (i - 1)) + 5 * num + (index * 14)); // 调整行高 466 context.fillText(line, 770, 428 + (25 * (i - 1)) + 5 * num + (index * 15)); // 调整行高
467 }) 467 })
468 } else { 468 } else {
469 arr.forEach((line, index) => { 469 arr.forEach((line, index) => {
470 context.fillText(line, 770, 435 + (23 * (i - 1)) + (index * 14)); // 调整行高 470 context.fillText(line, 770, 435 + (25 * (i - 1)) + (index * 14)); // 调整行高
471 }) 471 })
472 } 472 }
473 } else { 473 } else {
474 context.fillText(lines[i] ? lines[i] : '', 770, 440 + 5 * num + (22 * (i - 1))); 474 if (i > 0) {
475 // if (i > 0) { 475 context.fillText(lines[i] ? lines[i] : '', 770, 440 + 5 * num + (24 * (i - 1)));
476 // context.fillText(lines[i] ? lines[i] : '', 770, 440 + 5 * num + (23 * (i - 1))); 476 } else {
477 // } else { 477 context.fillText(lines[i] ? lines[i] : '', 770, 440 + (24 * (i - 1)));
478 // context.fillText(lines[i] ? lines[i] : '', 770, 440 + (23 * (i - 1))); 478 }
479 // }
480 } 479 }
481 } 480 }
482 // fj 481 // fj
......