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
liyubing
2024-05-23 18:41:23 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c0a2ce38ce2b1f5375719ccb14d51904bee8816c
c0a2ce38
1 parent
775864a5
feat:进入直播频道,直播中,横滑卡,显示了参加人数,android不显示
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
11 additions
and
6 deletions
sight_harmony/features/wdComponent/src/main/ets/components/cardCommon/CardMediaInfo.ets
sight_harmony/features/wdComponent/src/main/ets/components/cardViewAdv/CardAdvVideoComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/compview/ZhCarouselLayout01.ets
sight_harmony/features/wdComponent/src/main/ets/components/view/LiveHorizontalCardComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/view/LiveHorizontalCardForOneComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/view/LiveHorizontalReservationComponent.ets
sight_harmony/features/wdComponent/src/main/ets/viewmodel/PageHelper.ets
sight_harmony/features/wdComponent/src/main/ets/components/cardCommon/CardMediaInfo.ets
View file @
c0a2ce3
...
...
@@ -12,13 +12,18 @@ import font from '@ohos.font';
*/
@Component
export struct CardMediaInfo {
@State livePeopleNum :boolean = true
@State contentDTO: ContentDTO = new ContentDTO() // 如果有duraion,代表点播,显示时长;如果不传或者传0,显示直播中
@State joinPeopleNum: number = 0;
// objectType 0:不跳转 1:点播,2:直播,3:活动,4:广告,5:专题,6:链接,7:榜单,8:图文,9:组图,10:H5新闻,11:频道,12:组件,13:音频,
// 14动态图文,15动态视频16问政;100人民号,101标签
aboutToAppear(): void {
this.getJoinPeopleNum();
if(this.livePeopleNum){
this.getJoinPeopleNum();
}
font.registerFont({
familyName: 'BebasNeue',
...
...
sight_harmony/features/wdComponent/src/main/ets/components/cardViewAdv/CardAdvVideoComponent.ets
View file @
c0a2ce3
...
...
@@ -49,7 +49,7 @@ export struct CardAdvVideoComponent {
.borderColor($r('app.color.color_0D000000'))
//播放状态+时长
CardMediaInfo({
contentDTO: this.contentDTO
contentDTO: this.contentDTO
, livePeopleNum:false,
})
}
.alignContent(Alignment.BottomEnd)
...
...
sight_harmony/features/wdComponent/src/main/ets/components/compview/ZhCarouselLayout01.ets
View file @
c0a2ce3
...
...
@@ -200,7 +200,7 @@ struct CarouselLayout01CardView {
Column() {
// 这里用于展示轮播图右上角信息,这里只对直播类型的展示
if (this.item.objectType === '2' || this.item.objectType === '4') {
CardMediaInfo({ contentDTO: this.item })
CardMediaInfo({ contentDTO: this.item
,livePeopleNum:false
})
.width(CommonConstants.FULL_PARENT)
}
Blank()
...
...
sight_harmony/features/wdComponent/src/main/ets/components/view/LiveHorizontalCardComponent.ets
View file @
c0a2ce3
...
...
@@ -81,6 +81,7 @@ export struct LiveHorizontalCardComponent {
.borderRadius(4)
.objectFit(ImageFit.Cover)
CardMediaInfo({
livePeopleNum:false,
contentDTO: item
})
}
...
...
sight_harmony/features/wdComponent/src/main/ets/components/view/LiveHorizontalCardForOneComponent.ets
View file @
c0a2ce3
...
...
@@ -15,7 +15,7 @@ export struct LiveHorizontalCardForOneComponent {
.borderRadius(4)
.objectFit(ImageFit.Cover)
CardMediaInfo({
contentDTO: this.contentDTO
contentDTO: this.contentDTO
, livePeopleNum:false,
})
}
...
...
sight_harmony/features/wdComponent/src/main/ets/components/view/LiveHorizontalReservationComponent.ets
View file @
c0a2ce3
...
...
@@ -57,7 +57,7 @@ export struct LiveHorizontalReservationComponent {
.borderRadius(4)
.objectFit(ImageFit.Cover)
CardMediaInfo({
contentDTO: item
contentDTO: item
, livePeopleNum:false,
})
}
...
...
sight_harmony/features/wdComponent/src/main/ets/viewmodel/PageHelper.ets
View file @
c0a2ce3
...
...
@@ -464,7 +464,6 @@ export class PageHelper {
// 批查直播观看人数
this.getLiveRoomDataInfo(compList)
//
...
...
Please
register
or
login
to post a comment