Forráskód Böngészése

研报版图支持设置移动端字号大小-版尾

chenlei 3 hónapja
szülő
commit
cce18832b8

+ 4 - 1
src/views/smartReport/detail.vue

@@ -250,12 +250,15 @@ export default {
       };
 
       this.headImgStyle=this.reportInfo.HeadStyle?JSON.parse(this.reportInfo.HeadStyle):[]
+      this.endImgStyle=this.reportInfo.EndStyle?JSON.parse(this.reportInfo.EndStyle):[]
       if(this.isMobileDevice()) {
         this.headImgStyle.map(st =>{
           st.size = st.sizeMobile || st.size;
         })
+        this.endImgStyle.map(st =>{
+          st.size = st.sizeMobile || st.size;
+        })
       }
-      this.endImgStyle=this.reportInfo.EndStyle?JSON.parse(this.reportInfo.EndStyle):[]
       this.layoutBaseInfo['研报标题']=this.reportInfo.Title
       this.layoutBaseInfo['研报作者']=this.reportInfo.Author
       // 已发布已通过的报告才显示发布时间

+ 4 - 1
src/views/smartReport/detailPdf.vue

@@ -110,12 +110,15 @@ export default {
       };
 
       this.headImgStyle=this.reportInfo.HeadStyle?JSON.parse(this.reportInfo.HeadStyle):[]
+      this.endImgStyle=this.reportInfo.EndStyle?JSON.parse(this.reportInfo.EndStyle):[]
       if(this.isMobileDevice()) {
         this.headImgStyle.map(st =>{
           st.size = st.sizeMobile || st.size;
         })
+        this.endImgStyle.map(st =>{
+          st.size = st.sizeMobile || st.size;
+        })
       }
-      this.endImgStyle=this.reportInfo.EndStyle?JSON.parse(this.reportInfo.EndStyle):[]
       this.layoutBaseInfo['研报标题']=this.reportInfo.Title
       this.layoutBaseInfo['研报作者']=this.reportInfo.Author
       // 已发布已通过的报告才显示发布时间