Browse Source

分享图片样式bug

jwyu 2 years ago
parent
commit
a4c5a9bc0f
1 changed files with 3 additions and 3 deletions
  1. 3 3
      pages-report/chapterList.vue

+ 3 - 3
pages-report/chapterList.vue

@@ -269,12 +269,12 @@ export default {
             const shareTime=dayjs(this.info.report_info.publish_time).format('MMDD')
             if(this.info.report_info.abstract){
                 shareTitle=this.info.report_info.abstract
-                imgText=`<view style="font-size:78px">第${this.info.report_info.stage}期 | ${this.info.report_info.title}(${shareTime})</view>`
+                imgText=`<div style="font-size:78px">第${this.info.report_info.stage}期 | ${this.info.report_info.title}(${shareTime})</div>`
             }else{
                 shareTitle=this.info.report_info.title
-                imgText=`<view style="font-size:78px">${dayjs(this.info.report_info.publish_time).format('YYYY/MM/DD')}</view><view style="font-size:78px">第${this.info.report_info.stage}期 | ${this.info.report_info.classify_name_second}</view>`
+                imgText=`<div style="font-size:78px">${dayjs(this.info.report_info.publish_time).format('YYYY/MM/DD')}</div><div style="font-size:78px">第${this.info.report_info.stage}期 | ${this.info.report_info.classify_name_second}</div>`
                 if(['晨报','周报'].includes(this.info.report_info.classify_name_first)){
-                    imgText=`<view style="font-size:78px">${dayjs(this.info.report_info.publish_time).format('YYYY/MM/DD')}</view><view style="font-size:78px">第${this.info.report_info.stage}期 | ${this.info.report_info.classify_name_first} </view>`
+                    imgText=`<div style="font-size:78px">${dayjs(this.info.report_info.publish_time).format('YYYY/MM/DD')}</div><div style="font-size:78px">第${this.info.report_info.stage}期 | ${this.info.report_info.classify_name_first} </div>`
                 }
             }
             const rddpImgRes=await apiRddpShareImg({