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
zhenghy
2024-05-30 10:30:14 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
56889a3d917a70baf9ea7fa75fd411e225795667
56889a3d
1 parent
d880f7c1
禁止视频频道左右滑动
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/pages/DetailPlayShortVideoPage.ets
sight_harmony/products/phone/src/main/ets/pages/view/VideoChannelPage.ets
sight_harmony/features/wdDetailPlayShortVideo/src/main/ets/pages/DetailPlayShortVideoPage.ets
View file @
56889a3
...
...
@@ -292,12 +292,15 @@ export struct DetailPlayShortVideoPage {
playerCoverBuilder() {
// 问题:画面会闪一下
Image(this.contentDetailData?.firstFrameImageUri)
.width('100%')
.height(this.windowWidth / this.ratio + 'px')
.opacity(this.imageVisible ? 0.8 : 0)
.animation({
duration: 350, curve: Curve.EaseInOut
})
.width(this.playerWidth)
.height(this.playerHeight)// .opacity(this.imageVisible ? 0.7 : 0)
// .animation({
// // duration: 350,
// curve: Curve.EaseInOut,
// expectedFrameRateRange: { min: 30, max: 120, expected: 60 }
// })
.visibility(this.imageVisible ? Visibility.Visible : Visibility.None)
}
@Builder
...
...
sight_harmony/products/phone/src/main/ets/pages/view/VideoChannelPage.ets
View file @
56889a3
...
...
@@ -131,14 +131,14 @@ export struct VideoChannelPage {
.onClick(() => {
TrackingButton.searchClick(TrackConstants.PageName.Search, "VIDEOS")
let params = { 'tabName': "VIDEOS" } as Record<string, string>
WDRouterRule.jumpWithPage(WDRouterPage.searchPage,params)
WDRouterRule.jumpWithPage(WDRouterPage.searchPage,
params)
})
.backgroundColor(Color.Transparent)
}
.zIndex(20)
.height($r('app.float.top_tab_bar_height_common'))
.margin({
top:10
})
.margin({
top: 10
})
.visibility(this.displayDirection === DisplayDirection.VERTICAL ? Visibility.Visible : Visibility.None)
}
...
...
@@ -170,6 +170,7 @@ export struct VideoChannelPage {
}, (item: TopNavDTO) => item.channelId + '')
}
.indicator(false)
.disableSwipe(true)
.loop(false)
.width('100%')
.height('100%')
...
...
Please
register
or
login
to post a comment