|
@@ -8,6 +8,7 @@ import 'package:flutter/cupertino.dart';
|
|
|
import 'package:plugin_platform/engine/toast/toast_engine.dart';
|
|
|
import 'package:plugin_platform/engine/notify/notify_engine.dart';
|
|
|
import 'package:plugin_platform/http/dio/dio_cancelable_mixin.dart';
|
|
|
+import 'package:plugin_platform/platform_export.dart';
|
|
|
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
|
|
import 'package:shared/utils/log_utils.dart';
|
|
|
import 'package:widgets/picker/date_picker_util.dart';
|
|
@@ -153,18 +154,26 @@ class ApplyViewModel extends _$ApplyViewModel with DioCancelableMixin {
|
|
|
|
|
|
/// 提交Form表单
|
|
|
void submitForm() async {
|
|
|
- final result = await _formRepository.submitForm(
|
|
|
- estateFormId: state.estateFormId,
|
|
|
- typeId: state.formType,
|
|
|
- content: state.formContentDetail,
|
|
|
- cancelToken: cancelToken,
|
|
|
- );
|
|
|
-
|
|
|
- if (result.isSuccess) {
|
|
|
- NotifyEngine.showSuccess(S.current.successful);
|
|
|
- gotoNextPage();
|
|
|
- } else {
|
|
|
- ToastEngine.show(result.errorMsg ?? "UnKnow Error");
|
|
|
- }
|
|
|
+ // final result = await _formRepository.submitForm(
|
|
|
+ // estateFormId: state.estateFormId,
|
|
|
+ // typeId: state.formType,
|
|
|
+ // content: state.formContentDetail,
|
|
|
+ // cancelToken: cancelToken,
|
|
|
+ // );
|
|
|
+ //
|
|
|
+ // if (result.isSuccess) {
|
|
|
+ // NotifyEngine.showSuccess(S.current.successful);
|
|
|
+ // gotoNextPage();
|
|
|
+ // } else {
|
|
|
+ // ToastEngine.show(result.errorMsg ?? "UnKnow Error");
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+
|
|
|
+ //TODO 测试Stripe支付
|
|
|
+ // Stripe.instance.initPaymentSheet(paymentSheetParameters: paymentSheetParameters)
|
|
|
+ // PaymentIntent pi = await Stripe.instance.confirmPayment(
|
|
|
+ // paymentIntentClientSecret: 'pi_3RNlYBRpg7SPAcNn1CwGxP7e',
|
|
|
+ // );
|
|
|
+ // Log.d("测试Stripe支付 pi:$pi");
|
|
|
}
|
|
|
}
|