Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
chenquansheng
2024-09-02 17:19:07 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
eddb637d88083126bfe6dd075485576f650a84e8
eddb637d
1 parent
617aedbe
fix |> 修复部分头图卡不显示标题和话题标识
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
sight_harmony/features/wdBean/src/main/ets/bean/component/CompDTO.ets
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card5Component.ets
sight_harmony/features/wdBean/src/main/ets/bean/component/CompDTO.ets
View file @
eddb637
...
...
@@ -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
...
...
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card5Component.ets
View file @
eddb637
...
...
@@ -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(
{
...
...
Please
register
or
login
to post a comment