wuyanan

fix |> 修复横屏直播直播间多图消息展示样式与安卓不一致问题

@@ -11,7 +11,6 @@ export struct TabLiveItemComponent { @@ -11,7 +11,6 @@ export struct TabLiveItemComponent {
11 photoList: PhotoListBean[] = [] 11 photoList: PhotoListBean[] = []
12 12
13 aboutToAppear(): void { 13 aboutToAppear(): void {
14 -  
15 } 14 }
16 15
17 build() { 16 build() {
@@ -93,8 +92,9 @@ export struct TabLiveItemComponent { @@ -93,8 +92,9 @@ export struct TabLiveItemComponent {
93 if (this.item.pictureUrls.length > 1) { 92 if (this.item.pictureUrls.length > 1) {
94 Image(itemSub) 93 Image(itemSub)
95 .width(`${100 / this.item.pictureUrls.length}%`) 94 .width(`${100 / this.item.pictureUrls.length}%`)
96 - // .height(70)  
97 - .objectFit(ImageFit.Contain) 95 + .height(this.item.pictureUrls.length == 3 ? 57 : 87)
  96 + .objectFit(ImageFit.Cover)
  97 + .alt($r('app.media.cover_place_holder'))
98 .borderRadius(4) 98 .borderRadius(4)
99 } else { 99 } else {
100 Image(itemSub) 100 Image(itemSub)
@@ -102,6 +102,7 @@ export struct TabLiveItemComponent { @@ -102,6 +102,7 @@ export struct TabLiveItemComponent {
102 // .aspectRatio(this.getAspectRation()) 102 // .aspectRatio(this.getAspectRation())
103 // .height(177) 103 // .height(177)
104 .objectFit(ImageFit.Contain) 104 .objectFit(ImageFit.Contain)
  105 + .alt($r('app.media.cover_place_holder'))
105 .borderRadius(4) 106 .borderRadius(4)
106 } 107 }
107 }.onClick(() => { 108 }.onClick(() => {
@@ -109,10 +110,13 @@ export struct TabLiveItemComponent { @@ -109,10 +110,13 @@ export struct TabLiveItemComponent {
109 }) 110 })
110 }) 111 })
111 } 112 }
  113 + .enableScrollInteraction(false)
112 .listDirection(Axis.Horizontal) 114 .listDirection(Axis.Horizontal)
  115 + .scrollBar(BarState.Off)
113 .margin({ 116 .margin({
114 top: 8, 117 top: 8,
115 }) 118 })
  119 + .borderRadius(4)
116 } 120 }
117 //音频 121 //音频
118 else if (this.item.dataType === LiveMessageOptType.ZH_AUDIO_MSG) { 122 else if (this.item.dataType === LiveMessageOptType.ZH_AUDIO_MSG) {