wangliang_wd

feat:优化广告图片展示,优化电子报展示

@@ -47,7 +47,7 @@ export struct ENewspaperItemComponent { @@ -47,7 +47,7 @@ export struct ENewspaperItemComponent {
47 } 47 }
48 this.isShowSkeleton = false 48 this.isShowSkeleton = false
49 }) 49 })
50 - .objectFit(ImageFit.Fill) 50 + .objectFit(ImageFit.Contain)
51 .zIndex(10) 51 .zIndex(10)
52 newsSkeleton({showBottom: false}) 52 newsSkeleton({showBottom: false})
53 .visibility(this.isShowSkeleton ? Visibility.Visible : Visibility.None) 53 .visibility(this.isShowSkeleton ? Visibility.Visible : Visibility.None)
@@ -250,6 +250,7 @@ export function closeRefresh(pageModel: PageModel, isRefreshSuccess: boolean) { @@ -250,6 +250,7 @@ export function closeRefresh(pageModel: PageModel, isRefreshSuccess: boolean) {
250 250
251 pullRefreshState(pageModel,RefreshState.GOLOADED); 251 pullRefreshState(pageModel,RefreshState.GOLOADED);
252 252
  253 + //定时器时间就是'已刷新至最新'停留时间
253 setTimeout(() => { 254 setTimeout(() => {
254 let delay = Const.RefreshConstant_DELAY_PULL_DOWN_REFRESH; 255 let delay = Const.RefreshConstant_DELAY_PULL_DOWN_REFRESH;
255 if (self.isCanRefresh === true) { 256 if (self.isCanRefresh === true) {
@@ -89,7 +89,7 @@ struct LaunchAdvertisingPage { @@ -89,7 +89,7 @@ struct LaunchAdvertisingPage {
89 }else { 89 }else {
90 //显示图片 90 //显示图片
91 Image(this.defaultModel.bootScreenUrl) 91 Image(this.defaultModel.bootScreenUrl)
92 - .objectFit(this.isPad?ImageFit.Contain:ImageFit.Fill) 92 + .objectFit(this.isPad?ImageFit.Cover:ImageFit.Fill)
93 // .expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.TOP, SafeAreaEdge.BOTTOM]) 93 // .expandSafeArea([SafeAreaType.SYSTEM], [SafeAreaEdge.TOP, SafeAreaEdge.BOTTOM])
94 .width('100%') 94 .width('100%')
95 .height('100%') 95 .height('100%')