feat:部门交易记录样式

This commit is contained in:
dzc committed 2025-08-29 16:16:14 +08:00
1 parent ceef83f5c9
commit 52c1c30658
5 files changed
+35 -3

No files matched your search

@@ -5,18 +5,27 @@ import 'package:pj_supermarket_cloud/sub_screen/common/index.dart';
class SubPageToool {
static void switchJump(SubScreenAction type) {
// 判断是否要跳转的页面就是当前页面
switch (type) {
case SubScreenAction.jumpSubPage:
if (SubNavigatorKey.currentRouteName == SubRouteNames.subProduct) {
return;
}
SubNavigatorKey.navigatorKey.currentState?.pushNamedAndRemoveUntil(
SubRouteNames.subProduct,
(Route<dynamic> route) => false,
);
SubNavigatorKey.currentRouteName = SubRouteNames.subProduct;
break;
case SubScreenAction.jumpSubBack:
if (SubNavigatorKey.currentRouteName == SubRouteNames.root) {
return;
}
SubNavigatorKey.navigatorKey.currentState?.pushNamedAndRemoveUntil(
SubRouteNames.root,
(Route<dynamic> route) => false,
);
SubNavigatorKey.currentRouteName = SubRouteNames.root;
break;
default:
}