Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
王士厅
2024-08-20 15:09:30 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
803fb46f6f006aecadca30e95b95aec1e50d5578
803fb46f
1 parent
f69050e1
fix: 地方精选卡ui修改
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
10 deletions
sight_harmony/features/wdComponent/src/main/ets/components/compview/ZhSingleRow04.ets
sight_harmony/features/wdComponent/src/main/ets/components/compview/ZhSingleRow04.ets
View file @
803fb46
...
...
@@ -25,9 +25,10 @@ export struct ZhSingleRow04 {
// .height(24)
// .margin({ right: 4 })
Text(this.compDTO.objectTitle)
.fontSize(
$r("app.float.font_size_17")
)
.fontSize(
18
)
.fontColor($r("app.color.color_222222"))
.fontWeight(600)
.lineHeight(25)
}
Row() {
...
...
@@ -56,7 +57,7 @@ export struct ZhSingleRow04 {
})
}
.justifyContent(FlexAlign.SpaceBetween)
.margin({
top: 8,
bottom: 8 })
.margin({ bottom: 8 })
.width('100%')
.padding({
left: $r('app.float.card_comp_pagePadding_lf'),
...
...
@@ -87,13 +88,13 @@ export struct ZhSingleRow04 {
.listDirection(Axis.Horizontal)
.scrollBar(BarState.Off)
.width(CommonConstants.FULL_PARENT)
.height(16
6
)
.height(16
0
)
.edgeEffect(EdgeEffect.None)
}
.width(CommonConstants.FULL_WIDTH)
.padding({
left: 10,
right:
1
0,
right: 0,
top: $r('app.float.card_comp_pagePadding_tb'),
bottom: $r('app.float.card_comp_pagePadding_tb')
})
...
...
@@ -111,6 +112,8 @@ struct localCard {
Flex({ direction: FlexDirection.Column }) {
Text(this.operDataListItem.source)
.fontSize($r('app.float.font_size_12'))
.lineHeight(16)
.fontWeight(500)
.fontColor($r('app.color.color_B0B0B0'))
.width('100%')
.margin({ bottom: 6 })
...
...
@@ -121,22 +124,27 @@ struct localCard {
Text(this.operDataListItem.newsTitle)
.width(CommonConstants.FULL_PARENT)
.height(CommonConstants.FULL_PARENT)
.fontSize(
$r('app.float.font_size_18')
)
.fontSize(
16
)
.fontColor('#000000')
.align(Alignment.TopStart)
.maxLines(3)
.textOverflow({ overflow: TextOverflow.Ellipsis })
.lineHeight(2
5
)
.lineHeight(2
2
)
.fontWeight(500)
Row() {
Text(DateTimeUtils.getCommentTime(Number.parseFloat(this.operDataListItem.publishTime)))
.fontSize($r("app.float.font_size_12"))
.fontSize(12)
.lineHeight(16)
.fontWeight(400)
.fontColor($r("app.color.color_B0B0B0"))
.margin({ right: 5 })
// 这里需要外部查询评论接口后,写入字段
if (this.operDataListItem.interactData?.commentNum) {
Text(`${this.operDataListItem.interactData?.commentNum}评`)
.fontSize(12)
.lineHeight(16)
.fontWeight(400)
.fontColor($r("app.color.color_B0B0B0"))
}
Blank()
Image($r('app.media.local_content_icon'))
...
...
@@ -159,10 +167,10 @@ struct localCard {
radius: 2,
})
.shadow({
radius: 6,
color: '#1A000000',
radius: 5,
color: 'rgba(0, 0, 0, 0.10)',
offsetX: 0,
offsetY:
3
offsetY:
1
}) // 设置下方阴影
.margin({
right: -2
...
...
Please
register
or
login
to post a comment