4d89f4e2 by renchao@pashanhoo.com

style:证书预览

1 parent 4af02c93
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-08-22 16:37:00
* @LastEditTime: 2023-08-25 09:23:55
-->
<template>
<div class="from-clues loadingtext" v-Loading="loading" element-loading-text="拼命加载中..." style="height:720px;text-align: center;">
......@@ -151,7 +151,7 @@
const maxWidth = 336; // 最大宽度限制
let lines = this.bdcqz.qlqtzk ? this.bdcqz.qlqtzk.split('\n') : [];
lines.forEach((line, index) => {
const y = 463 + (index * 45); // 每行文本的垂直位置
const y = 463 + (index * 40); // 每行文本的垂直位置
let currentLine = '';
let arr = [];
for (let word of line) {
......@@ -186,7 +186,7 @@
}
arr.push(currentLine);
arr.forEach((line, index) => {
context.fillText(line, 580, y + (index * 16)); // 调整行高
context.fillText(line, 580, y + (index * 30)); // 调整行高
})
})
let lines3 = this.bdcqz.syqx ? this.bdcqz.syqx.split(' ') : [];
......