liujian1_wd

添加楼层

@@ -76,17 +76,11 @@ export struct GridLayout01Component { @@ -76,17 +76,11 @@ export struct GridLayout01Component {
76 @Builder 76 @Builder
77 buildItemTopImgBottomTxt01(item: ContentDTO, index: number){ 77 buildItemTopImgBottomTxt01(item: ContentDTO, index: number){
78 Column(){ 78 Column(){
79 - RelativeContainer() {  
80 Image(item.hImageUrl) 79 Image(item.hImageUrl)
81 .width('100%') 80 .width('100%')
82 .aspectRatio(16 / 9) 81 .aspectRatio(16 / 9)
83 .borderRadius($r("app.float.image_border_radius")) 82 .borderRadius($r("app.float.image_border_radius"))
84 .objectFit(ImageFit.Cover) 83 .objectFit(ImageFit.Cover)
85 - .alignRules({  
86 - top: { anchor: '__container__', align: VerticalAlign.Top },  
87 - left: { anchor: '__container__', align: HorizontalAlign.Start }  
88 - })  
89 - .id('img_cover')  
90 84
91 Text(item.title) 85 Text(item.title)
92 .width('100%') 86 .width('100%')
@@ -97,16 +91,6 @@ export struct GridLayout01Component { @@ -97,16 +91,6 @@ export struct GridLayout01Component {
97 .fontColor($r('app.color.color_333333')) 91 .fontColor($r('app.color.color_333333'))
98 .maxLines(2) 92 .maxLines(2)
99 .textOverflow({ overflow: TextOverflow.Ellipsis }) 93 .textOverflow({ overflow: TextOverflow.Ellipsis })
100 - .alignRules({  
101 - top: {anchor:'img_cover', align: VerticalAlign.Bottom},  
102 - left: {anchor: 'img_cover', align: HorizontalAlign.Start},  
103 - right:{anchor: 'img_cover', align: HorizontalAlign.End}  
104 - })  
105 - .id("tv_title")  
106 -  
107 - }  
108 - .width('100%')  
109 - .height($r('app.float.single_row_03_item_height'))  
110 } 94 }
111 .backgroundColor(Color.White) 95 .backgroundColor(Color.White)
112 .hoverEffect(HoverEffect.Scale) 96 .hoverEffect(HoverEffect.Scale)
@@ -24,6 +24,7 @@ export struct SingleRow03Component { @@ -24,6 +24,7 @@ export struct SingleRow03Component {
24 } 24 }
25 .listDirection(Axis.Horizontal) 25 .listDirection(Axis.Horizontal)
26 .lanes(1) 26 .lanes(1)
  27 + .margin({left: 12, right: 12})
27 .scrollBar(BarState.Off) 28 .scrollBar(BarState.Off)
28 } 29 }
29 30
@@ -72,7 +73,7 @@ export struct SingleRow03Component { @@ -72,7 +73,7 @@ export struct SingleRow03Component {
72 73
73 }) 74 })
74 75
75 - Text(item.startTime) 76 + Text(item.startTime.substring(0, 10))
76 .fontWeight(FontWeight.Normal) 77 .fontWeight(FontWeight.Normal)
77 .textAlign(TextAlign.Start) 78 .textAlign(TextAlign.Start)
78 .margin({ left: 6}) 79 .margin({ left: 6})