Ares

ref |> 修改头图卡组件、头图卡稿件标题展示策略

@@ -68,7 +68,7 @@ export struct Card5Component { @@ -68,7 +68,7 @@ export struct Card5Component {
68 .borderColor($r('app.color.color_0D000000')) 68 .borderColor($r('app.color.color_0D000000'))
69 .height(this.loadImg ? '' : 114) 69 .height(this.loadImg ? '' : 114)
70 .autoResize(true) 70 .autoResize(true)
71 - if (this.contentDTO.titleShow == 1) { 71 + if ((this.contentDTO.titleShow == 1 && this.contentDTO.appStyle == '5') || (this.compDTO.compStyle === CompStyle.Zh_Single_Column_02 && this.compDTO.titleShowPolicy == '1')) {
72 Row() 72 Row()
73 .borderRadius( 73 .borderRadius(
74 { 74 {
@@ -87,7 +87,7 @@ export struct Card5Component { @@ -87,7 +87,7 @@ export struct Card5Component {
87 }) 87 })
88 88
89 Row() { 89 Row() {
90 - if (this.compDTO.titleShow == 1 && this.contentDTO.newsTitle) { 90 + if ((this.contentDTO.titleShow == 1 && this.contentDTO.appStyle == '5') || (this.compDTO.compStyle === CompStyle.Zh_Single_Column_02 && this.compDTO.titleShowPolicy == '1') && this.contentDTO.newsTitle) {
91 Stack() { 91 Stack() {
92 if(this.contentDTO.objectType == '5'){ 92 if(this.contentDTO.objectType == '5'){
93 Notes({ objectType: this.contentDTO.objectType,objectLevel:this.contentDTO.objectLevel }).height(20).align(Alignment.Center) 93 Notes({ objectType: this.contentDTO.objectType,objectLevel:this.contentDTO.objectLevel }).height(20).align(Alignment.Center)