xugenyuan

fix |> 横屏视频切换横屏后不能展示全屏区域的视频

Signed-off-by: xugenyuan <xugenyuan@wondertek.com.cn>
... ... @@ -301,11 +301,11 @@ export struct DetailPlayShortVideoPage {
// 视频宽高比屏幕大,则宽度撑满
//console.log(`cj2024 ratio = ${this.ratio} width / height = ${width / height}`)
if (this.ratio > width / height) {
this.playerWidth = '100%'
this.playerWidth = px2vp(width)
this.playerHeight = px2vp(width / this.ratio)
} else {
// 否则高度撑满
this.playerHeight = '100%'
this.playerHeight = px2vp(height)
this.playerWidth = px2vp(height * this.ratio)
}
//console.log('cj2024 calculatePlayerRect=====', width, height,px2vp(this.windowHeight),this.playerHeight)
... ...