Showing
2 changed files
with
12 additions
and
2 deletions
| @@ -99,6 +99,7 @@ export struct CommentTabComponent { | @@ -99,6 +99,7 @@ export struct CommentTabComponent { | ||
| 99 | bottom: { anchor: "__container__", align: VerticalAlign.Bottom }, | 99 | bottom: { anchor: "__container__", align: VerticalAlign.Bottom }, |
| 100 | }) | 100 | }) |
| 101 | .id("Image") | 101 | .id("Image") |
| 102 | + .visibility(this.contentDetail.appstyle !== 9 ? Visibility.Visible : Visibility.Hidden) | ||
| 102 | } | 103 | } |
| 103 | Text(this.placeHolder) | 104 | Text(this.placeHolder) |
| 104 | .fontSize(12) | 105 | .fontSize(12) |
| @@ -110,6 +111,7 @@ export struct CommentTabComponent { | @@ -110,6 +111,7 @@ export struct CommentTabComponent { | ||
| 110 | bottom: { anchor: "__container__", align: VerticalAlign.Bottom }, | 111 | bottom: { anchor: "__container__", align: VerticalAlign.Bottom }, |
| 111 | }) | 112 | }) |
| 112 | .id("Text") | 113 | .id("Text") |
| 114 | + .visibility(this.contentDetail.appstyle !== 9 ? Visibility.Visible : Visibility.Hidden) | ||
| 113 | } | 115 | } |
| 114 | } | 116 | } |
| 115 | } | 117 | } |
| @@ -134,6 +136,7 @@ export struct CommentIconComponent { | @@ -134,6 +136,7 @@ export struct CommentIconComponent { | ||
| 134 | @ObjectLink publishCommentModel: publishCommentModel | 136 | @ObjectLink publishCommentModel: publishCommentModel |
| 135 | /*展示类型*/ | 137 | /*展示类型*/ |
| 136 | @State type: number = 1 | 138 | @State type: number = 1 |
| 139 | + @Prop contentDetail: ContentDetailDTO | ||
| 137 | styleType: number = 1 //1: 白色背景(图文底部栏) 2: 黑色背景(图集底部栏) | 140 | styleType: number = 1 //1: 白色背景(图文底部栏) 2: 黑色背景(图集底部栏) |
| 138 | // aboutToAppear(): void { | 141 | // aboutToAppear(): void { |
| 139 | // setTimeout(() => { | 142 | // setTimeout(() => { |
| @@ -206,7 +209,10 @@ export struct CommentIconComponent { | @@ -206,7 +209,10 @@ export struct CommentIconComponent { | ||
| 206 | 209 | ||
| 207 | } | 210 | } |
| 208 | } | 211 | } |
| 209 | - }.width(24).height(24) | 212 | + } |
| 213 | + .width(24) | ||
| 214 | + .height(24) | ||
| 215 | + .visibility(this.contentDetail.appstyle !== 9 ? Visibility.Visible : Visibility.Hidden) | ||
| 210 | 216 | ||
| 211 | // .backgroundColor(Color.Blue) | 217 | // .backgroundColor(Color.Blue) |
| 212 | } | 218 | } |
| @@ -224,7 +224,11 @@ export struct OperRowListView { | @@ -224,7 +224,11 @@ export struct OperRowListView { | ||
| 224 | if (this.showCommentIcon) { | 224 | if (this.showCommentIcon) { |
| 225 | Column() { | 225 | Column() { |
| 226 | if (this.publishCommentModel?.targetId) { | 226 | if (this.publishCommentModel?.targetId) { |
| 227 | - CommentIconComponent({ publishCommentModel: this.publishCommentModel, styleType: this.styleType }) | 227 | + CommentIconComponent({ |
| 228 | + publishCommentModel: this.publishCommentModel, | ||
| 229 | + styleType: this.styleType, | ||
| 230 | + contentDetail: this.contentDetailData | ||
| 231 | + }) | ||
| 228 | .onClick(() => { | 232 | .onClick(() => { |
| 229 | this.onCommentIconClick() | 233 | this.onCommentIconClick() |
| 230 | 234 |
-
Please register or login to post a comment