陈剑华

fix: 20118 【生产环境】进入热点-查看卡片,多了专题 标签和“2024年中非合作论坛峰会”,ios 不展示,只展示图片

@@ -66,7 +66,7 @@ export struct Card5Component { @@ -66,7 +66,7 @@ export struct Card5Component {
66 ) 66 )
67 .height(this.loadImg ? '' : 114) 67 .height(this.loadImg ? '' : 114)
68 .autoResize(true) 68 .autoResize(true)
69 - if (this.contentDTO.titleShow == 1 || this.contentDTO.titleShow == null) { 69 + if (this.titleShowPolicy == 1) {
70 Row() 70 Row()
71 .borderRadius( 71 .borderRadius(
72 { 72 {
@@ -85,6 +85,7 @@ export struct Card5Component { @@ -85,6 +85,7 @@ export struct Card5Component {
85 }) 85 })
86 86
87 Row() { 87 Row() {
  88 + if (this.titleShowPolicy == 1 && this.contentDTO.newsTitle) {
88 Stack() { 89 Stack() {
89 if(this.contentDTO.objectType == '5'){ 90 if(this.contentDTO.objectType == '5'){
90 Notes({ objectType: this.contentDTO.objectType,objectLevel:this.contentDTO.objectLevel }).height(20).align(Alignment.Center) 91 Notes({ objectType: this.contentDTO.objectType,objectLevel:this.contentDTO.objectLevel }).height(20).align(Alignment.Center)
@@ -130,6 +131,7 @@ export struct Card5Component { @@ -130,6 +131,7 @@ export struct Card5Component {
130 ) 131 )
131 }.alignContent(Alignment.TopStart) 132 }.alignContent(Alignment.TopStart)
132 } 133 }
  134 + }
133 .justifyContent(FlexAlign.Start) 135 .justifyContent(FlexAlign.Start)
134 .margin({ left: 12, bottom: 10, right: 12 }) 136 .margin({ left: 12, bottom: 10, right: 12 })
135 137