Showing
3 changed files
with
20 additions
and
17 deletions
| @@ -78,7 +78,7 @@ export struct DetailPlayVLivePage { | @@ -78,7 +78,7 @@ export struct DetailPlayVLivePage { | ||
| 78 | LiveEmptyComponent({ | 78 | LiveEmptyComponent({ |
| 79 | emptyType: WDLiveViewDefaultType.WDViewDefaultType_NoLiveSuspend | 79 | emptyType: WDLiveViewDefaultType.WDViewDefaultType_NoLiveSuspend |
| 80 | }) | 80 | }) |
| 81 | - .height('30%').margin({top:this.topSafeHeight }) | 81 | + .height('40%').margin({top:this.topSafeHeight }) |
| 82 | } else { | 82 | } else { |
| 83 | 83 | ||
| 84 | if (this.liveDetailPageLogic.showPad) { | 84 | if (this.liveDetailPageLogic.showPad) { |
| @@ -92,7 +92,7 @@ export struct DetailPlayVLivePage { | @@ -92,7 +92,7 @@ export struct DetailPlayVLivePage { | ||
| 92 | LiveEmptyComponent({ | 92 | LiveEmptyComponent({ |
| 93 | emptyType: WDLiveViewDefaultType.WDViewDefaultType_NoLiveSuspend | 93 | emptyType: WDLiveViewDefaultType.WDViewDefaultType_NoLiveSuspend |
| 94 | }) | 94 | }) |
| 95 | - .height('30%').margin({top:this.topSafeHeight }) | 95 | + .height('40%').margin({top:this.topSafeHeight }) |
| 96 | } | 96 | } |
| 97 | 97 | ||
| 98 | 98 |
| @@ -14,6 +14,7 @@ import { EmitterEventId, EmitterUtils, Logger, SPHelper, WindowModel } from 'wdK | @@ -14,6 +14,7 @@ import { EmitterEventId, EmitterUtils, Logger, SPHelper, WindowModel } from 'wdK | ||
| 14 | import { TrackConstants, TrackingContent, TrackParamConvert } from 'wdTracking/Index' | 14 | import { TrackConstants, TrackingContent, TrackParamConvert } from 'wdTracking/Index' |
| 15 | 15 | ||
| 16 | const TAG = "PlayerCommentComponent" | 16 | const TAG = "PlayerCommentComponent" |
| 17 | + | ||
| 17 | /** | 18 | /** |
| 18 | * 沉浸式直播--- 聊天区域 | 19 | * 沉浸式直播--- 聊天区域 |
| 19 | */ | 20 | */ |
| @@ -52,7 +53,7 @@ export struct PlayerCommentComponent { | @@ -52,7 +53,7 @@ export struct PlayerCommentComponent { | ||
| 52 | this.liveViewModel.getLiveCommentList( | 53 | this.liveViewModel.getLiveCommentList( |
| 53 | 1, | 54 | 1, |
| 54 | this.contentDetailData?.liveInfo?.mlive?.mliveId, | 55 | this.contentDetailData?.liveInfo?.mlive?.mliveId, |
| 55 | - this.contentDetailData?.newsId+'', | 56 | + this.contentDetailData?.newsId + '', |
| 56 | 20,) | 57 | 20,) |
| 57 | .then( | 58 | .then( |
| 58 | (data) => { | 59 | (data) => { |
| @@ -82,21 +83,22 @@ export struct PlayerCommentComponent { | @@ -82,21 +83,22 @@ export struct PlayerCommentComponent { | ||
| 82 | 83 | ||
| 83 | build() { | 84 | build() { |
| 84 | Column() { | 85 | Column() { |
| 85 | - List({ scroller: this.scroller }) { | ||
| 86 | - // 主持人 | ||
| 87 | - if (this.contentDetailData.oldNewsId) { | ||
| 88 | - ChartItemCompereComponent() | ||
| 89 | - } | ||
| 90 | - ForEach(this.liveChatList, (item: LiveRoomItemBean) => { | ||
| 91 | - ListItem() { | ||
| 92 | - ChatItemComponent({ item: item }) | 86 | + Stack({ alignContent: Alignment.BottomStart }) { |
| 87 | + List({ scroller: this.scroller }) { | ||
| 88 | + // 主持人 | ||
| 89 | + if (this.contentDetailData.oldNewsId) { | ||
| 90 | + ChartItemCompereComponent() | ||
| 93 | } | 91 | } |
| 94 | - }) | ||
| 95 | - } | ||
| 96 | - .height(280) | ||
| 97 | - .width('80%') | ||
| 98 | - .scrollBar(BarState.Off) | ||
| 99 | - .margin({ bottom: 20 }) | 92 | + ForEach(this.liveChatList, (item: LiveRoomItemBean) => { |
| 93 | + ListItem() { | ||
| 94 | + ChatItemComponent({ item: item }) | ||
| 95 | + } | ||
| 96 | + }) | ||
| 97 | + } | ||
| 98 | + .width('80%') | ||
| 99 | + .scrollBar(BarState.Off) | ||
| 100 | + | ||
| 101 | + }.height(280) | ||
| 100 | 102 | ||
| 101 | // 收藏、分享、点赞是否需要根据字段显隐 | 103 | // 收藏、分享、点赞是否需要根据字段显隐 |
| 102 | LiveOperRowListView({ | 104 | LiveOperRowListView({ |
-
Please register or login to post a comment