123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136 |
- import 'package:auto_route/auto_route.dart';
- import 'package:cpt_services/modules/services/service_order_confirm/service_order_confirm_vm.dart';
- import 'package:flutter/material.dart';
- import 'package:router/ext/auto_router_extensions.dart';
- import 'package:router/path/router_path.dart';
- import '../../modules/services/repair_homeService/home_service_page.dart';
- import '../../modules/services/services_main_page.dart';
- import '../../modules/services/homeService/home_service_page.dart';
- import '../../modules/services/inProgress/in_progress_page.dart';
- import '../../modules/services/history/history_page.dart';
- import '../../modules/services/service_clean_detail/service_clean_detail_page.dart';
- import '../../modules/services/service_evaluate_create/service_evaluate_create_page.dart';
- import '../../modules/services/service_evaluate_create_success/evaluate_create_success_page.dart';
- import '../../modules/services/service_evaluate_list/service_evaluate_list_page.dart';
- import '../../modules/services/service_order_confirm/service_order_confirm_page.dart';
- import '../../modules/services/service_pay_success/service_pay_success_page.dart';
- import '../../modules/services/service_repair_detail/service_repair_detail_page.dart';
- import '../../modules/services/services_page.dart';
- import '../../modules/services/clean_order_detail/clean_order_detail_page.dart';
- import '../../modules/services/clean_order_cancel_success/clean_order_cancel_success_page.dart';
- import '../../modules/services/repair/repair_page.dart';
- import '../../modules/services/repair_history/history_page.dart';
- import '../../modules/services/repair_homeService/home_service_page.dart';
- import '../../modules/services/repair_inProgress/in_progress_page.dart';
- part 'services_page_router.gr.dart';
- /*\
- * services模块的路由
- */
- @AutoRouterConfig(replaceInRouteName: 'Page|Screen,PageRoute')
- class ServicesPageRouter extends _$ServicesPageRouter {
- @override
- List<AutoRoute> get routes => [
- CustomRoute(
- page: ServicesMainPageRoute.page,
- path: RouterPath.servicesMain,
- transitionsBuilder: applySlideTransition,
- ),
- CustomRoute(
- page: RepairPageRoute.page,
- path: RouterPath.repairServices,
- transitionsBuilder: applySlideTransition,
- children: [
- CustomRoute(
- page: RepairHomeServicePageRoute.page,
- path: RouterPath.repairServicesHomeService,
- transitionsBuilder: applySlideTransition
- ),
- CustomRoute(
- page: RepairInProgressPageRoute.page,
- path: RouterPath.repairServicesInProgress,
- transitionsBuilder: applySlideTransition,
- ),
- CustomRoute(
- page: RepairHistoryPageRoute.page,
- path: RouterPath.repairServicesHistory,
- transitionsBuilder: applySlideTransition,
- ),
- ]
- ),
- CustomRoute(
- page: ServicesPageRoute.page,
- path: RouterPath.services,
- transitionsBuilder: applySlideTransition,
- children: [
- CustomRoute(
- page: HomeServicePageRoute.page,
- path: RouterPath.servicesHomeService,
- transitionsBuilder: applySlideTransition
- ),
- CustomRoute(
- page: InProgressPageRoute.page,
- path: RouterPath.servicesInProgress,
- transitionsBuilder: applySlideTransition,
- ),
- CustomRoute(
- page: HistoryPageRoute.page,
- path: RouterPath.servicesHistory,
- transitionsBuilder: applySlideTransition,
- ),
- ]
- ),
- CustomRoute(
- page: ServiceCleanDetailPageRoute.page,
- path: "${RouterPath.servicesCleanDetail}:id/:serviceTypeCode",
- transitionsBuilder: applySlideTransition,
- ),
- CustomRoute(
- page: ServiceRepairDetailPageRoute.page,
- path: "${RouterPath.servicesRepairDetail}:id/:serviceTypeCode",
- transitionsBuilder: applySlideTransition,
- ),
- CustomRoute(
- page: ServiceOrderConfirmPageRoute.page,
- path: "${RouterPath.servicesOrderConfirm}:id/:serviceTypeCode",
- transitionsBuilder: applySlideTransition,
- ),
- CustomRoute(
- page: CleanOrderDetailPageRoute.page,
- path: "${RouterPath.servicesOrderDetail}:id/:serviceTypeCode/:serviceStatusCode",
- transitionsBuilder: applySlideTransition,
- ),
- CustomRoute(
- page: ServicePaySuccessPageRoute.page,
- path: "${RouterPath.servicesOrderPaySuccess}:id/:serviceTypeCode",
- transitionsBuilder: applySlideTransition,
- ),
- CustomRoute(
- page: CleanOrderCancelSuccessPageRoute.page,
- path: RouterPath.servicesOrderCancelSuccess,
- transitionsBuilder: applySlideTransition,
- ),
- CustomRoute(
- page: ServiceEvaluateCreatePageRoute.page,
- path: "${RouterPath.servicesEvaluateCreate}:id/:serviceTypeCode",
- transitionsBuilder: applySlideTransition,
- ),
- CustomRoute(
- page: EvaluateCreateSuccessPageRoute.page,
- path: RouterPath.servicesEvaluateCreateSuccess,
- transitionsBuilder: applySlideTransition,
- ),
- CustomRoute(
- page: ServiceEvaluateListPageRoute.page,
- path: "${RouterPath.servicesEvaluateList}:id/:serviceTypeCode",
- transitionsBuilder: applySlideTransition,
- ),
- ];
- }
|