wuyanan

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

... ... @@ -11,7 +11,6 @@ export struct TabLiveItemComponent {
photoList: PhotoListBean[] = []
aboutToAppear(): void {
}
build() {
... ... @@ -93,8 +92,9 @@ export struct TabLiveItemComponent {
if (this.item.pictureUrls.length > 1) {
Image(itemSub)
.width(`${100 / this.item.pictureUrls.length}%`)
// .height(70)
.objectFit(ImageFit.Contain)
.height(this.item.pictureUrls.length == 3 ? 57 : 87)
.objectFit(ImageFit.Cover)
.alt($r('app.media.cover_place_holder'))
.borderRadius(4)
} else {
Image(itemSub)
... ... @@ -102,6 +102,7 @@ export struct TabLiveItemComponent {
// .aspectRatio(this.getAspectRation())
// .height(177)
.objectFit(ImageFit.Contain)
.alt($r('app.media.cover_place_holder'))
.borderRadius(4)
}
}.onClick(() => {
... ... @@ -109,10 +110,13 @@ export struct TabLiveItemComponent {
})
})
}
.enableScrollInteraction(false)
.listDirection(Axis.Horizontal)
.scrollBar(BarState.Off)
.margin({
top: 8,
})
.borderRadius(4)
}
//音频
else if (this.item.dataType === LiveMessageOptType.ZH_AUDIO_MSG) {
... ...