|
@@ -122,10 +122,16 @@ async function getReportInfo() {
|
|
|
Title:detail.title,
|
|
|
Content:detail.content,
|
|
|
HasChapter:Boolean(detail.hasChapter),
|
|
|
- HeadResource:detail.headResource,
|
|
|
- EndResource:detail.endResource
|
|
|
+ HeadResource:{
|
|
|
+ ImgUrl:detail.headResource?.imgURL||'',
|
|
|
+ Style:detail.headResource?.style||''
|
|
|
+ },
|
|
|
+ EndResource:{
|
|
|
+ ImgUrl:detail.endResource?.imgURL||'',
|
|
|
+ Style:detail.endResource?.style||''
|
|
|
+ }
|
|
|
}
|
|
|
- headImgStyle.value=reportInfo.value.HeadResource.Style?JSON.parse(reportInfo.value.Style):[]
|
|
|
+ headImgStyle.value=reportInfo.value.HeadResource.Style?JSON.parse(reportInfo.value.HeadResource.Style):[]
|
|
|
endImgStyle.value=reportInfo.value.EndResource.Style?JSON.parse(reportInfo.value.EndResource.Style):[]
|
|
|
layoutBaseInfo.value['研报标题']=reportInfo.value.Title
|
|
|
layoutBaseInfo.value['研报作者']=reportInfo.value.Author
|
|
@@ -237,7 +243,7 @@ onUnmounted(() => {
|
|
|
:key="item.value"
|
|
|
:style="{
|
|
|
fontFamily:item.family,
|
|
|
- fontSize:(item.size*2)+'px',
|
|
|
+ fontSize:item.size+'px',
|
|
|
fontWeight:item.weight,
|
|
|
textAlign:item.align,
|
|
|
color:item.color,
|