From 3b089e2205b6e9b92ab5852fc73f855dfb1dfd9d Mon Sep 17 00:00:00 2001 From: jingyun <> Date: Mon, 7 Sep 2026 15:47:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AF=B9=E9=BD=90=E5=B8=B8=E9=A9=BB?= =?UTF-8?q?=E5=95=86=E5=9F=8E=E4=B8=8E=E4=B8=83=E9=B1=BC=E5=AE=A2=E6=9C=8D?= =?UTF-8?q?=E4=BA=A4=E4=BA=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 同步商城 H5 登录态与原生 token - 完善商城/原生 tab 切换、动画及返回交互 - 修复七鱼客服键盘避让和状态栏恢复 - 调整开屏跳过按钮与登录入口交互 --- android/app/src/main/AndroidManifest.xml | 13 + .../kotlin/com/jinzhi/app/MainActivity.kt | 152 +++ .../src/main/res/xml/web_capture_paths.xml | 4 + ios/Runner/Info.plist | 4 + lib/app/app.dart | 10 +- lib/common/router/tab_shell.dart | 985 +++++++++++++----- lib/common/services/cache_clear_service.dart | 2 + lib/common/theme/app_icons.dart | 184 ++++ lib/common/util/app_link_util.dart | 60 ++ .../ad_config_foreground_refresher.dart | 16 +- lib/features/ads/data/ads_api_client.dart | 3 +- .../ads/presentation/splash_ad_dialog.dart | 26 +- .../auth/application/auth_controller.dart | 13 +- lib/features/auth/data/auth_api.dart | 137 +++ .../auth/presentation/login_page.dart | 18 - .../application/mall_entry_controller.dart | 60 ++ .../mall/application/mall_tab_config.dart | 59 +- lib/features/mall/data/mall_auth_api.dart | 45 + .../web/application/mall_bridge_state.dart | 67 ++ .../application/mall_web_host_controller.dart | 125 ++- .../web/application/web_back_navigation.dart | 53 + .../application/web_navigation_policy.dart | 38 + .../web/application/web_reload_providers.dart | 28 + lib/features/web/presentation/js_api.dart | 87 ++ .../web/presentation/js_api_result.dart | 19 + .../web/presentation/mall_web_host.dart | 751 +++++++++++-- pubspec.lock | 18 +- pubspec.yaml | 3 + test/features/ads/proto_message_test.dart | 13 + .../mall/mall_bridge_arguments_test.dart | 34 + test/features/mall/mall_tab_config_test.dart | 44 + test/features/web/js_api_test.dart | 39 + test/features/web/mall_bridge_state_test.dart | 54 + .../web/mall_web_host_controller_test.dart | 62 ++ test/features/web/mall_web_host_test.dart | 62 ++ .../web/web_back_navigation_test.dart | 25 + .../web/web_navigation_policy_test.dart | 32 + 37 files changed, 2970 insertions(+), 375 deletions(-) create mode 100644 android/app/src/main/res/xml/web_capture_paths.xml create mode 100644 lib/common/util/app_link_util.dart create mode 100644 lib/features/auth/data/auth_api.dart create mode 100644 lib/features/mall/application/mall_entry_controller.dart create mode 100644 lib/features/mall/data/mall_auth_api.dart create mode 100644 lib/features/web/application/mall_bridge_state.dart create mode 100644 lib/features/web/application/web_back_navigation.dart create mode 100644 lib/features/web/application/web_navigation_policy.dart create mode 100644 lib/features/web/application/web_reload_providers.dart create mode 100644 lib/features/web/presentation/js_api.dart create mode 100644 lib/features/web/presentation/js_api_result.dart create mode 100644 test/features/ads/proto_message_test.dart create mode 100644 test/features/mall/mall_bridge_arguments_test.dart create mode 100644 test/features/mall/mall_tab_config_test.dart create mode 100644 test/features/web/js_api_test.dart create mode 100644 test/features/web/mall_bridge_state_test.dart create mode 100644 test/features/web/mall_web_host_controller_test.dart create mode 100644 test/features/web/mall_web_host_test.dart create mode 100644 test/features/web/web_back_navigation_test.dart create mode 100644 test/features/web/web_navigation_policy_test.dart diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 2a1a4ce..437fb75 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -3,6 +3,9 @@ + + + + + + +