zhenghy

修改视频评论

@@ -107,6 +107,18 @@ export struct DetailVideoListPage { @@ -107,6 +107,18 @@ export struct DetailVideoListPage {
107 } 107 }
108 } 108 }
109 109
  110 + pageTransition() {
  111 + // 为目标页面时,进入:从右边侧滑入,退出:是右侧划出;跳转别的页面:左侧划出,返回:左侧划入。
  112 + PageTransitionEnter({ type: RouteType.Push, duration: 300 })
  113 + .slide(SlideEffect.Right)
  114 + PageTransitionEnter({ type: RouteType.Pop, duration: 300 })
  115 + .slide(SlideEffect.Left)
  116 + PageTransitionExit({ type: RouteType.Push, duration: 300 })
  117 + .slide(SlideEffect.Left)
  118 + PageTransitionExit({ type: RouteType.Pop, duration: 300 })
  119 + .slide(SlideEffect.Right)
  120 + }
  121 +
110 async getContentDetail(contentId: string, relId: string, relType: string) { 122 async getContentDetail(contentId: string, relId: string, relType: string) {
111 await ContentDetailRequest.getContentDetail({ 123 await ContentDetailRequest.getContentDetail({
112 contentId: contentId, 124 contentId: contentId,
@@ -155,6 +155,18 @@ export struct VideoChannelDetail { @@ -155,6 +155,18 @@ export struct VideoChannelDetail {
155 } 155 }
156 } 156 }
157 157
  158 + pageTransition() {
  159 + // 为目标页面时,进入:从右边侧滑入,退出:是右侧划出;跳转别的页面:左侧划出,返回:左侧划入。
  160 + PageTransitionEnter({ type: RouteType.Push, duration: 300 })
  161 + .slide(SlideEffect.Right)
  162 + PageTransitionEnter({ type: RouteType.Pop, duration: 300 })
  163 + .slide(SlideEffect.Left)
  164 + PageTransitionExit({ type: RouteType.Push, duration: 300 })
  165 + .slide(SlideEffect.Left)
  166 + PageTransitionExit({ type: RouteType.Pop, duration: 300 })
  167 + .slide(SlideEffect.Right)
  168 + }
  169 +
158 /** 170 /**
159 * 根据视频频道传参查询视频楼层信息 171 * 根据视频频道传参查询视频楼层信息
160 */ 172 */
@@ -74,22 +74,20 @@ export struct DetailDialog { @@ -74,22 +74,20 @@ export struct DetailDialog {
74 74
75 build() { 75 build() {
76 Column() { 76 Column() {
77 - Scroll() {  
78 - CommentComponent({  
79 - publishCommentModel: this.publishCommentModel,  
80 - showCloseIcon: true,  
81 - onCloseClick: () => {  
82 - console.log('onCloseClick')  
83 - this.showCommentList = false  
84 - this.controller.close()  
85 - // setTimeout(() => {  
86 - //  
87 - // }, 1000) 77 + CommentComponent({
  78 + publishCommentModel: this.publishCommentModel,
  79 + showCloseIcon: true,
  80 + fixedHeightMode: true,
  81 + onCloseClick: () => {
  82 + console.log('onCloseClick')
  83 + this.showCommentList = false
  84 + this.controller.close()
  85 + // setTimeout(() => {
  86 + //
  87 + // }, 1000)
88 88
89 - }  
90 - }).height('100%')  
91 - }  
92 - .layoutWeight(1) 89 + }
  90 + }).layoutWeight(1)
93 91
94 OperRowListView({ 92 OperRowListView({
95 componentType: 1, 93 componentType: 1,