job_service_impl.dart 787 B

1234567891011121314151617181920212223242526272829303132333435
  1. import 'package:cpt_job/modules/job_list/job_list_page.dart';
  2. import 'package:plugin_basic/basic_export.dart';
  3. import 'package:router/componentRouter/job_service.dart';
  4. import 'package:shared/utils/log_utils.dart';
  5. import '../modules/sign_in_sign_out/sign_in_sign_out_page.dart';
  6. class JobServiceImpl extends GetxService implements JobService {
  7. @override
  8. void onInit() {
  9. super.onInit();
  10. //初始化资源
  11. Log.d("JobServiceImpl 初始化资源");
  12. }
  13. @override
  14. void onClose() {
  15. super.onClose();
  16. //销毁资源
  17. Log.d("JobServiceImpl 销毁资源");
  18. }
  19. // 启动签到签出页面
  20. @override
  21. void startSignInSignOutPage() {
  22. SignInSignOutPage.startInstance();
  23. }
  24. @override
  25. void startJobListPage() {
  26. JobListPage.startInstance();
  27. }
  28. }