Showing
1 changed file
with
23 additions
and
13 deletions
| @@ -60,20 +60,13 @@ export struct CarderInteraction { | @@ -60,20 +60,13 @@ export struct CarderInteraction { | ||
| 60 | }) | 60 | }) |
| 61 | } | 61 | } |
| 62 | 62 | ||
| 63 | - | ||
| 64 | - Row() { | ||
| 65 | - Image($r('app.media.CarderInteraction_comment')) | ||
| 66 | - .width(18) | ||
| 67 | - .height(18) | ||
| 68 | - Text('评论') | ||
| 69 | - .margin({ left: 4 }) | ||
| 70 | - .fontSize(14) | ||
| 71 | - .fontColor('#666666') | 63 | + if(this.contentDetailData.rmhInfo != null){ |
| 64 | + if(this.contentDetailData.shareInfo != null && 1 == this.contentDetailData.shareInfo.shareOpen && 1 == this.contentDetailData.rmhInfo.cnShareControl){ | ||
| 65 | + this.shareLayout() | ||
| 66 | + } | ||
| 67 | + }else{ | ||
| 68 | + this.shareLayout() | ||
| 72 | } | 69 | } |
| 73 | - .justifyContent(FlexAlign.Center) | ||
| 74 | - .onClick(() => { | ||
| 75 | - ProcessUtils.processPage(this.contentDTO) | ||
| 76 | - }) | ||
| 77 | 70 | ||
| 78 | this.builderLike() | 71 | this.builderLike() |
| 79 | } | 72 | } |
| @@ -87,6 +80,23 @@ export struct CarderInteraction { | @@ -87,6 +80,23 @@ export struct CarderInteraction { | ||
| 87 | .alignItems(VerticalAlign.Center) | 80 | .alignItems(VerticalAlign.Center) |
| 88 | } | 81 | } |
| 89 | 82 | ||
| 83 | + @Builder | ||
| 84 | + shareLayout() { | ||
| 85 | + Row() { | ||
| 86 | + Image($r('app.media.CarderInteraction_comment')) | ||
| 87 | + .width(18) | ||
| 88 | + .height(18); | ||
| 89 | + Text('评论') | ||
| 90 | + .margin({ left: 4 }) | ||
| 91 | + .fontSize(14) | ||
| 92 | + .fontColor('#666666'); | ||
| 93 | + } | ||
| 94 | + .justifyContent(FlexAlign.Center) | ||
| 95 | + .onClick(() => { | ||
| 96 | + ProcessUtils.processPage(this.contentDTO); | ||
| 97 | + }) | ||
| 98 | + } | ||
| 99 | + | ||
| 90 | /** | 100 | /** |
| 91 | * 点赞组件 | 101 | * 点赞组件 |
| 92 | */ | 102 | */ |
-
Please register or login to post a comment