Showing
1 changed file
with
5 additions
and
2 deletions
| @@ -35,7 +35,7 @@ export struct VideoChannelDetail { | @@ -35,7 +35,7 @@ export struct VideoChannelDetail { | ||
| 35 | @Provide private pageId: string = '' //页面id | 35 | @Provide private pageId: string = '' //页面id |
| 36 | @Provide private pageName: string = '' | 36 | @Provide private pageName: string = '' |
| 37 | private pageNum: number = 1 | 37 | private pageNum: number = 1 |
| 38 | - private pageSize: number = 5 | 38 | + private pageSize: number = 10 |
| 39 | private loadStrategy: string = 'first_load' // 首次加载: first_load, 上推刷新: push_up, 下拉刷新: pull_down | 39 | private loadStrategy: string = 'first_load' // 首次加载: first_load, 上推刷新: push_up, 下拉刷新: pull_down |
| 40 | private refreshTime: number = new Date().getTime() // 第一页刷新时间,用于频道分页排序时过滤,查询时携带【首刷、下拉取当前最新时间;其他的都使用首刷的时间】 | 40 | private refreshTime: number = new Date().getTime() // 第一页刷新时间,用于频道分页排序时过滤,查询时携带【首刷、下拉取当前最新时间;其他的都使用首刷的时间】 |
| 41 | private channelId: string = '' // 频道id | 41 | private channelId: string = '' // 频道id |
| @@ -85,6 +85,9 @@ export struct VideoChannelDetail { | @@ -85,6 +85,9 @@ export struct VideoChannelDetail { | ||
| 85 | this.totalCount = 0 | 85 | this.totalCount = 0 |
| 86 | this.isMouted = false | 86 | this.isMouted = false |
| 87 | this.isRefreshList = true | 87 | this.isRefreshList = true |
| 88 | + this.loadStrategy = 'first_load' | ||
| 89 | + this.refreshTime = new Date().getTime() | ||
| 90 | + this.dataContentDetail.clearAllData() | ||
| 88 | this.getRecCompInfo() | 91 | this.getRecCompInfo() |
| 89 | } | 92 | } |
| 90 | 93 | ||
| @@ -224,7 +227,7 @@ export struct VideoChannelDetail { | @@ -224,7 +227,7 @@ export struct VideoChannelDetail { | ||
| 224 | } | 227 | } |
| 225 | this.isRequesting = true | 228 | this.isRequesting = true |
| 226 | const params: getRecCompInfoParams = { | 229 | const params: getRecCompInfoParams = { |
| 227 | - groupId: this.groupId, | 230 | + groupId: this.groupId.length>2?this.groupId:this.pageId, |
| 228 | pageId: this.pageId, | 231 | pageId: this.pageId, |
| 229 | channelId: this.channelId, | 232 | channelId: this.channelId, |
| 230 | loadStrategy: this.loadStrategy, | 233 | loadStrategy: this.loadStrategy, |
-
Please register or login to post a comment