王士厅

fix: 横屏视频,全屏播放后返回一级频道页,底部bar被底部导航条遮挡

@@ -2,7 +2,7 @@ import { ContentDetailDTO } from 'wdBean/Index' @@ -2,7 +2,7 @@ import { ContentDetailDTO } from 'wdBean/Index'
2 import { WDShare } from 'wdShare/Index' 2 import { WDShare } from 'wdShare/Index'
3 import { PlayerProgressFullScreenView } from './PlayerProgressFullScreenView' 3 import { PlayerProgressFullScreenView } from './PlayerProgressFullScreenView'
4 import { PlayerConstants, WDPlayerController } from 'wdPlayer/Index' 4 import { PlayerConstants, WDPlayerController } from 'wdPlayer/Index'
5 -import { DateTimeUtils, Logger, WindowModel } from 'wdKit/Index' 5 +import { DateTimeUtils, EmitterEventId, EmitterUtils, Logger, WindowModel } from 'wdKit/Index'
6 import { DisplayDirection } from 'wdConstant/Index' 6 import { DisplayDirection } from 'wdConstant/Index'
7 import { window } from '@kit.ArkUI' 7 import { window } from '@kit.ArkUI'
8 8
@@ -93,6 +93,7 @@ export struct PlayerFullScreenView { @@ -93,6 +93,7 @@ export struct PlayerFullScreenView {
93 WindowModel.shared.setPreferredOrientation(this.displayDirection == DisplayDirection.VERTICAL ? 93 WindowModel.shared.setPreferredOrientation(this.displayDirection == DisplayDirection.VERTICAL ?
94 window.Orientation.PORTRAIT : 94 window.Orientation.PORTRAIT :
95 window.Orientation.LANDSCAPE) 95 window.Orientation.LANDSCAPE)
  96 + EmitterUtils.sendEvent(EmitterEventId.FULL_SCREEN, 0)
96 }) 97 })
97 Text(this.getTitle()) 98 Text(this.getTitle())
98 .fontSize(18) 99 .fontSize(18)
@@ -74,10 +74,8 @@ export struct BottomNavigationComponent { @@ -74,10 +74,8 @@ export struct BottomNavigationComponent {
74 }) 74 })
75 EmitterUtils.receiveEvent(EmitterEventId.FULL_SCREEN, (str?: string) => { 75 EmitterUtils.receiveEvent(EmitterEventId.FULL_SCREEN, (str?: string) => {
76 Logger.debug(TAG, 'receiveEvent FULL_SCREEN: ' + str) 76 Logger.debug(TAG, 'receiveEvent FULL_SCREEN: ' + str)
77 - if (str) {  
78 - // 跳转指定频道场景,传参底导id、频道id  
79 - this.isLayoutFullScreen = str == '1' ? true : false  
80 - } 77 + // 跳转指定频道场景,传参底导id、频道id
  78 + this.isLayoutFullScreen = str == '1' ? true : false
81 }) 79 })
82 } 80 }
83 81
@@ -127,7 +125,11 @@ export struct BottomNavigationComponent { @@ -127,7 +125,11 @@ export struct BottomNavigationComponent {
127 // 备注:鸿蒙目前只有修改三线导航背景方法,对于全面屏导航条手机需要设置背景色并使其扩散到导航区域 125 // 备注:鸿蒙目前只有修改三线导航背景方法,对于全面屏导航条手机需要设置背景色并使其扩散到导航区域
128 // .backgroundColor(this.barBackgroundColor) 126 // .backgroundColor(this.barBackgroundColor)
129 .layoutWeight(1) 127 .layoutWeight(1)
130 - Blank().width('100%').height(this.bottomRectHeight1).backgroundColor(this.barBackgroundColor).visibility(this.isLayoutFullScreen?Visibility.None:Visibility.Visible) 128 + Blank()
  129 + .width('100%')
  130 + .height(this.bottomRectHeight1)
  131 + .backgroundColor(this.barBackgroundColor)
  132 + .visibility(this.isLayoutFullScreen ? Visibility.None : Visibility.Visible)
131 }.height('100%').width('100%') 133 }.height('100%').width('100%')
132 } 134 }
133 135