zhenghy

禁止视频频道左右滑动

@@ -292,12 +292,15 @@ export struct DetailPlayShortVideoPage { @@ -292,12 +292,15 @@ export struct DetailPlayShortVideoPage {
292 playerCoverBuilder() { 292 playerCoverBuilder() {
293 // 问题:画面会闪一下 293 // 问题:画面会闪一下
294 Image(this.contentDetailData?.firstFrameImageUri) 294 Image(this.contentDetailData?.firstFrameImageUri)
295 - .width('100%')  
296 - .height(this.windowWidth / this.ratio + 'px')  
297 - .opacity(this.imageVisible ? 0.8 : 0)  
298 - .animation({  
299 - duration: 350, curve: Curve.EaseInOut  
300 - }) 295 + .width(this.playerWidth)
  296 + .height(this.playerHeight)// .opacity(this.imageVisible ? 0.7 : 0)
  297 + // .animation({
  298 + // // duration: 350,
  299 + // curve: Curve.EaseInOut,
  300 + // expectedFrameRateRange: { min: 30, max: 120, expected: 60 }
  301 + // })
  302 + .visibility(this.imageVisible ? Visibility.Visible : Visibility.None)
  303 +
301 } 304 }
302 305
303 @Builder 306 @Builder
@@ -131,14 +131,14 @@ export struct VideoChannelPage { @@ -131,14 +131,14 @@ export struct VideoChannelPage {
131 .onClick(() => { 131 .onClick(() => {
132 TrackingButton.searchClick(TrackConstants.PageName.Search, "VIDEOS") 132 TrackingButton.searchClick(TrackConstants.PageName.Search, "VIDEOS")
133 let params = { 'tabName': "VIDEOS" } as Record<string, string> 133 let params = { 'tabName': "VIDEOS" } as Record<string, string>
134 - WDRouterRule.jumpWithPage(WDRouterPage.searchPage,params) 134 + WDRouterRule.jumpWithPage(WDRouterPage.searchPage, params)
135 }) 135 })
136 .backgroundColor(Color.Transparent) 136 .backgroundColor(Color.Transparent)
137 137
138 } 138 }
139 .zIndex(20) 139 .zIndex(20)
140 .height($r('app.float.top_tab_bar_height_common')) 140 .height($r('app.float.top_tab_bar_height_common'))
141 - .margin({top:10}) 141 + .margin({ top: 10 })
142 .visibility(this.displayDirection === DisplayDirection.VERTICAL ? Visibility.Visible : Visibility.None) 142 .visibility(this.displayDirection === DisplayDirection.VERTICAL ? Visibility.Visible : Visibility.None)
143 143
144 } 144 }
@@ -170,6 +170,7 @@ export struct VideoChannelPage { @@ -170,6 +170,7 @@ export struct VideoChannelPage {
170 }, (item: TopNavDTO) => item.channelId + '') 170 }, (item: TopNavDTO) => item.channelId + '')
171 } 171 }
172 .indicator(false) 172 .indicator(false)
  173 + .disableSwipe(true)
173 .loop(false) 174 .loop(false)
174 .width('100%') 175 .width('100%')
175 .height('100%') 176 .height('100%')