Showing
1 changed file
with
2 additions
and
2 deletions
| @@ -251,11 +251,11 @@ export struct DetailPlayShortVideoPage { | @@ -251,11 +251,11 @@ export struct DetailPlayShortVideoPage { | ||
| 251 | // 视频宽高比屏幕大,则宽度撑满 | 251 | // 视频宽高比屏幕大,则宽度撑满 |
| 252 | if (this.ratio > width / height) { | 252 | if (this.ratio > width / height) { |
| 253 | this.playerWidth = '100%' | 253 | this.playerWidth = '100%' |
| 254 | - this.playerHeight = width / this.ratio | 254 | + this.playerHeight = px2vp(width / this.ratio) |
| 255 | } else { | 255 | } else { |
| 256 | // 否则高度撑满 | 256 | // 否则高度撑满 |
| 257 | this.playerHeight = '100%' | 257 | this.playerHeight = '100%' |
| 258 | - this.playerWidth = height * this.ratio | 258 | + this.playerWidth = px2vp(height * this.ratio) |
| 259 | } | 259 | } |
| 260 | console.log('calculatePlayerRect=====', width, height) | 260 | console.log('calculatePlayerRect=====', width, height) |
| 261 | 261 |
-
Please register or login to post a comment