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
wangliang_wd
2024-10-15 17:34:25 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
fdc2eb828f1f462d83bb3de8f4b5aed1717569cc
fdc2eb82
1 parent
1436e6a9
feat:优化视频tab刷新问题
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/pages/VideoChannelDetail.ets
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/pages/VideoChannelDetail.ets
View file @
fdc2eb8
...
...
@@ -35,7 +35,7 @@ export struct VideoChannelDetail {
@Provide private pageId: string = '' //页面id
@Provide private pageName: string = ''
private pageNum: number = 1
private pageSize: number =
5
private pageSize: number =
10
private loadStrategy: string = 'first_load' // 首次加载: first_load, 上推刷新: push_up, 下拉刷新: pull_down
private refreshTime: number = new Date().getTime() // 第一页刷新时间,用于频道分页排序时过滤,查询时携带【首刷、下拉取当前最新时间;其他的都使用首刷的时间】
private channelId: string = '' // 频道id
...
...
@@ -85,6 +85,9 @@ export struct VideoChannelDetail {
this.totalCount = 0
this.isMouted = false
this.isRefreshList = true
this.loadStrategy = 'first_load'
this.refreshTime = new Date().getTime()
this.dataContentDetail.clearAllData()
this.getRecCompInfo()
}
...
...
@@ -224,7 +227,7 @@ export struct VideoChannelDetail {
}
this.isRequesting = true
const params: getRecCompInfoParams = {
groupId: this.groupId,
groupId: this.groupId
.length>2?this.groupId:this.pageId
,
pageId: this.pageId,
channelId: this.channelId,
loadStrategy: this.loadStrategy,
...
...
Please
register
or
login
to post a comment