douaojie

fix: 控制标题显示

@@ -38,6 +38,7 @@ export struct Card5Component { @@ -38,6 +38,7 @@ export struct Card5Component {
38 ] 38 ]
39 }) 39 })
40 Row() { 40 Row() {
  41 + if (this.titleShowPolicy === 1) {
41 Text(this.contentDTO.newsTitle) 42 Text(this.contentDTO.newsTitle)
42 .width(CommonConstants.FULL_WIDTH) 43 .width(CommonConstants.FULL_WIDTH)
43 .height(CommonConstants.FULL_HEIGHT) 44 .height(CommonConstants.FULL_HEIGHT)
@@ -47,6 +48,8 @@ export struct Card5Component { @@ -47,6 +48,8 @@ export struct Card5Component {
47 .maxLines(2) 48 .maxLines(2)
48 .align(Alignment.Bottom) 49 .align(Alignment.Bottom)
49 } 50 }
  51 +
  52 + }
50 .justifyContent(FlexAlign.Start) 53 .justifyContent(FlexAlign.Start)
51 .height(40) 54 .height(40)
52 .margin({ left: 12, bottom: 10, right: 12 }) 55 .margin({ left: 12, bottom: 10, right: 12 })