王士厅

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

... ... @@ -59,6 +59,7 @@ export struct CardParser {
Column() {
// Text('CardParser')
// Text(JSON.stringify(this.contentDTO.appStyle))
// Text(this.contentDTO.newsTitle)
this.contentBuilder(this.contentDTO);
}
}
... ...
... ... @@ -28,7 +28,9 @@ export struct Card5Component {
@State textArr: textItem[] = []
async aboutToAppear(): Promise<void> {
console.log('Card2Component', JSON.stringify(this.compDTO),this.contentDTO.titleShow)
// console.log(TAG, JSON.stringify(this.compDTO),this.contentDTO.titleShow)
// console.log(TAG, 'this.contentDTO.title', this.contentDTO.title)
// console.log(TAG, 'this.contentDTO.newsTitle', this.contentDTO.newsTitle)
const curRouter = router.getState().name;
this.clicked = hasClicked(this.contentDTO.objectId, curRouter)
this.loadImg = await onlyWifiLoadImg();
... ... @@ -68,7 +70,7 @@ export struct Card5Component {
.borderColor($r('app.color.color_0D000000'))
.height(this.loadImg ? '' : 114)
.autoResize(true)
if (this.titleShowPolicy == 1) {
if (this.contentDTO.titleShow == 1) {
Row()
.borderRadius(
{
... ... @@ -87,7 +89,7 @@ export struct Card5Component {
})
Row() {
if (this.titleShowPolicy == 1 && this.contentDTO.newsTitle) {
if (this.contentDTO.titleShow == 1 && this.contentDTO.newsTitle) {
Stack() {
if(this.contentDTO.objectType == '5'){
Notes({ objectType: this.contentDTO.objectType,objectLevel:this.contentDTO.objectLevel }).height(20).align(Alignment.Center)
... ...
... ... @@ -48,7 +48,7 @@ export struct VideoChannelPage {
async aboutToAppear() {
// 背景图高度
this.backgroundImageH = px2vp(this.topSafeHeight) + 44
console.info(`cj2024 backgroundImageH = ${this.backgroundImageH} this.topSafeHeight = ${this.topSafeHeight}`)
// console.info(`cj2024 backgroundImageH = ${this.backgroundImageH} this.topSafeHeight = ${this.topSafeHeight}`)
this.setBarBackgroundColor()
}
... ... @@ -89,7 +89,7 @@ export struct VideoChannelPage {
* @returns
*/
tabSelectedColor(selected: boolean): string {
console.info(`cj2024 selected this.navItem.channelChooseColor=${this.navItem.channelChooseColor} selected = ${selected}`)
// console.info(`cj2024 selected this.navItem.channelChooseColor=${this.navItem.channelChooseColor} selected = ${selected}`)
if (selected) {
return this.navItem.channelChooseColor ? this.navItem.channelChooseColor : '#222222'
} else {
... ...