王士厅

fix: 搜索-0807话题专题,搜索结果中话题专题卡片未展示标签和专题名称

@@ -59,6 +59,7 @@ export struct CardParser { @@ -59,6 +59,7 @@ export struct CardParser {
59 Column() { 59 Column() {
60 // Text('CardParser') 60 // Text('CardParser')
61 // Text(JSON.stringify(this.contentDTO.appStyle)) 61 // Text(JSON.stringify(this.contentDTO.appStyle))
  62 + // Text(this.contentDTO.newsTitle)
62 this.contentBuilder(this.contentDTO); 63 this.contentBuilder(this.contentDTO);
63 } 64 }
64 } 65 }
@@ -28,7 +28,9 @@ export struct Card5Component { @@ -28,7 +28,9 @@ 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),this.contentDTO.titleShow) 31 + // console.log(TAG, JSON.stringify(this.compDTO),this.contentDTO.titleShow)
  32 + // console.log(TAG, 'this.contentDTO.title', this.contentDTO.title)
  33 + // console.log(TAG, 'this.contentDTO.newsTitle', this.contentDTO.newsTitle)
32 const curRouter = router.getState().name; 34 const curRouter = router.getState().name;
33 this.clicked = hasClicked(this.contentDTO.objectId, curRouter) 35 this.clicked = hasClicked(this.contentDTO.objectId, curRouter)
34 this.loadImg = await onlyWifiLoadImg(); 36 this.loadImg = await onlyWifiLoadImg();
@@ -68,7 +70,7 @@ export struct Card5Component { @@ -68,7 +70,7 @@ export struct Card5Component {
68 .borderColor($r('app.color.color_0D000000')) 70 .borderColor($r('app.color.color_0D000000'))
69 .height(this.loadImg ? '' : 114) 71 .height(this.loadImg ? '' : 114)
70 .autoResize(true) 72 .autoResize(true)
71 - if (this.titleShowPolicy == 1) { 73 + if (this.contentDTO.titleShow == 1) {
72 Row() 74 Row()
73 .borderRadius( 75 .borderRadius(
74 { 76 {
@@ -87,7 +89,7 @@ export struct Card5Component { @@ -87,7 +89,7 @@ export struct Card5Component {
87 }) 89 })
88 90
89 Row() { 91 Row() {
90 - if (this.titleShowPolicy == 1 && this.contentDTO.newsTitle) { 92 + if (this.contentDTO.titleShow == 1 && this.contentDTO.newsTitle) {
91 Stack() { 93 Stack() {
92 if(this.contentDTO.objectType == '5'){ 94 if(this.contentDTO.objectType == '5'){
93 Notes({ objectType: this.contentDTO.objectType,objectLevel:this.contentDTO.objectLevel }).height(20).align(Alignment.Center) 95 Notes({ objectType: this.contentDTO.objectType,objectLevel:this.contentDTO.objectLevel }).height(20).align(Alignment.Center)
@@ -48,7 +48,7 @@ export struct VideoChannelPage { @@ -48,7 +48,7 @@ export struct VideoChannelPage {
48 async aboutToAppear() { 48 async aboutToAppear() {
49 // 背景图高度 49 // 背景图高度
50 this.backgroundImageH = px2vp(this.topSafeHeight) + 44 50 this.backgroundImageH = px2vp(this.topSafeHeight) + 44
51 - console.info(`cj2024 backgroundImageH = ${this.backgroundImageH} this.topSafeHeight = ${this.topSafeHeight}`) 51 + // console.info(`cj2024 backgroundImageH = ${this.backgroundImageH} this.topSafeHeight = ${this.topSafeHeight}`)
52 this.setBarBackgroundColor() 52 this.setBarBackgroundColor()
53 } 53 }
54 54
@@ -89,7 +89,7 @@ export struct VideoChannelPage { @@ -89,7 +89,7 @@ export struct VideoChannelPage {
89 * @returns 89 * @returns
90 */ 90 */
91 tabSelectedColor(selected: boolean): string { 91 tabSelectedColor(selected: boolean): string {
92 - console.info(`cj2024 selected this.navItem.channelChooseColor=${this.navItem.channelChooseColor} selected = ${selected}`) 92 + // console.info(`cj2024 selected this.navItem.channelChooseColor=${this.navItem.channelChooseColor} selected = ${selected}`)
93 if (selected) { 93 if (selected) {
94 return this.navItem.channelChooseColor ? this.navItem.channelChooseColor : '#222222' 94 return this.navItem.channelChooseColor ? this.navItem.channelChooseColor : '#222222'
95 } else { 95 } else {