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
wuyanan
2024-10-14 15:25:49 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
603b16aa52d7bfda311c1530b72c2bb9c5de2dd6
603b16aa
1 parent
4e8c0cb2
fix |> 20660 直播详情大家聊中,下拉刷新评论列表后,没有展示最新评论
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
sight_harmony/features/wdDetailPlayLive/src/main/ets/widgets/details/TabChatComponent.ets
sight_harmony/features/wdDetailPlayLive/src/main/ets/widgets/details/TabChatComponent.ets
View file @
603b16a
...
...
@@ -146,7 +146,7 @@ export struct TabChatComponent {
(data) => {
this.pageModel.isLoading = false
if (resolve) {
if (this.pageModel.currentPage
=
= 1) {
if (this.pageModel.currentPage
!
= 1) {
resolve('已更新至最新')
} else {
resolve('')
...
...
@@ -158,7 +158,11 @@ export struct TabChatComponent {
Logger.debug(TAG, `${JSON.stringify(data)}`)
if (data.barrageResponses && data.barrageResponses.length > 0) {
this.pageModel.viewType = ViewType.LOADED;
this.liveChatList.push(...data.barrageResponses)
if (this.pageModel.currentPage === 1) {
this.liveChatList.push(...data.barrageResponses)
}else {
this.liveChatList.addItems(data.barrageResponses, 0)
}
if (this.pageModel.currentPage === 1) {
setTimeout(() => {
...
...
Please
register
or
login
to post a comment