initial commit to gitea
This commit is contained in:
@@ -33,6 +33,9 @@ class PaymentVerificationCodeDialogState extends State<PaymentVerificationCodeDi
|
||||
String getCodeText = '';
|
||||
String paymentCodeEncrypt = '';
|
||||
|
||||
String verifyMethod;
|
||||
String verifyName;
|
||||
|
||||
final TextEditingController _pinPutController = TextEditingController();
|
||||
final FocusNode _pinPutFocusNode = FocusNode();
|
||||
BoxDecoration get _pinPutDecoration {
|
||||
@@ -53,12 +56,15 @@ class PaymentVerificationCodeDialogState extends State<PaymentVerificationCodeDi
|
||||
Container(
|
||||
padding: EdgeInsets.only(top: 0.0, bottom: 10.0, left: 0.0, right: 0.0),
|
||||
child: Text(
|
||||
S.of(context).payment_verification_sent(Utils.safePhoneNumber(widget.user.mobile)),
|
||||
(verifyMethod != null) ? S.of(context).payment_verification_sent(
|
||||
(verifyName == 'sms') ? S.of(context).mobile : S.of(context).email,
|
||||
Utils.safePhoneNumber(verifyName)
|
||||
) : '',
|
||||
),
|
||||
),
|
||||
Container(
|
||||
padding: EdgeInsets.only(top: 0.0, bottom: 10.0, left: 0.0, right: 0.0),
|
||||
child: FlatButton(
|
||||
child: TextButton(
|
||||
child: Text(getCodeText),
|
||||
onPressed: enableGetCode ? () {
|
||||
getPaymentCode();
|
||||
@@ -146,6 +152,8 @@ class PaymentVerificationCodeDialogState extends State<PaymentVerificationCodeDi
|
||||
},
|
||||
).then((data) {
|
||||
paymentCodeEncrypt = data['payment_code_encrypt'];
|
||||
verifyMethod = data['verify_method'];
|
||||
verifyName = data['verify_name'];
|
||||
print('data: $data');
|
||||
startCountDown();
|
||||
}).catchError((error) {
|
||||
|
||||
Reference in New Issue
Block a user