Showing
3 changed files
with
13 additions
and
0 deletions
| @@ -98,6 +98,7 @@ export struct BottomNavigationComponent { | @@ -98,6 +98,7 @@ export struct BottomNavigationComponent { | ||
| 98 | }); | 98 | }); |
| 99 | 99 | ||
| 100 | } | 100 | } |
| 101 | + .zIndex(10) | ||
| 101 | .scrollable(false) | 102 | .scrollable(false) |
| 102 | .animationDuration(0) | 103 | .animationDuration(0) |
| 103 | .barHeight($r('app.float.bottom_navigation_barHeight')) | 104 | .barHeight($r('app.float.bottom_navigation_barHeight')) |
| @@ -132,6 +133,7 @@ export struct BottomNavigationComponent { | @@ -132,6 +133,7 @@ export struct BottomNavigationComponent { | ||
| 132 | .fontColor(this.currentNavIndex === index ? navItem.nameCColor : navItem.nameColor) | 133 | .fontColor(this.currentNavIndex === index ? navItem.nameCColor : navItem.nameColor) |
| 133 | .opacity(this.currentNavIndex === index ? this.FULL_OPACITY : this.SIXTY_OPACITY) | 134 | .opacity(this.currentNavIndex === index ? this.FULL_OPACITY : this.SIXTY_OPACITY) |
| 134 | } | 135 | } |
| 136 | + .zIndex(10) | ||
| 135 | .height($r('app.float.bottom_navigation_barHeight')) | 137 | .height($r('app.float.bottom_navigation_barHeight')) |
| 136 | .hoverEffect(HoverEffect.Highlight) | 138 | .hoverEffect(HoverEffect.Highlight) |
| 137 | .onClick(() => { | 139 | .onClick(() => { |
| @@ -17,6 +17,7 @@ import { PlayerBottomView } from '../view/PlayerBottomView'; | @@ -17,6 +17,7 @@ import { PlayerBottomView } from '../view/PlayerBottomView'; | ||
| 17 | import { PlayerRightView } from '../view/PlayerRightView'; | 17 | import { PlayerRightView } from '../view/PlayerRightView'; |
| 18 | import { DisplayDirection } from 'wdConstant/Index'; | 18 | import { DisplayDirection } from 'wdConstant/Index'; |
| 19 | import { CommentDialogView } from '../view/CommentDialogView'; | 19 | import { CommentDialogView } from '../view/CommentDialogView'; |
| 20 | +import { window } from '@kit.ArkUI'; | ||
| 20 | 21 | ||
| 21 | const TAG = 'DetailPlayShortVideoPage'; | 22 | const TAG = 'DetailPlayShortVideoPage'; |
| 22 | 23 | ||
| @@ -294,6 +295,15 @@ export struct DetailPlayShortVideoPage { | @@ -294,6 +295,15 @@ export struct DetailPlayShortVideoPage { | ||
| 294 | .margin({ top: 280 }) | 295 | .margin({ top: 280 }) |
| 295 | .onClick(() => { | 296 | .onClick(() => { |
| 296 | // 全屏方案待定 | 297 | // 全屏方案待定 |
| 298 | + // this.displayDirection = DisplayDirection.VERTICAL | ||
| 299 | + this.displayDirection = this.displayDirection == DisplayDirection.VERTICAL ? | ||
| 300 | + DisplayDirection.VIDEO_HORIZONTAL : | ||
| 301 | + DisplayDirection.VERTICAL | ||
| 302 | + WindowModel.shared.setPreferredOrientation(this.displayDirection == DisplayDirection.VERTICAL ? | ||
| 303 | + window.Orientation.PORTRAIT : | ||
| 304 | + window.Orientation.LANDSCAPE_INVERTED) | ||
| 305 | + | ||
| 306 | + | ||
| 297 | }) | 307 | }) |
| 298 | 308 | ||
| 299 | } | 309 | } |
| @@ -96,6 +96,7 @@ export struct WDPlayerRenderView { | @@ -96,6 +96,7 @@ export struct WDPlayerRenderView { | ||
| 96 | this.onLoad(event) | 96 | this.onLoad(event) |
| 97 | } | 97 | } |
| 98 | }) | 98 | }) |
| 99 | + .zIndex(1000) | ||
| 99 | .width(this.selfSize.width) | 100 | .width(this.selfSize.width) |
| 100 | .height(this.selfSize.height) | 101 | .height(this.selfSize.height) |
| 101 | } | 102 | } |
-
Please register or login to post a comment