wangliang_wd

feat:优化视频详情页滑动数据加载

@@ -84,13 +84,11 @@ export struct DetailPlayLivePage { @@ -84,13 +84,11 @@ export struct DetailPlayLivePage {
84 84
85 EmitterUtils.receiveEvent(EmitterEventId.live_FULL_SCREEN, (str?: string) => { 85 EmitterUtils.receiveEvent(EmitterEventId.live_FULL_SCREEN, (str?: string) => {
86 Logger.debug(TAG, 'receiveEvent FULL_SCREEN: ' + str) 86 Logger.debug(TAG, 'receiveEvent FULL_SCREEN: ' + str)
87 - // 跳转指定频道场景,传参底导id、频道id  
88 this.isPORTRAIT = str == '1' ? false : true 87 this.isPORTRAIT = str == '1' ? false : true
89 }) 88 })
90 89
91 EmitterUtils.receiveEvent(EmitterEventId.live_half_SCREEN, (str?: string) => { 90 EmitterUtils.receiveEvent(EmitterEventId.live_half_SCREEN, (str?: string) => {
92 - Logger.debug(TAG, 'receiveEvent FULL_SCREEN: ' + str)  
93 - // 跳转指定频道场景,传参底导id、频道id 91 + Logger.debug(TAG, 'receiveEvent half_SCREEN: ' + str)
94 this.half_SCREEN = str == '1' ? false : true 92 this.half_SCREEN = str == '1' ? false : true
95 }) 93 })
96 this.getLiveDetails() 94 this.getLiveDetails()
@@ -477,7 +477,7 @@ export struct DetailVideoListPage { @@ -477,7 +477,7 @@ export struct DetailVideoListPage {
477 this.currentIndex = index 477 this.currentIndex = index
478 // if (this.currentIndex === this.data.length - 1) { 478 // if (this.currentIndex === this.data.length - 1) {
479 // 倒数第二个开始请求下一页数据解决视频上滑卡顿 479 // 倒数第二个开始请求下一页数据解决视频上滑卡顿
480 - if (this.currentIndex === this.data.length - 2 && this.data.length > 10) { 480 + if (this.currentIndex === this.data.length - 2) {
481 // TODO:下拉刷新“努力加载中” 481 // TODO:下拉刷新“努力加载中”
482 if (!this.peopleShipHomeCreatorId && !this.isMycollection) { 482 if (!this.peopleShipHomeCreatorId && !this.isMycollection) {
483 this.queryVideoList() 483 this.queryVideoList()