From 0a9365d23f347754ca2516f10e6b2253826913d2 Mon Sep 17 00:00:00 2001 From: WX1379483 Date: Fri, 16 May 2025 09:19:22 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=E5=BA=9F=E5=BC=83API=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=EF=BC=8C=E6=B7=BB=E5=8A=A0=E4=BB=A3=E7=A0=81=E6=A0=87?= =?UTF-8?q?=E8=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/pages/Index.ets | 2 ++ entry/src/main/ets/pages/OriginPage.ets | 6 +++--- entry/src/main/module.json5 | 4 +++- entry/src/main/resources/rawfile/index_en.html | 2 ++ 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/entry/src/main/ets/pages/Index.ets b/entry/src/main/ets/pages/Index.ets index 27770c5..5cbafbe 100644 --- a/entry/src/main/ets/pages/Index.ets +++ b/entry/src/main/ets/pages/Index.ets @@ -134,6 +134,7 @@ struct Index { } build() { + // [Start navigation] Navigation(this.navPathStack) { Column() { Web({ @@ -149,6 +150,7 @@ struct Index { }) } } + // [End navigation] .hideTitleBar(true) .navDestination(this.PageMap) .mode(NavigationMode.Stack) diff --git a/entry/src/main/ets/pages/OriginPage.ets b/entry/src/main/ets/pages/OriginPage.ets index e16de57..6744601 100644 --- a/entry/src/main/ets/pages/OriginPage.ets +++ b/entry/src/main/ets/pages/OriginPage.ets @@ -23,9 +23,9 @@ export struct OriginPage { build() { NavDestination() { Column() { - Button($r('app.string.back_to_web_page')) - .width(Constants.FULL_SCREEN) - .height($r('app.float.button_height')) + Button('return to the web page') + .width('100%') + .height(40) .onClick(() => { this.navPathStack.pop(); }) diff --git a/entry/src/main/module.json5 b/entry/src/main/module.json5 index 589e929..07b2fc3 100644 --- a/entry/src/main/module.json5 +++ b/entry/src/main/module.json5 @@ -58,8 +58,10 @@ ], } ], + // [Start query_scheme] "querySchemes": [ "app1Scheme" - ] + ], + // [End query_scheme] } } \ No newline at end of file diff --git a/entry/src/main/resources/rawfile/index_en.html b/entry/src/main/resources/rawfile/index_en.html index f5969d8..cd0bccf 100644 --- a/entry/src/main/resources/rawfile/index_en.html +++ b/entry/src/main/resources/rawfile/index_en.html @@ -12,7 +12,9 @@
web and application jump and pull up