wangliang_wd

feat:优化视频tab刷新问题

... ... @@ -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,
... ...