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
guochunsong
2024-02-06 09:12:09 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
307437e582df65f0523750ceb0db3125ced9d897
307437e5
1 parent
afc69607
头图卡代码合入
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
sight_harmony/wdComponent/src/main/ets/components/view/HeadPictureCardComponent.ets
sight_harmony/wdComponent/src/main/ets/components/view/HeadPictureCardComponent.ets
View file @
307437e
...
...
@@ -8,34 +8,39 @@ export struct HeadPictureCardComponent {
build() {
Stack() {
Image(this.compDTO.
backgroundImg
Url)
Image(this.compDTO.
operDataList[0].cover
Url)
.width(CommonConstants.FULL_WIDTH)
.height(CommonConstants.FULL_HEIGHT)
if (this.compDTO.extraData) {
.autoResize(true)
if (this.compDTO.operDataList[0].newsTitle) {
Row()
.width(CommonConstants.FULL_WIDTH)
.height(59)
.backgroundColor(Color.Red)
.linearGradient({
colors: [
['rgba(0, 0, 0, 0.0)', 0.0], ['rgba(0, 0, 0, 0.3)', 1.0]
]
})
Row() {
Text(
CompUtils.getLabelTitle(this.compDTO.extraData)
)
Text(
this.compDTO.operDataList[0].newsTitle
)
.width(CommonConstants.FULL_WIDTH)
.height(CommonConstants.FULL_HEIGHT)
.fontColor(Color.White)
.fontSize($r('app.float.normal_text_size'))
.fontWeight(FontWeight.Bold)
.maxLines(2)
.align(Alignment.Bottom)
}
.height(25)
.justifyContent(FlexAlign.Start)
.height(40)
.margin({ left: 12, bottom: 10, right: 12 })
}
}
.alignContent(Alignment.Bottom)
.width(CommonConstants.FULL_WIDTH)
.height(200)
.padding(
{ top: 16, bottom: 16, left: 14, right: 14 })
}
}
...
...
Please
register
or
login
to post a comment