修改html
This commit is contained in:
@@ -7659,7 +7659,7 @@ var htmlContent=''
|
||||
|
||||
// 判断是否是图片
|
||||
if (item.type == 1) {
|
||||
var picsrc = 'https://submission.tmrjournals.com/public/mainimg/' + item.image.url;
|
||||
var picsrc = 'https://submission.tmrjournals.com/public/articleImage/' + item.image.url;
|
||||
var fun = "picPreview('" + picsrc + "');"
|
||||
// console.log(fun)
|
||||
|
||||
@@ -7671,9 +7671,15 @@ var htmlContent=''
|
||||
<img src="${picsrc}" onclick="${fun}" style="width: ${
|
||||
item.width ? `${item.width}px` : '100%'
|
||||
}" />
|
||||
<font class="font" style="width: ${item.width ? `${item.width}px` : '100%'}" >${
|
||||
<div class="font" style="width: ${item.width ? `${item.width}px` : '100%'};
|
||||
|
||||
font-size: 14px;
|
||||
color: #006699;
|
||||
font-weight: bold;
|
||||
line-height: 22px;
|
||||
text-align:center;" >${
|
||||
item.image.note ? item.image.note : ''
|
||||
}</font>
|
||||
}</div>
|
||||
</p>
|
||||
`;
|
||||
|
||||
@@ -7705,11 +7711,19 @@ var htmlContent=''
|
||||
})
|
||||
.join('')}
|
||||
</table>
|
||||
<font class="font" style="width:100%" >${item.table.note ? item.table.note : ''}</font>
|
||||
<div class="font" style="width: ${item.width ? `${item.width}px` : '100%'};
|
||||
|
||||
font-size: 14px;
|
||||
color: #006699;
|
||||
font-weight: bold;
|
||||
line-height: 22px;
|
||||
text-align:center;" >${
|
||||
item.table.note ? item.table.note : ''
|
||||
}</div>
|
||||
</div>
|
||||
`;
|
||||
} else {
|
||||
contentHtml = `<p class="pMain Ptitle" main-state="${item.state}" contenteditable="false" data-id="${item.am_id}" main-id="${item.am_id}"${item.content}</p>`;
|
||||
contentHtml = `<p class="pMain " main-state="${item.state}" contenteditable="false" data-id="${item.am_id}" main-id="${item.am_id}">${item.content}</p>`;
|
||||
}
|
||||
|
||||
// 判断是否是表格类型
|
||||
|
||||
Reference in New Issue
Block a user