|
@@ -4,6 +4,7 @@ import 'package:domain/entity/garage_sale_rent_entity.dart';
|
|
import 'package:domain/entity/newsfeed_detail_entity.dart';
|
|
import 'package:domain/entity/newsfeed_detail_entity.dart';
|
|
import 'package:domain/entity/paid_service_detail_entity.dart';
|
|
import 'package:domain/entity/paid_service_detail_entity.dart';
|
|
import 'package:flutter/cupertino.dart';
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
+import 'package:plugin_platform/engine/loading/loading_engine.dart';
|
|
import 'package:plugin_platform/engine/toast/toast_engine.dart';
|
|
import 'package:plugin_platform/engine/toast/toast_engine.dart';
|
|
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
|
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
|
import 'package:router/ext/auto_router_extensions.dart';
|
|
import 'package:router/ext/auto_router_extensions.dart';
|
|
@@ -228,8 +229,11 @@ class ServicePaySuccessVm extends _$ServicePaySuccessVm {
|
|
if (_needShowPlaceholder) {
|
|
if (_needShowPlaceholder) {
|
|
changeLoadingState(LoadState.State_Loading, null);
|
|
changeLoadingState(LoadState.State_Loading, null);
|
|
}
|
|
}
|
|
|
|
+ // LoadingEngine.show();
|
|
|
|
+ // 延迟获取数据
|
|
|
|
+ // await Future.delayed(const Duration(milliseconds: 2000));
|
|
final result = await servicesRespositoryInstance.fetchPaidServiceCleanOrderDetail(id: id.toString());
|
|
final result = await servicesRespositoryInstance.fetchPaidServiceCleanOrderDetail(id: id.toString());
|
|
-
|
|
|
|
|
|
+ // LoadingEngine.dismiss();
|
|
if (result.isSuccess) {
|
|
if (result.isSuccess) {
|
|
state = state.copyWith(datas: result.data );
|
|
state = state.copyWith(datas: result.data );
|
|
changeLoadingState(LoadState.State_Success, null);
|
|
changeLoadingState(LoadState.State_Success, null);
|