wangliang_wd

feat:优化我的收藏专题标题展示

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