From 2b05f779aa4fdc5ed82a5b6e18671439a0430c0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=98=E6=B5=A9=E7=A8=8B?= <798994511@qq.com> Date: Fri, 13 Jun 2025 16:53:09 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- features/fund/src/main/ets/view/TrendsPage.ets | 2 +- .../src/main/ets/view/ComparisonDetailComponent.ets | 8 +++++++- .../src/main/resources/base/element/float.json | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/features/fund/src/main/ets/view/TrendsPage.ets b/features/fund/src/main/ets/view/TrendsPage.ets index 2bf1589..dff0d8d 100644 --- a/features/fund/src/main/ets/view/TrendsPage.ets +++ b/features/fund/src/main/ets/view/TrendsPage.ets @@ -92,7 +92,7 @@ export struct TrendsPage { this.pageIndexInfos.pop(); }) } - .padding({top:30}) + .padding({top:40}) .width(CommonConstants.FULL_WIDTH_PERCENT) .justifyContent(FlexAlign.SpaceBetween) } diff --git a/features/fundComparison/src/main/ets/view/ComparisonDetailComponent.ets b/features/fundComparison/src/main/ets/view/ComparisonDetailComponent.ets index fbcc394..222a5c7 100644 --- a/features/fundComparison/src/main/ets/view/ComparisonDetailComponent.ets +++ b/features/fundComparison/src/main/ets/view/ComparisonDetailComponent.ets @@ -13,10 +13,11 @@ * limitations under the License. */ -import { CommonConstants, RouterConstants } from '@ohos/basic'; +import { CommonConstants, logger, RouterConstants } from '@ohos/basic'; import { ComparisonConstants } from '../constants/ComparisonConstants'; import { ComparisonInfo } from '../viewmodel/ComparisonInfo'; import FundComparisonViewModel from '../viewmodel/FundComparisonViewModel'; +import { display, window } from '@kit.ArkUI'; @Component export struct ComparisonDetailComponent { @@ -327,6 +328,11 @@ export struct ComparisonDetailComponent { .barWidth($r('app.float.choose_tab_width')) .layoutWeight(1) } + .onAppear(() => { + window.getLastWindow(this.getUIContext().getHostContext()).then((windowStage: window.Window) => { + windowStage.setWindowLayoutFullScreen(true); + }) + }) } @Styles diff --git a/features/fundComparison/src/main/resources/base/element/float.json b/features/fundComparison/src/main/resources/base/element/float.json index a419549..7346565 100644 --- a/features/fundComparison/src/main/resources/base/element/float.json +++ b/features/fundComparison/src/main/resources/base/element/float.json @@ -142,7 +142,7 @@ }, { "name": "title_padding_top", - "value": "4vp" + "value": "40vp" }, { "name": "fund_name_size", -- Gitee