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
yanlu1_wd
2024-02-01 14:53:17 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
dbc7a748d033cbb9f03403cd4297b5c222047c57
dbc7a748
1 parent
56e5e53e
视频直播横划卡
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
16 deletions
PeopleDaily_Harmony/wdComponent/src/main/ets/components/view/LiveHorizontalCardComponent.ets
PeopleDaily_Harmony/wdComponent/src/main/ets/components/view/LiveHorizontalCardForOneComponent.ets
PeopleDaily_Harmony/wdComponent/src/main/ets/components/view/LiveVideoTypeComponent.ets
PeopleDaily_Harmony/wdComponent/src/main/ets/components/view/LiveHorizontalCardComponent.ets
View file @
dbc7a74
//
@ts-nocheck
//
视频直播横划卡16:9
import { LiveVideoTypeComponent } from './LiveVideoTypeComponent'
import { LiveHorizontalCardForOneComponent } from './LiveHorizontalCardForOneComponent'
import { CompDTO } from '../../repository/bean/CompDTO'
...
...
PeopleDaily_Harmony/wdComponent/src/main/ets/components/view/LiveHorizontalCardForOneComponent.ets
View file @
dbc7a74
// 视频直播横划卡16:9/1个
import { CommonConstants } from 'wdConstant'
import { ContentDTO } from '../../repository/bean/ContentDTO'
import { LiveVideoTypeComponent } from './LiveVideoTypeComponent'
...
...
PeopleDaily_Harmony/wdComponent/src/main/ets/components/view/LiveVideoTypeComponent.ets
View file @
dbc7a74
// 视频直播横划卡标签
@Component
export struct LiveVideoTypeComponent {
@State nType: number = 0
...
...
@@ -14,7 +15,7 @@ export struct LiveVideoTypeComponent {
top: 1,
bottom: 1,
})
Text(
LiveStateName(this.name)
)
Text(
this.name
)
.fontColor($r('app.color.white'))
.fontSize(this.nType == 0 ? $r('app.float.font_size_11') : $r('app.float.font_size_13'))
.align(Alignment.Center)
...
...
@@ -31,17 +32,3 @@ export struct LiveVideoTypeComponent {
}
function LiveStateName(name: string): string {
if (name === 'wait') {
return '待开播'
}else if (name === 'running') {
return '直播中'
}else if (name === 'end') {
return '已结束'
}else if (name === 'cancel') {
return '已取消'
}else if (name === 'paused') {
return '暂停'
}
return name
}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment