张善主

feat(动态):微调

@@ -83,7 +83,7 @@ export struct DynamicDetailComponent { @@ -83,7 +83,7 @@ export struct DynamicDetailComponent {
83 Image($r('app.media.ic_news_detail_division')) 83 Image($r('app.media.ic_news_detail_division'))
84 .width('100%') 84 .width('100%')
85 .height($r('app.float.margin_7')) 85 .height($r('app.float.margin_7'))
86 - .margin({left: $r('app.float.margin_16'), right: $r('app.float.margin_16')} ) 86 + .padding({left: $r('app.float.margin_16'), right: $r('app.float.margin_16')} )
87 Stack({ alignContent: Alignment.Bottom }) { 87 Stack({ alignContent: Alignment.Bottom }) {
88 Scroll(this.scroller) { 88 Scroll(this.scroller) {
89 Column() { 89 Column() {
@@ -275,7 +275,7 @@ export struct DynamicDetailComponent { @@ -275,7 +275,7 @@ export struct DynamicDetailComponent {
275 Image(this.contentDetailData.fullColumnImgUrls!= null && this.contentDetailData.fullColumnImgUrls.length>0&&!StringUtils.isEmpty(this.contentDetailData.fullColumnImgUrls[0].url)? 275 Image(this.contentDetailData.fullColumnImgUrls!= null && this.contentDetailData.fullColumnImgUrls.length>0&&!StringUtils.isEmpty(this.contentDetailData.fullColumnImgUrls[0].url)?
276 this.contentDetailData.fullColumnImgUrls[0].url: 276 this.contentDetailData.fullColumnImgUrls[0].url:
277 this.contentDetailData.videoInfo[0].firstFrameImageUri) 277 this.contentDetailData.videoInfo[0].firstFrameImageUri)
278 - .width(DisplayUtils.getDeviceWidth()-32) 278 + .width(DisplayUtils.getDeviceWidth()- 32)
279 .height((DisplayUtils.getDeviceWidth()-32)* 9 / 16) 279 .height((DisplayUtils.getDeviceWidth()-32)* 9 / 16)
280 .borderRadius($r('app.float.image_border_radius')) 280 .borderRadius($r('app.float.image_border_radius'))
281 CardMediaInfo({ contentDTO: this.mJumpInfo }) 281 CardMediaInfo({ contentDTO: this.mJumpInfo })
@@ -300,7 +300,7 @@ export struct DynamicDetailComponent { @@ -300,7 +300,7 @@ export struct DynamicDetailComponent {
300 } 300 }
301 } 301 }
302 } 302 }
303 - .margin({ left: $r('app.float.margin_16'),top: $r('app.float.margin_8')}) 303 + .padding({ left: this.contentDetailData.videoInfo[0].videoLandScape === 1?0: 16,top: $r('app.float.margin_8')})
304 .onClick((event: ClickEvent) => { 304 .onClick((event: ClickEvent) => {
305 ProcessUtils.processPage(this.mJumpInfo) 305 ProcessUtils.processPage(this.mJumpInfo)
306 }) 306 })