wangliang_wd

feat:优化折叠屏展示

... ... @@ -219,7 +219,7 @@ export struct MultiPictureDetailItemComponent {
}
.scrollable(ScrollDirection.Vertical)
.scrollBarWidth(0)
.height(this.imageDefaultSize.height || "100%")
// .height(this.imageDefaultSize.height || "100%")
}
.onBlur(() => {
this.resetCurrentImageInfo();
... ...
... ... @@ -249,11 +249,11 @@ export struct DetailPlayShortVideoPage {
// 视频宽高比屏幕大,则宽度撑满
if (this.ratio > width / height) {
this.playerWidth = '100%'
this.playerHeight = px2vp(width / this.ratio)
this.playerHeight = width / this.ratio
} else {
// 否则高度撑满
this.playerHeight = '100%'
this.playerWidth = px2vp(height * this.ratio)
this.playerWidth = height * this.ratio
}
console.log('calculatePlayerRect=====', width, height)
... ...
... ... @@ -166,8 +166,9 @@ struct LaunchPage {
Stack({alignContent:Alignment.Bottom}){
Image($r('app.media.LaunchPage_logo'))
.width(139)
.height(87)
.width(150)
.height(72)
.objectFit(ImageFit.Auto)
.margin({
bottom:24
})
... ...