Commit 71206c68 authored by GuanHua's avatar GuanHua

feat:支付成功跳转页面

parent 9c14e9fc
...@@ -63,6 +63,25 @@ const CreditPayWay: React.FC<CreditPayWayPropsType> = (props) => { ...@@ -63,6 +63,25 @@ const CreditPayWay: React.FC<CreditPayWayPropsType> = (props) => {
if (!payPassword || payPassword.length < 6) { if (!payPassword || payPassword.length < 6) {
message.error("请输入支付密码") message.error("请输入支付密码")
} }
let param = {
id: orderId,
paymentInformationId: payInfo.paymentInformationId,
}
setConfirmLoading(true)
//@ts-ignore
PublicApi.postOrderPendingOrderPay(param).then(res => {
if (res.code === 1000) {
message.destroy()
message.success("支付成功")
history.push(`/pay/result?orderId=${orderId}`)
} else {
setConfirmLoading(false)
message.destroy()
message.error(res.message)
}
}).catch(() => {
setConfirmLoading(false)
})
} }
return ( return (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment