xugenyuan

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

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