style:证书预览
Showing
2 changed files
with
14 additions
and
14 deletions
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-08-30 10:11:42 | 4 | * @LastEditTime: 2023-08-30 10:36:11 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div> | 7 | <div> |
... | @@ -252,18 +252,18 @@ | ... | @@ -252,18 +252,18 @@ |
252 | arr.push(currentLine); | 252 | arr.push(currentLine); |
253 | if (i > 0) { | 253 | if (i > 0) { |
254 | arr.forEach((line, index) => { | 254 | arr.forEach((line, index) => { |
255 | context.fillText(line, 129, 485 + (26 * (i - 1)) + 5 * num + (index * 14)); // 调整行高 | 255 | context.fillText(line, 129, 480 + (26 * (i - 1)) + 5 * num + (index * 13)); // 调整行高 |
256 | }) | 256 | }) |
257 | } else { | 257 | } else { |
258 | arr.forEach((line, index) => { | 258 | arr.forEach((line, index) => { |
259 | context.fillText(line, 129, 485 + (26 * (i - 1)) + (index * 14)); // 调整行高 | 259 | context.fillText(line, 129, 480 + (26 * (i - 1)) + (index * 13)); // 调整行高 |
260 | }) | 260 | }) |
261 | } | 261 | } |
262 | } else { | 262 | } else { |
263 | if (i > 0) { | 263 | if (i > 0) { |
264 | context.fillText(lines[i] ? lines[i] : '', 129, 495 + 5 * num + (30 * (i - 1))); | 264 | context.fillText(lines[i] ? lines[i] : '', 129, 490 + 4 * num + (24 * (i - 1))); |
265 | } else { | 265 | } else { |
266 | context.fillText(lines[i] ? lines[i] : '', 129, 495 + (30 * (i - 1))); | 266 | context.fillText(lines[i] ? lines[i] : '', 129, 490 + (24 * (i - 1))); |
267 | } | 267 | } |
268 | } | 268 | } |
269 | } | 269 | } |
... | @@ -496,9 +496,9 @@ | ... | @@ -496,9 +496,9 @@ |
496 | } | 496 | } |
497 | } else { | 497 | } else { |
498 | if (i > 0) { | 498 | if (i > 0) { |
499 | context.fillText(lines[i] ? lines[i] : '', 770, 450 + 5 * num + (23 * (i - 1))); | 499 | context.fillText(lines[i] ? lines[i] : '', 770, 447 + 6 * num + (23 * (i - 1))); |
500 | } else { | 500 | } else { |
501 | context.fillText(lines[i] ? lines[i] : '', 770, 450 + (23 * (i - 1))); | 501 | context.fillText(lines[i] ? lines[i] : '', 770, 447 + (23 * (i - 1))); |
502 | } | 502 | } |
503 | } | 503 | } |
504 | } | 504 | } | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-08-30 10:10:45 | 4 | * @LastEditTime: 2023-08-30 10:33:52 |
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;"> |
... | @@ -223,18 +223,18 @@ | ... | @@ -223,18 +223,18 @@ |
223 | arr.push(currentLine); | 223 | arr.push(currentLine); |
224 | if (i > 0) { | 224 | if (i > 0) { |
225 | arr.forEach((line, index) => { | 225 | arr.forEach((line, index) => { |
226 | context.fillText(line, 129, 485 + (26 * (i - 1)) + 5 * num + (index * 14)); // 调整行高 | 226 | context.fillText(line, 129, 480 + (26 * (i - 1)) + 5 * num + (index * 13)); // 调整行高 |
227 | }) | 227 | }) |
228 | } else { | 228 | } else { |
229 | arr.forEach((line, index) => { | 229 | arr.forEach((line, index) => { |
230 | context.fillText(line, 129, 485 + (26 * (i - 1)) + (index * 14)); // 调整行高 | 230 | context.fillText(line, 129, 480 + (26 * (i - 1)) + (index * 13)); // 调整行高 |
231 | }) | 231 | }) |
232 | } | 232 | } |
233 | } else { | 233 | } else { |
234 | if (i > 0) { | 234 | if (i > 0) { |
235 | context.fillText(lines[i] ? lines[i] : '', 129, 495 + 5 * num + (25 * (i - 1))); | 235 | context.fillText(lines[i] ? lines[i] : '', 129, 490 + 4 * num + (24 * (i - 1))); |
236 | } else { | 236 | } else { |
237 | context.fillText(lines[i] ? lines[i] : '', 129, 495 + (25 * (i - 1))); | 237 | context.fillText(lines[i] ? lines[i] : '', 129, 495 + (24 * (i - 1))); |
238 | } | 238 | } |
239 | } | 239 | } |
240 | } | 240 | } |
... | @@ -461,11 +461,11 @@ | ... | @@ -461,11 +461,11 @@ |
461 | arr.push(currentLine); | 461 | arr.push(currentLine); |
462 | if (i > 0) { | 462 | if (i > 0) { |
463 | arr.forEach((line, index) => { | 463 | arr.forEach((line, index) => { |
464 | context.fillText(line, 770, 438 + (23 * (i - 1)) + 5 * num + (index * 16)); // 调整行高 | 464 | context.fillText(line, 770, 438 + (23 * (i - 1)) + 5 * num + (index * 18)); // 调整行高 |
465 | }) | 465 | }) |
466 | } else { | 466 | } else { |
467 | arr.forEach((line, index) => { | 467 | arr.forEach((line, index) => { |
468 | context.fillText(line, 770, 438 + (23 * (i - 1)) + (index * 16)); // 调整行高 | 468 | context.fillText(line, 770, 438 + (23 * (i - 1)) + (index * 18)); // 调整行高 |
469 | }) | 469 | }) |
470 | } | 470 | } |
471 | } else { | 471 | } else { | ... | ... |
-
Please register or sign in to post a comment