Showing
1 changed file
with
24 additions
and
21 deletions
| @@ -93,10 +93,12 @@ export struct MultiPictureDetailPageComponent { | @@ -93,10 +93,12 @@ export struct MultiPictureDetailPageComponent { | ||
| 93 | 93 | ||
| 94 | if (this.contentDetailData.rmhPlatform == 1) { | 94 | if (this.contentDetailData.rmhPlatform == 1) { |
| 95 | Row() { | 95 | Row() { |
| 96 | - Row() { | ||
| 97 | - Row({ space: 8 }) { | 96 | + Row({ space: 8 }) { |
| 97 | + Row() { | ||
| 98 | Image(this.contentDetailData?.rmhInfo?.rmhHeadUrl) | 98 | Image(this.contentDetailData?.rmhInfo?.rmhHeadUrl) |
| 99 | - .borderRadius('50%') | 99 | + .borderRadius(24) |
| 100 | + .aspectRatio(1) | ||
| 101 | + .border({ width: 1, color: Color.White, style: BorderStyle.Solid }) | ||
| 100 | .alt($r('app.media.picture_loading')) | 102 | .alt($r('app.media.picture_loading')) |
| 101 | .width(36) | 103 | .width(36) |
| 102 | .height(36) | 104 | .height(36) |
| @@ -109,7 +111,8 @@ export struct MultiPictureDetailPageComponent { | @@ -109,7 +111,8 @@ export struct MultiPictureDetailPageComponent { | ||
| 109 | Row() { | 111 | Row() { |
| 110 | Flex({ | 112 | Flex({ |
| 111 | direction: FlexDirection.Column, | 113 | direction: FlexDirection.Column, |
| 112 | - justifyContent: FlexAlign.Start | 114 | + justifyContent: FlexAlign.SpaceAround, |
| 115 | + alignItems: ItemAlign.Start | ||
| 113 | }) { | 116 | }) { |
| 114 | Text(`${this.contentDetailData?.rmhInfo?.rmhName}`) | 117 | Text(`${this.contentDetailData?.rmhInfo?.rmhName}`) |
| 115 | .fontColor(Color.White) | 118 | .fontColor(Color.White) |
| @@ -118,13 +121,15 @@ export struct MultiPictureDetailPageComponent { | @@ -118,13 +121,15 @@ export struct MultiPictureDetailPageComponent { | ||
| 118 | .fontWeight(500) | 121 | .fontWeight(500) |
| 119 | .lineHeight(17) | 122 | .lineHeight(17) |
| 120 | .margin(0) | 123 | .margin(0) |
| 124 | + .height(17) | ||
| 121 | Text(`${this.contentDetailData?.rmhInfo?.rmhDesc}`) | 125 | Text(`${this.contentDetailData?.rmhInfo?.rmhDesc}`) |
| 122 | .fontColor('#676767') | 126 | .fontColor('#676767') |
| 123 | .fontSize(12) | 127 | .fontSize(12) |
| 124 | .fontFamily('PingFang SC-Regular') | 128 | .fontFamily('PingFang SC-Regular') |
| 125 | .fontWeight(400) | 129 | .fontWeight(400) |
| 126 | .lineHeight(14) | 130 | .lineHeight(14) |
| 127 | - .textOverflow({ overflow: TextOverflow.Clip }) | 131 | + .height(14) |
| 132 | + .textOverflow({ overflow: TextOverflow.Ellipsis }) | ||
| 128 | .margin(0) | 133 | .margin(0) |
| 129 | } | 134 | } |
| 130 | } | 135 | } |
| @@ -142,23 +147,21 @@ export struct MultiPictureDetailPageComponent { | @@ -142,23 +147,21 @@ export struct MultiPictureDetailPageComponent { | ||
| 142 | 147 | ||
| 143 | if (this.followStatus == '0') { | 148 | if (this.followStatus == '0') { |
| 144 | Row() { | 149 | Row() { |
| 145 | - Button('+关注', { type: ButtonType.Normal, stateEffect: true }) | ||
| 146 | - .borderRadius(4) | ||
| 147 | - .backgroundColor('#ED2800') | ||
| 148 | - .width(48) | ||
| 149 | - .height(24) | ||
| 150 | - .onClick(() => { | ||
| 151 | - this.handleAccention() | ||
| 152 | - }) | ||
| 153 | - .margin({ | ||
| 154 | - top: 10, | ||
| 155 | - bottom: 10, | ||
| 156 | - left: 16, | ||
| 157 | - right: 16 | ||
| 158 | - }) | ||
| 159 | - .fontSize(12) | ||
| 160 | - .fontColor(Color.White) | 150 | + Button({ type: ButtonType.Normal, stateEffect: true }) { |
| 151 | + Row() { | ||
| 152 | + Text('+关注').fontSize(12).fontColor(0xffffff) | ||
| 153 | + }.alignItems(VerticalAlign.Center) | ||
| 154 | + } | ||
| 155 | + .borderRadius(4) | ||
| 156 | + .backgroundColor('#ED2800') | ||
| 157 | + .width(48) | ||
| 158 | + .height(24) | ||
| 159 | + .onClick(() => { | ||
| 160 | + this.handleAccention() | ||
| 161 | + }) | ||
| 161 | } | 162 | } |
| 163 | + .justifyContent(FlexAlign.Center) | ||
| 164 | + .alignItems(VerticalAlign.Center) | ||
| 162 | .width('21.6%') | 165 | .width('21.6%') |
| 163 | .height('100%') | 166 | .height('100%') |
| 164 | } | 167 | } |
-
Please register or login to post a comment