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
wangliang_wd
2024-06-13 16:44:19 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
10ef4874e1a430d90d05d7767d183117db2a084a
10ef4874
1 parent
5e58d582
feat:调整早晚报UI显示
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
sight_harmony/features/wdComponent/src/main/ets/components/MorningEveningPaper/MorningEveningPaperComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/MorningEveningPaper/MorningEveningPaperComponent.ets
View file @
10ef487
...
...
@@ -270,10 +270,13 @@ export struct MorningEveningPaperComponent {
}
if (this.audioPlayUrl
!== ""
){
if (this.audioPlayUrl
.length > 0
){
ListItem() {
this.AudioBarView()
}
.margin({
top: this.isHasTopView ? 10 : 44+this.topSafeHeight
})
}
ListItem() {
...
...
@@ -284,7 +287,7 @@ export struct MorningEveningPaperComponent {
compListItem: this.compListItem,
})
.margin({
top: this.isHasTopView ? 10 : 44+this.topSafeHeight
top: this.isHasTopView
|| this.audioPlayUrl.length > 0
? 10 : 44+this.topSafeHeight
})
}
}
...
...
@@ -333,7 +336,7 @@ export struct MorningEveningPaperComponent {
.margin({ left: 10 })
.alignSelf(ItemAlign.Start)
Text(`${this.pageInfoBean.topicInfo
.topicPattern === 1 ? '早上好' : this.pageInfoBean.topicInfo
.topicPattern === 2 ? '中午好' : '晚上好'}, 请收听今日新闻播报`)
Text(`${this.pageInfoBean.topicInfo
?.topicPattern === 1 ? '早上好' : this.pageInfoBean.topicInfo?
.topicPattern === 2 ? '中午好' : '晚上好'}, 请收听今日新闻播报`)
.fontSize(14)
.margin({ left: 50 })
.fontColor(Color.Black)
...
...
@@ -363,19 +366,12 @@ export struct MorningEveningPaperComponent {
console.log("TAG", "cj compInfoBean onClick2 = " + this.isAudioPlaying)
})
}
// .aspectRatio(7 / 4)
.height('100%')
// .justifyContent(FlexAlign.Center)
// .width(94)
// .width(140)
.width('20%')
// .height(56)
.onClick(() => {
// console.info(TAG, `onClick listen_right_bg`);
})
}
.margin({ left: 12, right: 12 })
// .width('100%')
.height(56)
.alignItems(VerticalAlign.Center)
.justifyContent(FlexAlign.SpaceBetween)
...
...
Please
register
or
login
to post a comment