Showing
1 changed file
with
21 additions
and
15 deletions
| @@ -175,11 +175,13 @@ export struct DynamicDetailComponent { | @@ -175,11 +175,13 @@ export struct DynamicDetailComponent { | ||
| 175 | color: '#0D000000', // 5% 透明度的黑色 | 175 | color: '#0D000000', // 5% 透明度的黑色 |
| 176 | style: BorderStyle.Solid | 176 | style: BorderStyle.Solid |
| 177 | }) | 177 | }) |
| 178 | - Image(this.contentDetailData.rmhInfo?.honoraryIcon) | ||
| 179 | - .width($r('app.float.margin_48')) | ||
| 180 | - .height($r('app.float.margin_48')) | ||
| 181 | - .objectFit(ImageFit.Cover) | ||
| 182 | - .borderRadius($r('app.float.margin_24')) | 178 | + if (!!this.contentDetailData.rmhInfo?.honoraryIcon) { |
| 179 | + Image(this.contentDetailData.rmhInfo?.honoraryIcon) | ||
| 180 | + .width($r('app.float.margin_48')) | ||
| 181 | + .height($r('app.float.margin_48')) | ||
| 182 | + .objectFit(ImageFit.Cover) | ||
| 183 | + .borderRadius($r('app.float.margin_24')) | ||
| 184 | + } | ||
| 183 | if (!StringUtils.isEmpty(this.contentDetailData.rmhInfo?.authIcon)) { | 185 | if (!StringUtils.isEmpty(this.contentDetailData.rmhInfo?.authIcon)) { |
| 184 | Stack() { | 186 | Stack() { |
| 185 | Image(this.contentDetailData.rmhInfo?.authIcon) | 187 | Image(this.contentDetailData.rmhInfo?.authIcon) |
| @@ -192,8 +194,8 @@ export struct DynamicDetailComponent { | @@ -192,8 +194,8 @@ export struct DynamicDetailComponent { | ||
| 192 | .alignContent(Alignment.BottomEnd) | 194 | .alignContent(Alignment.BottomEnd) |
| 193 | } | 195 | } |
| 194 | } | 196 | } |
| 195 | - .width($r('app.float.margin_48')) | ||
| 196 | - .height($r('app.float.margin_48')) | 197 | + .width(!!this.contentDetailData.rmhInfo?.honoraryIcon ? $r('app.float.margin_48') : $r('app.float.margin_36')) |
| 198 | + .height(!!this.contentDetailData.rmhInfo?.honoraryIcon ? $r('app.float.margin_48') : $r('app.float.margin_36')) | ||
| 197 | .alignContent(Alignment.Center) | 199 | .alignContent(Alignment.Center) |
| 198 | .onClick(async () => { | 200 | .onClick(async () => { |
| 199 | let retvalue = await FastClickUtil.isMinDelayTime() | 201 | let retvalue = await FastClickUtil.isMinDelayTime() |
| @@ -203,6 +205,7 @@ export struct DynamicDetailComponent { | @@ -203,6 +205,7 @@ export struct DynamicDetailComponent { | ||
| 203 | ProcessUtils.gotoPeopleShipHomePage(this.contentDetailData.rmhInfo == null ? "" : | 205 | ProcessUtils.gotoPeopleShipHomePage(this.contentDetailData.rmhInfo == null ? "" : |
| 204 | this.contentDetailData.rmhInfo.rmhId) | 206 | this.contentDetailData.rmhInfo.rmhId) |
| 205 | }) | 207 | }) |
| 208 | + .margin({right: 6}) | ||
| 206 | 209 | ||
| 207 | Column() { | 210 | Column() { |
| 208 | //昵称 | 211 | //昵称 |
| @@ -229,8 +232,6 @@ export struct DynamicDetailComponent { | @@ -229,8 +232,6 @@ export struct DynamicDetailComponent { | ||
| 229 | .height(14) | 232 | .height(14) |
| 230 | .lineHeight(14) | 233 | .lineHeight(14) |
| 231 | } | 234 | } |
| 232 | - .width('70%') | ||
| 233 | - .margin({ right: $r('app.float.margin_6') }) | ||
| 234 | 235 | ||
| 235 | Blank() | 236 | Blank() |
| 236 | if ((this.contentDetailData.rmhPlatform == 1 && this.contentDetailData?.rmhInfo?.userType != "5") && !StringUtils.isEmpty(this.followStatus)) { | 237 | if ((this.contentDetailData.rmhPlatform == 1 && this.contentDetailData?.rmhInfo?.userType != "5") && !StringUtils.isEmpty(this.followStatus)) { |
| @@ -278,10 +279,13 @@ export struct DynamicDetailComponent { | @@ -278,10 +279,13 @@ export struct DynamicDetailComponent { | ||
| 278 | }) | 279 | }) |
| 279 | } | 280 | } |
| 280 | } | 281 | } |
| 281 | - }.padding({ | ||
| 282 | - left: $r('app.float.vp_16') | ||
| 283 | - , right: $r('app.float.vp_16') | ||
| 284 | - }).width('100%') | 282 | + } |
| 283 | + .margin({ | ||
| 284 | + left: $r('app.float.vp_16'), | ||
| 285 | + right: $r('app.float.vp_16') | ||
| 286 | + }) | ||
| 287 | + .width('calc(100% - 32vp)') | ||
| 288 | + | ||
| 285 | //标题 | 289 | //标题 |
| 286 | Text(this.titleText()) | 290 | Text(this.titleText()) |
| 287 | .fontColor($r('app.color.color_222222')) | 291 | .fontColor($r('app.color.color_222222')) |
| @@ -644,7 +648,9 @@ export struct DynamicDetailComponent { | @@ -644,7 +648,9 @@ export struct DynamicDetailComponent { | ||
| 644 | } | 648 | } |
| 645 | .width(CommonConstants.FULL_WIDTH) | 649 | .width(CommonConstants.FULL_WIDTH) |
| 646 | .height(CommonConstants.FULL_HEIGHT) | 650 | .height(CommonConstants.FULL_HEIGHT) |
| 647 | - .padding({ bottom: 100 }) | 651 | + .padding({ |
| 652 | + bottom: 100, | ||
| 653 | + }) | ||
| 648 | .scrollBar(BarState.Off) | 654 | .scrollBar(BarState.Off) |
| 649 | .alignSelf(ItemAlign.Start) | 655 | .alignSelf(ItemAlign.Start) |
| 650 | } | 656 | } |
| @@ -678,7 +684,7 @@ export struct DynamicDetailComponent { | @@ -678,7 +684,7 @@ export struct DynamicDetailComponent { | ||
| 678 | .height(100) | 684 | .height(100) |
| 679 | 685 | ||
| 680 | } | 686 | } |
| 681 | - .margin({bottom: 65}) | 687 | + .margin({bottom: 65, top: 10}) |
| 682 | } | 688 | } |
| 683 | .alignSelf(ItemAlign.Start) | 689 | .alignSelf(ItemAlign.Start) |
| 684 | .backgroundColor('#FFFFFFFF') | 690 | .backgroundColor('#FFFFFFFF') |
-
Please register or login to post a comment