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 18:04:57 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0d048a98e4308ecce98c8be147e5e88601adb1aa
0d048a98
1 parent
8e3cede9
fix: 时间链卡ui修改
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
16 deletions
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card9Component.ets
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card9Component.ets
View file @
0d048a9
...
...
@@ -94,7 +94,7 @@ export struct Card9Component {
.fontSize($r('app.float.font_size_18'))
.maxLines(2)
.textOverflow({ overflow: TextOverflow.Ellipsis })
.margin({
top: 10, bottom: 10
})
.margin({
bottom: 14
})
.fontWeight(400)
}
// 大图
...
...
@@ -104,21 +104,21 @@ export struct Card9Component {
.width('100%')
.height(133)
.borderRadius({
topLeft: $r('app.float.image_border_radius'),
topRight: $r('app.float.image_border_radius')
topLeft: 4,
topRight: 4
})
if(this.contentDTO.objectType == '5'){
Notes({ objectType: this.contentDTO.objectType,objectLevel:this.contentDTO.objectLevel }).height(20).align(Alignment.Center)
.margin({ left:
5, bottom: 5
})
.margin({ left:
8, bottom: 8
})
} else {
if (this.contentDTO.seoTags) {
Notes({ newTags: this.contentDTO.seoTags }).height(20).align(Alignment.Center)
Notes({ newTags: this.contentDTO.seoTags }).height(20).align(Alignment.Center)
.margin({ left: 8, bottom: 8 })
}
if (this.contentDTO.newTags) {
Notes({ newTags: this.contentDTO.newTags }).height(20).align(Alignment.Center)
Notes({ newTags: this.contentDTO.newTags }).height(20).align(Alignment.Center)
.margin({ left: 8, bottom: 8 })
}
if (this.contentDTO.top === 1) {
Notes({ newTags: '置顶' }).height(20).align(Alignment.Center)
Notes({ newTags: '置顶' }).height(20).align(Alignment.Center)
.margin({ left: 8, bottom: 8 })
}
}
...
...
@@ -131,6 +131,9 @@ export struct Card9Component {
this.timelineItem(item, index, index === this.contentDTO.slideShows.length - 1)
})
}
.margin({
top: 14
})
}
// 底部-查看更多。根据接口返回的isMore判断是否显示查看更多
...
...
@@ -149,18 +152,16 @@ export struct Card9Component {
.height(40)
.borderRadius($r('app.float.button_border_radius'))
.justifyContent(FlexAlign.Center)
.margin({ top: 5 })
}
}
.width(CommonConstants.FULL_WIDTH)
.padding({
top:
5
,
top:
14
,
left: 16,
right: 16,
bottom: 14
})
.backgroundColor($r("app.color.white"))
.margin({ bottom: 8 })
.onClick((event: ClickEvent) => {
InfomationCardClick.track(this.compDTO, this.contentDTO, this.pageId, this.pageName)
if (router.getState().name !== 'MyCollectionListPage') {
...
...
@@ -213,7 +214,7 @@ export struct Card9Component {
Image($r("app.media.timeAxis"))
.width(9)
.height(6)
.margin({ right:
5
})
.margin({ right:
6
})
.fillColor(item.newsTitleColor)
Text(this.formatTime(item.publishTime))
...
...
@@ -224,19 +225,19 @@ export struct Card9Component {
.width(CommonConstants.FULL_WIDTH)
.height(32)
.alignItems(VerticalAlign.Center)
Row() {
Text(item.newsTitle)
.fontSize($r('app.float.font_size_17'))
.fontSize(18)
.lineHeight(25)
.fontWeight(400)
.fontColor($r('app.color.color_222222'))
.layoutWeight(1)
.maxLines(2)
.textOverflow({ overflow: TextOverflow.Ellipsis })
.alignSelf(ItemAlign.Center)
.margin({ left: 4 })
.padding({ bottom: 20, left: 12 })
.alignSelf(ItemAlign.Start)
.padding({ bottom: 20, left: 10 })
.border({ width: { left: isLastOne ? 0 : 1 }, color: 0xededed})
.margin({ left: 4 })
}
}
}
...
...
Please
register
or
login
to post a comment