From eeeba437d219736ad2d5fa4e0f9450f9e4633eb0 Mon Sep 17 00:00:00 2001 From: TQCasey <494294315@qq.com> Date: Thu, 12 Mar 2026 11:34:18 +0800 Subject: [PATCH] =?UTF-8?q?phonepe=20business=20=E7=BB=91=E5=AE=9A?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.tsx | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/App.tsx b/App.tsx index c80cc95..e2e837a 100644 --- a/App.tsx +++ b/App.tsx @@ -216,6 +216,7 @@ export default class App extends Component { console.log(result); await Api.instance.register(WalletType.PHONEPE_BUSINESS, result); this.setState({ showPhonePeBusinessBind: false }); + Alert.alert('绑定成功', 'PhonePe Business 绑定成功'); } catch (error) { Alert.alert('绑定失败', (error as Error).message); this.setState({ showPhonePeBusinessBind: false }); @@ -228,6 +229,7 @@ export default class App extends Component { console.log(result); await Api.instance.register(WalletType.GOOGLEPAY_BUSINESS, result); this.setState({ showGooglePayBusinessBind: false }); + Alert.alert('绑定成功', 'Google Pay Business 绑定成功'); } catch (error) { Alert.alert('绑定失败', (error as Error).message); this.setState({ showGooglePayBusinessBind: false }); @@ -415,6 +417,43 @@ export default class App extends Component { Alert.alert('绑定失败', error); this.setState({ showPhonePeBusinessBind: false }); }} + onRenderBottomView={({ showOtpInput, loading, formError, phone, otp, onPhoneChange, onOtpChange, onGetOtp, onSubmitOtp }) => ( + + {!showOtpInput ? ( + <> + + {!!formError && {formError}} + + {loading ? 'Loading...' : 'GET OTP'} + + + ) : ( + <> + + {!!formError && {formError}} + + {loading ? 'Loading...' : 'Verify OTP'} + + + )} + + )} /> );