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-11-14 15:36:57 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0cfdaff33b5eac60e0b2aa262810c423af615f21
0cfdaff3
1 parent
04e2cc55
feat:优化视频详情页滑动数据加载
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
sight_harmony/features/wdDetailPlayLive/src/main/ets/pages/DetailPlayLivePage.ets
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/pages/DetailVideoListPage.ets
sight_harmony/features/wdDetailPlayLive/src/main/ets/pages/DetailPlayLivePage.ets
View file @
0cfdaff
...
...
@@ -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()
...
...
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/pages/DetailVideoListPage.ets
View file @
0cfdaff
...
...
@@ -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()
...
...
Please
register
or
login
to post a comment