chenquansheng

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

... ... @@ -42,6 +42,7 @@ export class CompDTO implements BaseDTO {
imageScale: number = -1; // 封面图比例 1-4:3, 2-16:9, 3-3:2
audioDataList: AudioDTO[] = [];
titleShowPolicy: string | number = '';
titleShow: string | number = '';
/**
* 组件内容源类型 (LIVE_HORIZONTAL_CARD\LIVE_RESERVATION\LIVE_LARGE_CARD\LIVE_END\LIVE_MONTHLY_RANKING )
*/
... ... @@ -105,6 +106,7 @@ export class CompDTO implements BaseDTO {
comp.imageScale = old.imageScale
comp.audioDataList = old.audioDataList
comp.titleShowPolicy = old.titleShowPolicy
comp.titleShow = old.titleShow
comp.pageId = old.pageId
comp.extraData = old.extraData
comp.dataSourceType = old.dataSourceType
... ...
... ... @@ -28,7 +28,7 @@ export struct Card5Component {
@State textArr: textItem[] = []
async aboutToAppear(): Promise<void> {
console.log('Card2Component', JSON.stringify(this.compDTO))
console.log('Card2Component', JSON.stringify(this.compDTO),this.contentDTO.titleShow)
const curRouter = router.getState().name;
this.clicked = hasClicked(this.contentDTO.objectId, curRouter)
this.loadImg = await onlyWifiLoadImg();
... ... @@ -66,7 +66,7 @@ export struct Card5Component {
)
.height(this.loadImg ? '' : 114)
.autoResize(true)
if (!!this.titleShowPolicy || this.titleShowPolicy === null) {
if (this.contentDTO.titleShow == 1 || this.contentDTO.titleShow == null) {
Row()
.borderRadius(
{
... ...