From 73f2b85ddf49bf8942ecb96a3ab3d3977aaf7f63 Mon Sep 17 00:00:00 2001 From: hailin Date: Fri, 26 Dec 2025 00:09:39 -0800 Subject: [PATCH] =?UTF-8?q?fix(mobile-app):=20=E9=A6=96=E6=AC=A1=E6=A3=80?= =?UTF-8?q?=E6=9F=A5=E4=B9=9F=E5=8A=A0=E5=85=A5=E8=B7=AF=E7=94=B1=E5=88=A4?= =?UTF-8?q?=E6=96=AD=EF=BC=8C=E9=81=BF=E5=85=8D=E5=9C=A8KYC=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit _checkContractsAndKyc() 方法之前没有调用 _shouldSkipContractCheck(), 导致用户在合同/KYC页面时首次检查仍会弹窗。 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../home/presentation/pages/home_shell_page.dart | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/frontend/mobile-app/lib/features/home/presentation/pages/home_shell_page.dart b/frontend/mobile-app/lib/features/home/presentation/pages/home_shell_page.dart index 7953ff74..045edca3 100644 --- a/frontend/mobile-app/lib/features/home/presentation/pages/home_shell_page.dart +++ b/frontend/mobile-app/lib/features/home/presentation/pages/home_shell_page.dart @@ -173,12 +173,24 @@ class _HomeShellPageState extends ConsumerState if (_hasCheckedContracts) return; _hasCheckedContracts = true; + // 如果用户已在合同/KYC页面,跳过检查 + if (_shouldSkipContractCheck()) { + debugPrint('[HomeShellPage] 首次检查:用户在合同/KYC/升级页面,跳过'); + return; + } + try { final contractCheckService = ref.read(contractCheckServiceProvider); final result = await contractCheckService.checkAll(); if (!mounted) return; + // 再次检查,防止在请求期间用户进入了相关页面 + if (_shouldSkipContractCheck()) { + debugPrint('[HomeShellPage] 首次检查:用户已进入合同/KYC/升级页面,跳过弹窗'); + return; + } + // 1. 优先处理待签署合同 if (result.hasPendingContracts) { // 有待签署合同,跳转到待签署列表页面