From 04e15b06d3cd73143cc658040db346c901515e27 Mon Sep 17 00:00:00 2001 From: hdw Date: Fri, 6 Jun 2025 11:02:12 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E4=BF=AE=E6=94=B9=E4=B8=80?= =?UTF-8?q?=E5=A4=9A=E6=96=AD=E7=82=B9=E6=A0=87=E8=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../home/src/main/ets/view/BannerView.ets | 20 +++++++++---------- .../main/ets/entryability/EntryAbility.ets | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/features/home/src/main/ets/view/BannerView.ets b/features/home/src/main/ets/view/BannerView.ets index a778418..036227b 100644 --- a/features/home/src/main/ets/view/BannerView.ets +++ b/features/home/src/main/ets/view/BannerView.ets @@ -128,28 +128,28 @@ export struct BannerView { .height(item.getBannerImg().getHeight().getValue(this.currentWidthBreakpoint)) .width('100%') // The width and height vary with the container assembly and the aspect ratio remains unchanged. - .aspectRatio(new BreakpointType(HomeConstants.BANNER_RATIOS[0], HomeConstants.BANNER_RATIOS[1], - HomeConstants.BANNER_RATIOS[2]).getValue(this.currentWidthBreakpoint)) + .aspectRatio(new BreakpointType(1.49, 1.6, + 2.1).getValue(this.currentWidthBreakpoint)) .groupDefaultFocus(index === 0 ? true : false) .focusable(true) .padding({ top: $r('app.float.banner_margin'), bottom: $r('app.float.banner_margin'), - left: this.currentWidthBreakpoint === BreakpointConstants.BREAKPOINT_SM ? $r('app.float.banner_padding_sm') : 0, - right: this.currentWidthBreakpoint === BreakpointConstants.BREAKPOINT_SM ? $r('app.float.banner_padding_sm') : 0 + left: this.currentWidthBreakpoint === 'sm' ? $r('app.float.banner_padding_sm') : 0, + right: this.currentWidthBreakpoint === 'sm' ? $r('app.float.banner_padding_sm') : 0 }) // [EndExclude jh_lazy_for_each] }, (item: Banner, index: number) => index + JSON.stringify(item)) } // [StartExclude jh_lazy_for_each] - .displayCount(this.currentWidthBreakpoint === BreakpointConstants.BREAKPOINT_SM ? 1 : HomeConstants.TWO) + .displayCount(this.currentWidthBreakpoint === 'sm' ? 1 : 2) // Interval between banner images - .itemSpace(HomeConstants.SWIPER_ITEM_SPACE) - .prevMargin(new BreakpointType($r('app.float.swiper_prev_next_margin_sm'), - $r('app.float.swiper_prev_next_margin_md'), $r('app.float.swiper_prev_next_margin_lg')) + .itemSpace('12vp') + .prevMargin(new BreakpointType("0vp", + "12vp", "64vp") .getValue(this.currentWidthBreakpoint)) - .nextMargin(new BreakpointType($r('app.float.swiper_prev_next_margin_sm'), - $r('app.float.swiper_prev_next_margin_md'), $r('app.float.swiper_prev_next_margin_lg')) + .nextMargin(new BreakpointType("0vp", + "12vp", "64vp") .getValue(this.currentWidthBreakpoint)) // [End swiper1_lazyforeach] // Setting the navigation point Style of the swiper. diff --git a/products/phone/src/main/ets/entryability/EntryAbility.ets b/products/phone/src/main/ets/entryability/EntryAbility.ets index 2953f6b..b208a06 100644 --- a/products/phone/src/main/ets/entryability/EntryAbility.ets +++ b/products/phone/src/main/ets/entryability/EntryAbility.ets @@ -80,7 +80,7 @@ export default class EntryAbility extends UIAbility { } // [End EntryAbility] - // [StartExclude EntryAbility] + // [StartExclude multi_entryAbility] onWindowStageDestroy() { // Main window is destroyed, release UI related resources hilog.info(0x0000, 'testTag', '%{public}s', 'Ability onWindowStageDestroy'); -- Gitee