Showing
1 changed file
with
18 additions
and
10 deletions
| @@ -25,9 +25,10 @@ export struct ZhSingleRow04 { | @@ -25,9 +25,10 @@ export struct ZhSingleRow04 { | ||
| 25 | // .height(24) | 25 | // .height(24) |
| 26 | // .margin({ right: 4 }) | 26 | // .margin({ right: 4 }) |
| 27 | Text(this.compDTO.objectTitle) | 27 | Text(this.compDTO.objectTitle) |
| 28 | - .fontSize($r("app.float.font_size_17")) | 28 | + .fontSize(18) |
| 29 | .fontColor($r("app.color.color_222222")) | 29 | .fontColor($r("app.color.color_222222")) |
| 30 | .fontWeight(600) | 30 | .fontWeight(600) |
| 31 | + .lineHeight(25) | ||
| 31 | } | 32 | } |
| 32 | 33 | ||
| 33 | Row() { | 34 | Row() { |
| @@ -56,7 +57,7 @@ export struct ZhSingleRow04 { | @@ -56,7 +57,7 @@ export struct ZhSingleRow04 { | ||
| 56 | }) | 57 | }) |
| 57 | } | 58 | } |
| 58 | .justifyContent(FlexAlign.SpaceBetween) | 59 | .justifyContent(FlexAlign.SpaceBetween) |
| 59 | - .margin({ top: 8, bottom: 8 }) | 60 | + .margin({ bottom: 8 }) |
| 60 | .width('100%') | 61 | .width('100%') |
| 61 | .padding({ | 62 | .padding({ |
| 62 | left: $r('app.float.card_comp_pagePadding_lf'), | 63 | left: $r('app.float.card_comp_pagePadding_lf'), |
| @@ -87,13 +88,13 @@ export struct ZhSingleRow04 { | @@ -87,13 +88,13 @@ export struct ZhSingleRow04 { | ||
| 87 | .listDirection(Axis.Horizontal) | 88 | .listDirection(Axis.Horizontal) |
| 88 | .scrollBar(BarState.Off) | 89 | .scrollBar(BarState.Off) |
| 89 | .width(CommonConstants.FULL_PARENT) | 90 | .width(CommonConstants.FULL_PARENT) |
| 90 | - .height(166) | 91 | + .height(160) |
| 91 | .edgeEffect(EdgeEffect.None) | 92 | .edgeEffect(EdgeEffect.None) |
| 92 | } | 93 | } |
| 93 | .width(CommonConstants.FULL_WIDTH) | 94 | .width(CommonConstants.FULL_WIDTH) |
| 94 | .padding({ | 95 | .padding({ |
| 95 | left: 10, | 96 | left: 10, |
| 96 | - right: 10, | 97 | + right: 0, |
| 97 | top: $r('app.float.card_comp_pagePadding_tb'), | 98 | top: $r('app.float.card_comp_pagePadding_tb'), |
| 98 | bottom: $r('app.float.card_comp_pagePadding_tb') | 99 | bottom: $r('app.float.card_comp_pagePadding_tb') |
| 99 | }) | 100 | }) |
| @@ -111,6 +112,8 @@ struct localCard { | @@ -111,6 +112,8 @@ struct localCard { | ||
| 111 | Flex({ direction: FlexDirection.Column }) { | 112 | Flex({ direction: FlexDirection.Column }) { |
| 112 | Text(this.operDataListItem.source) | 113 | Text(this.operDataListItem.source) |
| 113 | .fontSize($r('app.float.font_size_12')) | 114 | .fontSize($r('app.float.font_size_12')) |
| 115 | + .lineHeight(16) | ||
| 116 | + .fontWeight(500) | ||
| 114 | .fontColor($r('app.color.color_B0B0B0')) | 117 | .fontColor($r('app.color.color_B0B0B0')) |
| 115 | .width('100%') | 118 | .width('100%') |
| 116 | .margin({ bottom: 6 }) | 119 | .margin({ bottom: 6 }) |
| @@ -121,22 +124,27 @@ struct localCard { | @@ -121,22 +124,27 @@ struct localCard { | ||
| 121 | Text(this.operDataListItem.newsTitle) | 124 | Text(this.operDataListItem.newsTitle) |
| 122 | .width(CommonConstants.FULL_PARENT) | 125 | .width(CommonConstants.FULL_PARENT) |
| 123 | .height(CommonConstants.FULL_PARENT) | 126 | .height(CommonConstants.FULL_PARENT) |
| 124 | - .fontSize($r('app.float.font_size_18')) | 127 | + .fontSize(16) |
| 125 | .fontColor('#000000') | 128 | .fontColor('#000000') |
| 126 | .align(Alignment.TopStart) | 129 | .align(Alignment.TopStart) |
| 127 | .maxLines(3) | 130 | .maxLines(3) |
| 128 | .textOverflow({ overflow: TextOverflow.Ellipsis }) | 131 | .textOverflow({ overflow: TextOverflow.Ellipsis }) |
| 129 | - .lineHeight(25) | 132 | + .lineHeight(22) |
| 130 | .fontWeight(500) | 133 | .fontWeight(500) |
| 131 | Row() { | 134 | Row() { |
| 132 | Text(DateTimeUtils.getCommentTime(Number.parseFloat(this.operDataListItem.publishTime))) | 135 | Text(DateTimeUtils.getCommentTime(Number.parseFloat(this.operDataListItem.publishTime))) |
| 133 | - .fontSize($r("app.float.font_size_12")) | 136 | + .fontSize(12) |
| 137 | + .lineHeight(16) | ||
| 138 | + .fontWeight(400) | ||
| 134 | .fontColor($r("app.color.color_B0B0B0")) | 139 | .fontColor($r("app.color.color_B0B0B0")) |
| 135 | .margin({ right: 5 }) | 140 | .margin({ right: 5 }) |
| 136 | // 这里需要外部查询评论接口后,写入字段 | 141 | // 这里需要外部查询评论接口后,写入字段 |
| 137 | if (this.operDataListItem.interactData?.commentNum) { | 142 | if (this.operDataListItem.interactData?.commentNum) { |
| 138 | Text(`${this.operDataListItem.interactData?.commentNum}评`) | 143 | Text(`${this.operDataListItem.interactData?.commentNum}评`) |
| 139 | .fontSize(12) | 144 | .fontSize(12) |
| 145 | + .lineHeight(16) | ||
| 146 | + .fontWeight(400) | ||
| 147 | + .fontColor($r("app.color.color_B0B0B0")) | ||
| 140 | } | 148 | } |
| 141 | Blank() | 149 | Blank() |
| 142 | Image($r('app.media.local_content_icon')) | 150 | Image($r('app.media.local_content_icon')) |
| @@ -159,10 +167,10 @@ struct localCard { | @@ -159,10 +167,10 @@ struct localCard { | ||
| 159 | radius: 2, | 167 | radius: 2, |
| 160 | }) | 168 | }) |
| 161 | .shadow({ | 169 | .shadow({ |
| 162 | - radius: 6, | ||
| 163 | - color: '#1A000000', | 170 | + radius: 5, |
| 171 | + color: 'rgba(0, 0, 0, 0.10)', | ||
| 164 | offsetX: 0, | 172 | offsetX: 0, |
| 165 | - offsetY: 3 | 173 | + offsetY: 1 |
| 166 | }) // 设置下方阴影 | 174 | }) // 设置下方阴影 |
| 167 | .margin({ | 175 | .margin({ |
| 168 | right: -2 | 176 | right: -2 |
-
Please register or login to post a comment