王士厅

fix: 进入视频,点击评论,点击视频播放区域切换卡顿

@@ -36,7 +36,7 @@ export struct CommentListDialogView { @@ -36,7 +36,7 @@ export struct CommentListDialogView {
36 showClose: false, 36 showClose: false,
37 maskColor: "#50000000", 37 maskColor: "#50000000",
38 dragBar: false, 38 dragBar: false,
39 - onDisappear: () => { 39 + onWillDisappear: () => {
40 this.showCommentList = false 40 this.showCommentList = false
41 if (this.onClose) { this.onClose() } 41 if (this.onClose) { this.onClose() }
42 }, 42 },
@@ -304,7 +304,7 @@ export struct DetailPlayShortVideoPage { @@ -304,7 +304,7 @@ export struct DetailPlayShortVideoPage {
304 } 304 }
305 305
306 showCommentListChanged() { 306 showCommentListChanged() {
307 - // console.log('DetailVideoListPage showCommentListChanged this.showCommentList', this.showCommentList) 307 + console.log('DetailVideoListPage showCommentListChanged this.showCommentList', this.showCommentList)
308 if (this.showCommentList) { 308 if (this.showCommentList) {
309 this.playerWidth = px2vp(this.windowWidth) 309 this.playerWidth = px2vp(this.windowWidth)
310 // this.playerHeight = px2vp(this.windowWidth) / (16 / 9.0) 310 // this.playerHeight = px2vp(this.windowWidth) / (16 / 9.0)