wangliang_wd

feat:回滚视频详情页全屏转屏逻辑

@@ -78,6 +78,7 @@ export struct DetailPlayShortVideoPage { @@ -78,6 +78,7 @@ export struct DetailPlayShortVideoPage {
78 * 页面转屏参数变化 78 * 页面转屏参数变化
79 */ 79 */
80 displayDirectionChange(){ 80 displayDirectionChange(){
  81 + ///增加定时器,配合转屏UI布局
81 let timer = setTimeout(() => { 82 let timer = setTimeout(() => {
82 this.isFullScreen = this.displayDirection === DisplayDirection.VERTICAL ?false:true 83 this.isFullScreen = this.displayDirection === DisplayDirection.VERTICAL ?false:true
83 clearTimeout(timer) 84 clearTimeout(timer)
@@ -403,10 +404,10 @@ export struct DetailPlayShortVideoPage { @@ -403,10 +404,10 @@ export struct DetailPlayShortVideoPage {
403 .height('100%') 404 .height('100%')
404 .width('100%') 405 .width('100%')
405 .onAreaChange(() => { 406 .onAreaChange(() => {
406 - let timer = setTimeout(() => { 407 + // let timer = setTimeout(() => {
407 this.calculatePlayerRect() 408 this.calculatePlayerRect()
408 - clearTimeout(timer)  
409 - }, this.displayDirection === DisplayDirection.VERTICAL ?200:0) 409 + // clearTimeout(timer)
  410 + // }, this.displayDirection === DisplayDirection.VERTICAL ?200:0)
410 }) 411 })
411 } 412 }
412 413