caohuahui

头图卡添加标题数据

... ... @@ -14,18 +14,17 @@ export struct HeadPictureCardComponent {
.width(CommonConstants.FULL_WIDTH)
.height(CommonConstants.FULL_HEIGHT)
if (this.compDTO.operDataList[0].description != null) {
if (this.compDTO.operDataList[0].newsTitle != null) {
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(this.compDTO.operDataList[0].description)
Text(this.compDTO.operDataList[0].newsTitle)
.width(CommonConstants.FULL_WIDTH)
.height(CommonConstants.FULL_HEIGHT)
.fontColor(Color.White)
... ... @@ -43,3 +42,4 @@ export struct HeadPictureCardComponent {
.height(200)
}
}
... ...