style:证书预览
Showing
1 changed file
with
3 additions
and
3 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-08-22 16:37:00 | 4 | * @LastEditTime: 2023-08-25 09:23:55 |
| 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;"> |
| ... | @@ -151,7 +151,7 @@ | ... | @@ -151,7 +151,7 @@ |
| 151 | const maxWidth = 336; // 最大宽度限制 | 151 | const maxWidth = 336; // 最大宽度限制 |
| 152 | let lines = this.bdcqz.qlqtzk ? this.bdcqz.qlqtzk.split('\n') : []; | 152 | let lines = this.bdcqz.qlqtzk ? this.bdcqz.qlqtzk.split('\n') : []; |
| 153 | lines.forEach((line, index) => { | 153 | lines.forEach((line, index) => { |
| 154 | const y = 463 + (index * 45); // 每行文本的垂直位置 | 154 | const y = 463 + (index * 40); // 每行文本的垂直位置 |
| 155 | let currentLine = ''; | 155 | let currentLine = ''; |
| 156 | let arr = []; | 156 | let arr = []; |
| 157 | for (let word of line) { | 157 | for (let word of line) { |
| ... | @@ -186,7 +186,7 @@ | ... | @@ -186,7 +186,7 @@ |
| 186 | } | 186 | } |
| 187 | arr.push(currentLine); | 187 | arr.push(currentLine); |
| 188 | arr.forEach((line, index) => { | 188 | arr.forEach((line, index) => { |
| 189 | context.fillText(line, 580, y + (index * 16)); // 调整行高 | 189 | context.fillText(line, 580, y + (index * 30)); // 调整行高 |
| 190 | }) | 190 | }) |
| 191 | }) | 191 | }) |
| 192 | let lines3 = this.bdcqz.syqx ? this.bdcqz.syqx.split(' ') : []; | 192 | let lines3 = this.bdcqz.syqx ? this.bdcqz.syqx.split(' ') : []; | ... | ... |
-
Please register or sign in to post a comment