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
zhenghy
2024-04-19 19:37:01 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ca058302cf40a13d808e692473b823679cdfe879
ca058302
1 parent
bc1074ef
直播评论滑动
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
sight_harmony/features/wdDetailPlayLive/src/main/ets/widgets/vertical/PlayerCommentComponent.ets
sight_harmony/features/wdDetailPlayLive/src/main/ets/widgets/vertical/PlayerCommentComponent.ets
View file @
ca05830
...
...
@@ -15,6 +15,7 @@ export struct PlayerCommentComponent {
@Consume displayDirection: DisplayDirection
@State private pageModel: PageModel = new PageModel()
@State liveChatList: Array<LiveRoomItemBean> = []
scroller: Scroller = new Scroller()
aboutToAppear(): void {
this.getLiveChatList()
...
...
@@ -44,6 +45,10 @@ export struct PlayerCommentComponent {
} else {
this.pageModel.hasMore = false;
}
setTimeout(() => {
this.scroller.scrollEdge(Edge.Bottom)
}, 500)
} else {
this.pageModel.viewType = ViewType.EMPTY;
}
...
...
@@ -55,7 +60,7 @@ export struct PlayerCommentComponent {
build() {
Column() {
List() {
List(
{ scroller: this.scroller }
) {
// 主持人
if (this.liveDetailsBean.oldNewsId) {
ChartItemCompereComponent()
...
...
Please
register
or
login
to post a comment