84 lines
2.4 KiB
Dart
84 lines
2.4 KiB
Dart
import 'package:get/get.dart';
|
|
|
|
import 'package:pj_supermarket_cloud/common/index.dart';
|
|
import 'package:pj_supermarket_cloud/pages/index.dart';
|
|
|
|
class RoutePages {
|
|
// 列表
|
|
static List<GetPage> list = [
|
|
GetPage(
|
|
name: RouteNames.load,
|
|
page: () => const LoadPage(),
|
|
),
|
|
GetPage(
|
|
name: RouteNames.login,
|
|
page: () => const LoginPage(),
|
|
),
|
|
GetPage(
|
|
name: RouteNames.panel,
|
|
page: () => const PanelPage(),
|
|
binding: BindingsBuilder(() {
|
|
Get.lazyPut(() => PanelController());
|
|
}),
|
|
),
|
|
GetPage(
|
|
name: RouteNames.canteenProduct,
|
|
page: () => const CanteenProductPage(),
|
|
binding: BindingsBuilder(() {
|
|
Get.lazyPut(() => SelectPayTypeDialogController());
|
|
Get.lazyPut(() => CanteenProductController());
|
|
Get.lazyPut(() => PanelController());
|
|
}),
|
|
),
|
|
GetPage(
|
|
name: RouteNames.supermarketProduct,
|
|
page: () => const SupermarketOrderPage(),
|
|
binding: BindingsBuilder(() {
|
|
Get.lazyPut(() => SelectPayTypeDialogController());
|
|
Get.lazyPut(() => PanelController());
|
|
Get.lazyPut(() => SupermarketOrderController());
|
|
}),
|
|
),
|
|
GetPage(
|
|
name: RouteNames.takeFood,
|
|
page: () => const TakeFoodPage(),
|
|
binding: BindingsBuilder(() {
|
|
Get.lazyPut(() => PanelController());
|
|
Get.lazyPut(() => TakeFoodController());
|
|
}),
|
|
),
|
|
GetPage(
|
|
name: RouteNames.orderHistory,
|
|
page: () => const OrderHistoryPage(),
|
|
binding: BindingsBuilder(() {
|
|
Get.lazyPut(() => PanelController());
|
|
Get.lazyPut(() => OrderHistoryController());
|
|
}),
|
|
),
|
|
GetPage(
|
|
name: RouteNames.orderHistoryDetail,
|
|
page: () => const OrderHistoryDetailPage(),
|
|
binding: BindingsBuilder(() {
|
|
Get.lazyPut(() => OrderHistoryController());
|
|
Get.lazyPut(() => OrderHistoryDetailController());
|
|
}),
|
|
),
|
|
GetPage(
|
|
name: RouteNames.setting,
|
|
page: () => const SettingPage(),
|
|
binding: BindingsBuilder(() {
|
|
Get.lazyPut(() => PanelController());
|
|
Get.lazyPut(() => SettingController());
|
|
}),
|
|
),
|
|
GetPage(
|
|
name: RouteNames.cardActive,
|
|
page: () => const CardActivePage(),
|
|
binding: BindingsBuilder(() {
|
|
Get.lazyPut(() => SettingController());
|
|
Get.lazyPut(() => CardActiveController());
|
|
}),
|
|
),
|
|
];
|
|
}
|