画家海外支付支付完成后的状态修改

This commit is contained in:
常东方 2025-06-04 12:02:39 +08:00
parent d8f60b1d88
commit 20c5925a7a
3 changed files with 19 additions and 2 deletions

View File

@ -72,11 +72,20 @@ const abroadPay=async ()=>{
const res=await abroadCreateOrder({ const res=await abroadCreateOrder({
QrUid:route.query.qrUid QrUid:route.query.qrUid
}); });
if(res.status===0){
if(res.status===0 && res.data){
console.log(res);
codePKey.value = res.data.checkoutSessionUrl; codePKey.value = res.data.checkoutSessionUrl;
codePayUid.value = res.data.payUid; codePayUid.value = res.data.payUid;
window.location.href = res.data.checkoutSessionUrl; window.location.href = res.data.checkoutSessionUrl;
}else if(res.status===1 && res.data===null){
router.push({
path:"/overseasCode/payment/result",
query:{
qrUid:route.query.qrUid
}
})
} }
} }

View File

@ -17,7 +17,7 @@ const resData = ref({});
const statusLabel = { const statusLabel = {
1: t("payment.text3"), 1: t("payment.text4"),
2: t("payment.text2"), 2: t("payment.text2"),
3: t("payment.text4"), 3: t("payment.text4"),
4: t("payment.text5"), 4: t("payment.text5"),
@ -25,6 +25,7 @@ const statusLabel = {
const goHome = () => { const goHome = () => {
router.push("/"); router.push("/");
}; };
// overseasCode/payment/result
</script> </script>
<template> <template>

7
env/.env copy.prod vendored Normal file
View File

@ -0,0 +1,7 @@
# 生产环境配置
NUXT_PUBLIC_API_BASE=https://auction.szjixun.cn
NUXT_PUBLIC_SOCKET_URL=wss://auction.szjixun.cn
NUXT_API_SECRET=prod-secret
NUXT_PUBLIC_PKEY=pk_live_51QfbSAAB1Vm8VfJqEVY2uFHPn9N4sDbOaCzht8IVKoylYBrYvdUsmsnCzGxIoN9skBCvI5PsxLJcf4PlytXIr1aX00mFJBXSB8
NUXT_PUBLIC_ABROAD_API_BASE=https://erpapi.fontree.cn