wangliang_wd

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

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