hsun 3 年之前
父节点
当前提交
c92124ea86
共有 2 个文件被更改,包括 8 次插入9 次删除
  1. 2 3
      services/share_poster.go
  2. 6 6
      static/htm2img/report_detail.html

+ 2 - 3
services/share_poster.go

@@ -293,9 +293,7 @@ func fillContent2Html(source, pars, sunCodeUrl string, height int) (contentStr s
 			defaultAvatar := "https://hzstatic.hzinsights.com/static/images/202112/20211210/wn6c3oYKTfT4NbTZgRGflRuIBZaa.png"
 			switch source {
 			case "activity_list":
-				if params.Title1 != "" {
-					params.Status2 = params.Status1
-				} else {
+				if params.Title1 == "" {
 					params.ListTitle = "线下沙龙"
 					params.Status1 = "未开始"
 					params.Avatar1 = defaultAvatar
@@ -304,6 +302,7 @@ func fillContent2Html(source, pars, sunCodeUrl string, height int) (contentStr s
 					params.Time1 = "2022-5-10"
 					emptyTime1 = true
 				}
+				params.Status2 = params.Status1
 				params.Avatar2 = defaultAvatar
 				params.Title2 = "周度报告"
 				params.Speaker2 = "FICC研究员"

+ 6 - 6
static/htm2img/report_detail.html

@@ -18,7 +18,7 @@
           /* width: 294px;
               height: 355px; */
           width: 1176px;
-          height: 1520px;
+          height: 1450px;
           background-color: #fff;
           padding: 100px 64px 64px 60px;
           border-radius: 16px;
@@ -41,7 +41,7 @@
           display: -webkit-box;
           overflow: hidden;
           text-overflow: ellipsis;
-          min-height: 140px;
+          min-height: 120px;
         }
         .flex {
           height: 256px;
@@ -53,7 +53,7 @@
           margin: 80px 0;
           color: #000;
           overflow: hidden;
-          font-size: 56px;
+          font-size: 48px;
         }
         .xcx-img {
           width: 256px;
@@ -61,18 +61,18 @@
           float: right;
         }
         .content-box div {
-          font-size: 40px !important;
+          font-size: 48px !important;
           overflow: inherit !important;
           line-height: 1.7 !important;
           color: #000 !important;
         }
         .content-box span {
-          font-size: 40px !important;
+          font-size: 48px !important;
           line-height: 1.7 !important;
           color: #000 !important;
         }
         .content-box p {
-          font-size: 40px !important;
+          font-size: 48px !important;
           overflow: inherit !important;
           line-height: 1.7 !important;
           color: #000 !important;