wangliang_wd

feat:优化视频转屏问题

@@ -60,6 +60,19 @@ export struct DetailPlayShortVideoPage { @@ -60,6 +60,19 @@ export struct DetailPlayShortVideoPage {
60 @Consume onlyWifiLoadVideo: boolean 60 @Consume onlyWifiLoadVideo: boolean
61 @Consume toastTextVisible: boolean 61 @Consume toastTextVisible: boolean
62 62
  63 +
  64 + @StorageProp('currentBreakpoint') @Watch("currentChanged")currentBreakpoint: string = 'sm';
  65 + @State isPad:boolean = this.currentBreakpoint == "md" || this.currentBreakpoint == "lg"?true:false
  66 +
  67 + currentChanged(){
  68 + if(this.currentBreakpoint == "md" || this.currentBreakpoint == "lg"){
  69 + //大屏幕 折叠屏 或者ipad
  70 + this.isPad = true
  71 + }else {
  72 + this.isPad = false
  73 + }
  74 + }
  75 +
63 /** 76 /**
64 * 页面显示重查用户关注、点赞等信息 77 * 页面显示重查用户关注、点赞等信息
65 */ 78 */
@@ -436,7 +449,7 @@ export struct DetailPlayShortVideoPage { @@ -436,7 +449,7 @@ export struct DetailPlayShortVideoPage {
436 449
437 // 横屏-全屏观看 450 // 横屏-全屏观看
438 // 点击查看详情 不展示 451 // 点击查看详情 不展示
439 - if (this.videoLandScape === 1 && !this.isOpenDetail && this.displayDirection === DisplayDirection.VERTICAL && !this.showCommentList) { 452 + if (this.videoLandScape === 1 && !this.isOpenDetail && this.displayDirection === DisplayDirection.VERTICAL && !this.showCommentList && !this.isPad) {
440 this.playerFullscreenBuilder() 453 this.playerFullscreenBuilder()
441 } 454 }
442 455