| | |
| | | <div class="preview-left"> |
| | | <div class="toptitle"> |
| | | <div class="title"> |
| | | {{ |
| | | taskname |
| | | ? taskname |
| | | : "医护知识宣教" |
| | | }} |
| | | {{ taskname ? taskname : "医护知识宣教" }} |
| | | </div> |
| | | <div style="font-size: 22px; margin-bottom: 20px; line-height: 1.5"> |
| | | {{ |
| | |
| | | ); |
| | | }, |
| | | addStyleToImages(html) { |
| | | return html.replace( |
| | | if (!html) return html; |
| | | |
| | | // 1. 先修复路径 |
| | | let processedHtml = html.replace( |
| | | /\/aifollowup\/aifollowup\//g, |
| | | "/aifollowup/" |
| | | ); |
| | | |
| | | // 2. 再修复样式 |
| | | processedHtml = processedHtml.replace( |
| | | /<img([^>]*)style=(['"])(?:(?!\2).)*\2([^>]*)>/g, |
| | | '<img$1style="width:100%;height:auto;"$3>' |
| | | ); |
| | | |
| | | return processedHtml; |
| | | }, |
| | | // 加密函数 |
| | | encrypt(txt) { |