修改提取IP接口里的callPublic调用 & 修复余额支付已完成的状态 & 手机端点击支付增加新窗口
This commit is contained in:
@@ -12,10 +12,13 @@ export function MobilePayment(props: PaymentModalProps) {
|
||||
const [paymentInitiated, setPaymentInitiated] = useState(false) // 是否已发起支付
|
||||
|
||||
// 处理确认支付
|
||||
const handleConfirmPayment = async () => {
|
||||
const handleConfirmPayment = () => {
|
||||
try {
|
||||
// 在新窗口打开支付链接
|
||||
window.location.href = props.pay_url
|
||||
const newWindow = window.open(props.pay_url, '_blank')
|
||||
if (!newWindow) {
|
||||
toast.error('请允许弹出窗口以完成支付')
|
||||
return
|
||||
}
|
||||
setPaymentInitiated(true)
|
||||
}
|
||||
catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user