caohuahui

头图卡添加标题数据

@@ -14,18 +14,17 @@ export struct HeadPictureCardComponent { @@ -14,18 +14,17 @@ export struct HeadPictureCardComponent {
14 .width(CommonConstants.FULL_WIDTH) 14 .width(CommonConstants.FULL_WIDTH)
15 .height(CommonConstants.FULL_HEIGHT) 15 .height(CommonConstants.FULL_HEIGHT)
16 16
17 - if (this.compDTO.operDataList[0].description != null) { 17 + if (this.compDTO.operDataList[0].newsTitle != null) {
18 Row() 18 Row()
19 .width(CommonConstants.FULL_WIDTH) 19 .width(CommonConstants.FULL_WIDTH)
20 .height(59) 20 .height(59)
21 - .backgroundColor(Color.Red)  
22 .linearGradient({ 21 .linearGradient({
23 colors:[ 22 colors:[
24 ['rgba(0, 0, 0, 0.0)', 0.0], ['rgba(0, 0, 0, 0.3)', 1.0] 23 ['rgba(0, 0, 0, 0.0)', 0.0], ['rgba(0, 0, 0, 0.3)', 1.0]
25 ] 24 ]
26 }) 25 })
27 Row() { 26 Row() {
28 - Text(this.compDTO.operDataList[0].description) 27 + Text(this.compDTO.operDataList[0].newsTitle)
29 .width(CommonConstants.FULL_WIDTH) 28 .width(CommonConstants.FULL_WIDTH)
30 .height(CommonConstants.FULL_HEIGHT) 29 .height(CommonConstants.FULL_HEIGHT)
31 .fontColor(Color.White) 30 .fontColor(Color.White)
@@ -43,3 +42,4 @@ export struct HeadPictureCardComponent { @@ -43,3 +42,4 @@ export struct HeadPictureCardComponent {
43 .height(200) 42 .height(200)
44 } 43 }
45 } 44 }
  45 +