画家海外支付支付完成后的状态修改
This commit is contained in:
parent
d8f60b1d88
commit
20c5925a7a
@ -72,11 +72,20 @@ const abroadPay=async ()=>{
|
||||
const res=await abroadCreateOrder({
|
||||
QrUid:route.query.qrUid
|
||||
});
|
||||
if(res.status===0){
|
||||
|
||||
if(res.status===0 && res.data){
|
||||
console.log(res);
|
||||
|
||||
codePKey.value = res.data.checkoutSessionUrl;
|
||||
codePayUid.value = res.data.payUid;
|
||||
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
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -17,7 +17,7 @@ const resData = ref({});
|
||||
|
||||
|
||||
const statusLabel = {
|
||||
1: t("payment.text3"),
|
||||
1: t("payment.text4"),
|
||||
2: t("payment.text2"),
|
||||
3: t("payment.text4"),
|
||||
4: t("payment.text5"),
|
||||
@ -25,6 +25,7 @@ const statusLabel = {
|
||||
const goHome = () => {
|
||||
router.push("/");
|
||||
};
|
||||
// overseasCode/payment/result
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
7
env/.env copy.prod
vendored
Normal file
7
env/.env copy.prod
vendored
Normal 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
|
Loading…
Reference in New Issue
Block a user