9cb35761 by renchao@pashanhoo.com

style:qlqtzk

1 parent 22475606
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-08-22 16:32:18 4 * @LastEditTime: 2023-08-22 16:37:00
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 * 30); // 每行文本的垂直位置 154 const y = 463 + (index * 45); // 每行文本的垂直位置
155 let currentLine = ''; 155 let currentLine = '';
156 let arr = []; 156 let arr = [];
157 for (let word of line) { 157 for (let word of line) {
...@@ -166,12 +166,12 @@ ...@@ -166,12 +166,12 @@
166 } 166 }
167 arr.push(currentLine); 167 arr.push(currentLine);
168 arr.forEach((line, index) => { 168 arr.forEach((line, index) => {
169 context.fillText(line, 129, y + (index * 16)); // 调整行高 169 context.fillText(line, 129, y + (index * 20)); // 调整行高
170 }) 170 })
171 }) 171 })
172 let lines1 = this.bdcqz.fj ? this.bdcqz.fj.split(' ') : []; 172 let lines1 = this.bdcqz.fj ? this.bdcqz.fj.split('\n') : [];
173 lines1.forEach((line, index) => { 173 lines1.forEach((line, index) => {
174 const y = 100 + (index * 27); // 每行文本的垂直位置 174 const y = 100 + (index * 30); // 每行文本的垂直位置
175 let currentLine = ''; 175 let currentLine = '';
176 let arr = []; 176 let arr = [];
177 for (let word of line) { 177 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 * 20)); // 调整行高 189 context.fillText(line, 580, y + (index * 16)); // 调整行高
190 }) 190 })
191 }) 191 })
192 let lines3 = this.bdcqz.syqx ? this.bdcqz.syqx.split(' ') : []; 192 let lines3 = this.bdcqz.syqx ? this.bdcqz.syqx.split(' ') : [];
...@@ -337,7 +337,7 @@ ...@@ -337,7 +337,7 @@
337 }) 337 })
338 338
339 // fj 339 // fj
340 let lines1 = this.bdcqz.fj ? this.bdcqz.fj.split(' ') : []; 340 let lines1 = this.bdcqz.fj ? this.bdcqz.fj.split('\n') : [];
341 lines1.forEach((line, index) => { 341 lines1.forEach((line, index) => {
342 const y = 590 + (index * 27); // 每行文本的垂直位置 342 const y = 590 + (index * 27); // 每行文本的垂直位置
343 let currentLine = ''; 343 let currentLine = '';
......