From cb35f21661f41c54839bd9d762f1046fea285d34 Mon Sep 17 00:00:00 2001 From: hailin Date: Sun, 4 Jan 2026 08:18:27 -0800 Subject: [PATCH] feat(mobile-app): improve empty state display for offline settlement deduction MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When there are no settlement records to deduct, show a more informative message: - If user has balance from deposits/transfers: explain it's not from earnings - If user has no balance: explain there are no settlement records 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../pages/special_deduction_page.dart | 37 +++++++++++++++---- 1 file changed, 30 insertions(+), 7 deletions(-) diff --git a/frontend/mobile-app/lib/features/pending_actions/presentation/pages/special_deduction_page.dart b/frontend/mobile-app/lib/features/pending_actions/presentation/pages/special_deduction_page.dart index 7dc43a96..599fb181 100644 --- a/frontend/mobile-app/lib/features/pending_actions/presentation/pages/special_deduction_page.dart +++ b/frontend/mobile-app/lib/features/pending_actions/presentation/pages/special_deduction_page.dart @@ -613,13 +613,36 @@ class _SpecialDeductionPageState extends ConsumerState { color: const Color(0xFFF5F5F5), borderRadius: BorderRadius.circular(8), ), - child: const Text( - '暂无待扣减的结算记录', - textAlign: TextAlign.center, - style: TextStyle( - fontSize: 14, - color: Color(0xFF999999), - ), + child: Column( + children: [ + const Icon( + Icons.info_outline, + color: Color(0xFF999999), + size: 32, + ), + const SizedBox(height: 8), + const Text( + '暂无待扣减的结算记录', + textAlign: TextAlign.center, + style: TextStyle( + fontSize: 14, + fontWeight: FontWeight.w500, + color: Color(0xFF666666), + ), + ), + const SizedBox(height: 8), + Text( + _walletInfo != null && (_walletInfo!.balances.usdt.available) > 0 + ? '当前余额来自充值或转账,非收益结算,无需扣减' + : '该用户没有已结算的收益记录', + textAlign: TextAlign.center, + style: const TextStyle( + fontSize: 12, + color: Color(0xFF999999), + height: 1.4, + ), + ), + ], ), ), ],