diff --git a/client/lib/screens/settings/settings_screen.dart b/client/lib/screens/settings/settings_screen.dart index 6a439f9..b2f7d7d 100644 --- a/client/lib/screens/settings/settings_screen.dart +++ b/client/lib/screens/settings/settings_screen.dart @@ -78,6 +78,28 @@ class _SettingsScreenState extends ConsumerState { ], ), ), + // 退出登录(常驻底部;登出后路由 redirect 自动跳 /login) + const Divider(height: 1), + SafeArea( + top: false, + child: Padding( + padding: const EdgeInsets.fromLTRB(16, 8, 16, 12), + child: SizedBox( + width: double.infinity, + child: OutlinedButton.icon( + onPressed: () => + ref.read(authStateProvider.notifier).logout(), + icon: const Icon(Icons.logout, size: 18), + label: const Text('退出登录'), + style: OutlinedButton.styleFrom( + foregroundColor: AppTheme.danger, + side: const BorderSide(color: AppTheme.danger), + padding: const EdgeInsets.symmetric(vertical: 12), + ), + ), + ), + ), + ), ], ), ); @@ -154,6 +176,10 @@ class _SettingsScreenState extends ConsumerState { label: '负责人', value: shop.managerName.isNotEmpty ? shop.managerName : '—'), + const Divider(height: 16), + _ShopInfoRow( + label: '微信号', + value: shop.wechatId.isNotEmpty ? shop.wechatId : '—'), ], ), ), diff --git a/client/lib/screens/shell/app_shell.dart b/client/lib/screens/shell/app_shell.dart index 8a87479..a39cff4 100644 --- a/client/lib/screens/shell/app_shell.dart +++ b/client/lib/screens/shell/app_shell.dart @@ -142,6 +142,19 @@ class _AppShellState extends ConsumerState { }).toList(), ), ), + // 退出登录(抽屉底部常驻,窄屏顶栏菜单不便时也能退出) + const Divider(height: 1, color: Colors.white24), + ListTile( + leading: const Icon(Icons.logout, color: Colors.white70), + title: const Text('退出登录', + style: TextStyle( + color: Colors.white, fontWeight: FontWeight.w500)), + onTap: () { + Navigator.pop(context); // 关闭抽屉 + ref.read(authStateProvider.notifier).logout(); + context.go('/login'); + }, + ), ], ), ), diff --git a/todo/todo.html b/todo/todo.html index 37c7a69..d886036 100644 --- a/todo/todo.html +++ b/todo/todo.html @@ -223,10 +223,10 @@ ul.todo-list { list-style: none; margin: 0; padding: 0; }

酒库管理系统 — 项目 TODO

生成于 2026-06-16 · 真相源 todo/todo.json
-
49全部
+
51全部
1待开始
0开发中
-
34待验收
+
36待验收
14已验收
@@ -318,7 +318,7 @@ ul.todo-list { list-style: none; margin: 0; padding: 0; }
- 🔍 待验收 34 + 🔍 待验收 36 ▴ 收起
@@ -875,6 +875,62 @@ ul.todo-list { list-style: none; margin: 0; padding: 0; } + + + +
  • +
    + 左侧抽屉+系统设置页加退出登录按钮 +
    + 待验收 + 重要 + + + +
    +
    + + + + +
  • + +
  • +
    + 酒行信息显示微信号 +
    + 待验收 + 重要 + + + +
    +
    + + +