feat(client): 授权管理独立一级屏——授权/购买续费/订单管理三 tab(桌面+移动)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
wangjia
2026-07-11 00:24:59 +08:00
parent 9fe1e2766f
commit 22e07613a1
60 changed files with 1598 additions and 96 deletions
+8 -5
View File
@@ -58,6 +58,9 @@ const _navGroups = <_NavGroup>[
]),
_NavGroup('系统', [
_NavItem(LucideIcons.monitorSmartphone, '设备管理', 6),
// branch 10(追加在末尾,不打乱既有分支序号),显示位次按原型 shell.js
// NAVS 排在「设备管理」与「系统设置」之间。
_NavItem(LucideIcons.shield, '授权管理', 10),
_NavItem(LucideIcons.settings, '系统设置', 7),
_NavItem(LucideIcons.info, '关于我们', 8),
]),
@@ -99,7 +102,7 @@ String _mobileTitle(String loc) {
if (loc == '/settings/users') return '用户管理';
if (loc.startsWith('/settings')) return '系统设置';
if (loc.startsWith('/about')) return '关于我们';
if (loc == '/me/license') return '授权管理';
if (loc == '/me/license' || loc.startsWith('/license')) return '授权管理';
if (loc.startsWith('/me')) return '我的';
return '';
}
@@ -729,9 +732,9 @@ class _AppShellState extends ConsumerState<AppShell>
overflow: TextOverflow.ellipsis),
),
TextButton(
// 窄屏授权入口是独立屏(我的→授权管理,宽屏保持设置授权 tab
onPressed: () => context.go(
context.isMobile ? '/me/license' : '/settings?tab=license'),
// 授权管理已提升为独立一级屏:窄屏 我的→授权管理,宽屏侧边栏→授权管理
onPressed: () =>
context.go(context.isMobile ? '/me/license' : '/license'),
style:
TextButton.styleFrom(foregroundColor: AppChrome.onAccentFaint),
child: const Text('去激活'),
@@ -762,7 +765,7 @@ class _AppShellState extends ConsumerState<AppShell>
? DsBtnVariant.primary
: DsBtnVariant.danger, onPressed: () {
Navigator.pop(_);
ctx.go(ctx.isMobile ? '/me/license' : '/settings?tab=license');
ctx.go(ctx.isMobile ? '/me/license' : '/license');
}),
],
),