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
yuzhilin
2024-04-30 17:03:56 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
434499a1ed320ffc008e89be6449d4063bdc5caf
434499a1
1 parent
2f18e4ee
fix:CardMediaInfo取值兼容
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
sight_harmony/features/wdComponent/src/main/ets/components/cardCommon/CardMediaInfo.ets
sight_harmony/features/wdComponent/src/main/ets/components/cardCommon/CardMediaInfo.ets
View file @
434499a
...
...
@@ -16,7 +16,7 @@ export struct CardMediaInfo {
build() {
Row() {
if (this.contentDTO
.objectType === '1' || this.contentDTO
.objectType === '15') {
if (this.contentDTO
?.objectType === '1' || this.contentDTO?
.objectType === '15') {
// 点播、动态视频
Row() {
Image($r('app.media.card_play'))
...
...
@@ -30,23 +30,23 @@ export struct CardMediaInfo {
// liveInfo.liveState 直播新闻-直播状态 wait待开播running直播中end已结束cancel已取消paused暂停
// 显示直播信息
Row() {
if (this.contentDTO
.liveInfo
.liveState === 'wait') {
if (this.contentDTO
?.liveInfo?
.liveState === 'wait') {
Image($r('app.media.card_wait'))
.mediaLogo()
Text('预约')
.mediaText()
} else if (this.contentDTO
.liveInfo
.liveState === 'running') {
} else if (this.contentDTO
?.liveInfo?
.liveState === 'running') {
Image($r('app.media.card_live'))
.mediaLogo()
Text('直播中')
.mediaText()
} else if (this.contentDTO
.liveInfo.liveState === 'end' && this.contentDTO.liveInfo
.replayUri) {
} else if (this.contentDTO
?.liveInfo?.liveState === 'end' && this.contentDTO?.liveInfo?
.replayUri) {
Image($r('app.media.card_play'))
.mediaLogo()
Text('回看')
.mediaText()
} else if (this.contentDTO.liveInfo.liveState === 'end' && this.contentDTO.liveInfo
.replayUri) {
} else if (this.contentDTO?.liveInfo?.liveState === 'end' && this.contentDTO?.liveInfo
?.replayUri) {
// Image($r('app.media.card_live'))
// .mediaLogo()
Text('直播结束')
...
...
Please
register
or
login
to post a comment