wangliang_wd

feat:优化折叠屏展示

@@ -219,7 +219,7 @@ export struct MultiPictureDetailItemComponent { @@ -219,7 +219,7 @@ export struct MultiPictureDetailItemComponent {
219 } 219 }
220 .scrollable(ScrollDirection.Vertical) 220 .scrollable(ScrollDirection.Vertical)
221 .scrollBarWidth(0) 221 .scrollBarWidth(0)
222 - .height(this.imageDefaultSize.height || "100%") 222 + // .height(this.imageDefaultSize.height || "100%")
223 } 223 }
224 .onBlur(() => { 224 .onBlur(() => {
225 this.resetCurrentImageInfo(); 225 this.resetCurrentImageInfo();
@@ -249,11 +249,11 @@ export struct DetailPlayShortVideoPage { @@ -249,11 +249,11 @@ export struct DetailPlayShortVideoPage {
249 // 视频宽高比屏幕大,则宽度撑满 249 // 视频宽高比屏幕大,则宽度撑满
250 if (this.ratio > width / height) { 250 if (this.ratio > width / height) {
251 this.playerWidth = '100%' 251 this.playerWidth = '100%'
252 - this.playerHeight = px2vp(width / this.ratio) 252 + this.playerHeight = width / this.ratio
253 } else { 253 } else {
254 // 否则高度撑满 254 // 否则高度撑满
255 this.playerHeight = '100%' 255 this.playerHeight = '100%'
256 - this.playerWidth = px2vp(height * this.ratio) 256 + this.playerWidth = height * this.ratio
257 } 257 }
258 console.log('calculatePlayerRect=====', width, height) 258 console.log('calculatePlayerRect=====', width, height)
259 259
@@ -166,8 +166,9 @@ struct LaunchPage { @@ -166,8 +166,9 @@ struct LaunchPage {
166 166
167 Stack({alignContent:Alignment.Bottom}){ 167 Stack({alignContent:Alignment.Bottom}){
168 Image($r('app.media.LaunchPage_logo')) 168 Image($r('app.media.LaunchPage_logo'))
169 - .width(139)  
170 - .height(87) 169 + .width(150)
  170 + .height(72)
  171 + .objectFit(ImageFit.Auto)
171 .margin({ 172 .margin({
172 bottom:24 173 bottom:24
173 }) 174 })