chenquansheng

fix |> 修复部分头图卡不显示标题和话题标识

@@ -42,6 +42,7 @@ export class CompDTO implements BaseDTO { @@ -42,6 +42,7 @@ export class CompDTO implements BaseDTO {
42 imageScale: number = -1; // 封面图比例 1-4:3, 2-16:9, 3-3:2 42 imageScale: number = -1; // 封面图比例 1-4:3, 2-16:9, 3-3:2
43 audioDataList: AudioDTO[] = []; 43 audioDataList: AudioDTO[] = [];
44 titleShowPolicy: string | number = ''; 44 titleShowPolicy: string | number = '';
  45 + titleShow: string | number = '';
45 /** 46 /**
46 * 组件内容源类型 (LIVE_HORIZONTAL_CARD\LIVE_RESERVATION\LIVE_LARGE_CARD\LIVE_END\LIVE_MONTHLY_RANKING ) 47 * 组件内容源类型 (LIVE_HORIZONTAL_CARD\LIVE_RESERVATION\LIVE_LARGE_CARD\LIVE_END\LIVE_MONTHLY_RANKING )
47 */ 48 */
@@ -105,6 +106,7 @@ export class CompDTO implements BaseDTO { @@ -105,6 +106,7 @@ export class CompDTO implements BaseDTO {
105 comp.imageScale = old.imageScale 106 comp.imageScale = old.imageScale
106 comp.audioDataList = old.audioDataList 107 comp.audioDataList = old.audioDataList
107 comp.titleShowPolicy = old.titleShowPolicy 108 comp.titleShowPolicy = old.titleShowPolicy
  109 + comp.titleShow = old.titleShow
108 comp.pageId = old.pageId 110 comp.pageId = old.pageId
109 comp.extraData = old.extraData 111 comp.extraData = old.extraData
110 comp.dataSourceType = old.dataSourceType 112 comp.dataSourceType = old.dataSourceType
@@ -28,7 +28,7 @@ export struct Card5Component { @@ -28,7 +28,7 @@ export struct Card5Component {
28 @State textArr: textItem[] = [] 28 @State textArr: textItem[] = []
29 29
30 async aboutToAppear(): Promise<void> { 30 async aboutToAppear(): Promise<void> {
31 - console.log('Card2Component', JSON.stringify(this.compDTO)) 31 + console.log('Card2Component', JSON.stringify(this.compDTO),this.contentDTO.titleShow)
32 const curRouter = router.getState().name; 32 const curRouter = router.getState().name;
33 this.clicked = hasClicked(this.contentDTO.objectId, curRouter) 33 this.clicked = hasClicked(this.contentDTO.objectId, curRouter)
34 this.loadImg = await onlyWifiLoadImg(); 34 this.loadImg = await onlyWifiLoadImg();
@@ -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.titleShowPolicy || this.titleShowPolicy === null) { 69 + if (this.contentDTO.titleShow == 1 || this.contentDTO.titleShow == null) {
70 Row() 70 Row()
71 .borderRadius( 71 .borderRadius(
72 { 72 {