Showing
2 changed files
with
13 additions
and
9 deletions
| @@ -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 |
| @@ -30,7 +30,6 @@ export struct VideoChannelPage { | @@ -30,7 +30,6 @@ export struct VideoChannelPage { | ||
| 30 | @State indicatorWidth: number = 0 | 30 | @State indicatorWidth: number = 0 |
| 31 | // 传递给page的自动刷新通知 | 31 | // 传递给page的自动刷新通知 |
| 32 | @State autoRefresh2Page: number = 0 | 32 | @State autoRefresh2Page: number = 0 |
| 33 | - | ||
| 34 | aboutToAppear(): void { | 33 | aboutToAppear(): void { |
| 35 | this.setBarBackgroundColor() | 34 | this.setBarBackgroundColor() |
| 36 | console.log(TAG, 'aboutToAppear') | 35 | console.log(TAG, 'aboutToAppear') |
| @@ -131,14 +130,14 @@ export struct VideoChannelPage { | @@ -131,14 +130,14 @@ export struct VideoChannelPage { | ||
| 131 | .onClick(() => { | 130 | .onClick(() => { |
| 132 | TrackingButton.searchClick(TrackConstants.PageName.Search, "VIDEOS") | 131 | TrackingButton.searchClick(TrackConstants.PageName.Search, "VIDEOS") |
| 133 | let params = { 'tabName': "VIDEOS" } as Record<string, string> | 132 | let params = { 'tabName': "VIDEOS" } as Record<string, string> |
| 134 | - WDRouterRule.jumpWithPage(WDRouterPage.searchPage,params) | 133 | + WDRouterRule.jumpWithPage(WDRouterPage.searchPage, params) |
| 135 | }) | 134 | }) |
| 136 | .backgroundColor(Color.Transparent) | 135 | .backgroundColor(Color.Transparent) |
| 137 | 136 | ||
| 138 | } | 137 | } |
| 139 | .zIndex(20) | 138 | .zIndex(20) |
| 140 | .height($r('app.float.top_tab_bar_height_common')) | 139 | .height($r('app.float.top_tab_bar_height_common')) |
| 141 | - .margin({top:10}) | 140 | + .margin({ top: 10 }) |
| 142 | .visibility(this.displayDirection === DisplayDirection.VERTICAL ? Visibility.Visible : Visibility.None) | 141 | .visibility(this.displayDirection === DisplayDirection.VERTICAL ? Visibility.Visible : Visibility.None) |
| 143 | 142 | ||
| 144 | } | 143 | } |
| @@ -170,10 +169,12 @@ export struct VideoChannelPage { | @@ -170,10 +169,12 @@ export struct VideoChannelPage { | ||
| 170 | }, (item: TopNavDTO) => item.channelId + '') | 169 | }, (item: TopNavDTO) => item.channelId + '') |
| 171 | } | 170 | } |
| 172 | .indicator(false) | 171 | .indicator(false) |
| 172 | + .disableSwipe(true) | ||
| 173 | .loop(false) | 173 | .loop(false) |
| 174 | .width('100%') | 174 | .width('100%') |
| 175 | .height('100%') | 175 | .height('100%') |
| 176 | .cachedCount(-1) | 176 | .cachedCount(-1) |
| 177 | + .disableSwipe(this.displayDirection === DisplayDirection.VERTICAL ? false : true) | ||
| 177 | .displayCount(1, true) | 178 | .displayCount(1, true) |
| 178 | .alignSelf(ItemAlign.Start) | 179 | .alignSelf(ItemAlign.Start) |
| 179 | .effectMode(EdgeEffect.None) | 180 | .effectMode(EdgeEffect.None) |
-
Please register or login to post a comment