zhenghy

评论输入框背景色

@@ -366,8 +366,8 @@ export struct MultiPictureDetailPageComponent { @@ -366,8 +366,8 @@ export struct MultiPictureDetailPageComponent {
366 publishCommentModel: this.publishCommentModel, 366 publishCommentModel: this.publishCommentModel,
367 operationButtonList: this.operationButtonList, 367 operationButtonList: this.operationButtonList,
368 styleType: 2, 368 styleType: 2,
369 - componentType:5,  
370 - MultiPictureComponentType:1 369 + componentType: 5,
  370 + pageComponentType: 3
371 }) 371 })
372 } 372 }
373 .transition(TransitionEffect.OPACITY.animation({ duration: this.duration, curve: Curve.Ease }).combine( 373 .transition(TransitionEffect.OPACITY.animation({ duration: this.duration, curve: Curve.Ease }).combine(
@@ -12,7 +12,6 @@ export struct CommentTabComponent { @@ -12,7 +12,6 @@ export struct CommentTabComponent {
12 @ObjectLink publishCommentModel: publishCommentModel 12 @ObjectLink publishCommentModel: publishCommentModel
13 @Prop contentDetail: ContentDetailDTO 13 @Prop contentDetail: ContentDetailDTO
14 @Prop pageComponentType: number = -1 //1:视频详情页 2:竖屏直播页 14 @Prop pageComponentType: number = -1 //1:视频详情页 2:竖屏直播页
15 - @Prop MultiPictureComponentType?: number = -1 // 1:图集详情页  
16 /*展示类型*/ 15 /*展示类型*/
17 @State type: number = 1 16 @State type: number = 1
18 @State placeHolder: string = '说两句...' 17 @State placeHolder: string = '说两句...'
@@ -44,6 +43,17 @@ export struct CommentTabComponent { @@ -44,6 +43,17 @@ export struct CommentTabComponent {
44 43
45 } 44 }
46 45
  46 + getCommentInputBackImg() {
  47 + if (this.pageComponentType === 2) {
  48 + return $r('app.media.comment_img_input_black')
  49 + } else if (this.pageComponentType === 3) {
  50 + return $r('app.media.comment_img_input_hui1')
  51 + } else {
  52 + return $r('app.media.comment_img_input_hui')
  53 + }
  54 +
  55 + }
  56 +
47 build() { 57 build() {
48 Row() { 58 Row() {
49 Stack({ alignContent: Alignment.Start }) { 59 Stack({ alignContent: Alignment.Start }) {
@@ -68,8 +78,7 @@ export struct CommentTabComponent { @@ -68,8 +78,7 @@ export struct CommentTabComponent {
68 }) 78 })
69 .id("RowBg") 79 .id("RowBg")
70 } else { 80 } else {
71 - Image(this.pageComponentType === 2 || this.MultiPictureComponentType === 1 ? $r('app.media.comment_img_input_black') :  
72 - $r('app.media.comment_img_input_hui')) 81 + Image(this.getCommentInputBackImg())
73 .objectFit(ImageFit.Fill) 82 .objectFit(ImageFit.Fill)
74 .resizable({ 83 .resizable({
75 slice: { 84 slice: {
@@ -62,8 +62,7 @@ export struct OperRowListView { @@ -62,8 +62,7 @@ export struct OperRowListView {
62 * 7:图集详情页 62 * 7:图集详情页
63 */ 63 */
64 @Prop componentType: number = 1 //1: 底部栏目样式 2: 新闻页中间位置样式 3:动态Tab内容下的互动入口 64 @Prop componentType: number = 1 //1: 底部栏目样式 2: 新闻页中间位置样式 3:动态Tab内容下的互动入口
65 - @Prop pageComponentType?: number = -1 //1:视频详情页 2竖屏直播页  
66 - @Prop MultiPictureComponentType?: number = -1 // 1:图集详情页 65 + @Prop pageComponentType?: number = -1 //1:视频详情页 2:竖屏直播页 3:图集
67 @State likesStyle: number = this.contentDetailData.likesStyle // 赞样式 1红心(点赞) 2大拇指(祈福) 3蜡烛(默哀) 4置空 66 @State likesStyle: number = this.contentDetailData.likesStyle // 赞样式 1红心(点赞) 2大拇指(祈福) 3蜡烛(默哀) 4置空
68 @Prop operationButtonList?: string[] = ['comment', 'collect', 'share'] // 组件展示条件 67 @Prop operationButtonList?: string[] = ['comment', 'collect', 'share'] // 组件展示条件
69 @State needLike: boolean = true 68 @State needLike: boolean = true
@@ -194,7 +193,6 @@ export struct OperRowListView { @@ -194,7 +193,6 @@ export struct OperRowListView {
194 contentDetail: this.contentDetailData, 193 contentDetail: this.contentDetailData,
195 onCommentFocus: this.onCommentFocus, 194 onCommentFocus: this.onCommentFocus,
196 pageComponentType: this.pageComponentType, 195 pageComponentType: this.pageComponentType,
197 - MultiPictureComponentType: this.MultiPictureComponentType  
198 }) 196 })
199 } 197 }
200 } 198 }