123
This commit is contained in:
parent
9ccc2318ac
commit
56f5622846
18
app/pages/externallinks/index.vue
Normal file
18
app/pages/externallinks/index.vue
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<script setup>
|
||||||
|
definePageMeta({
|
||||||
|
layout: 'default',
|
||||||
|
i18n: 'menu.profile',
|
||||||
|
})
|
||||||
|
const route = useRoute()
|
||||||
|
const url=route.query.url??''
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<iframe :src="url"></iframe>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
|
||||||
|
</style>
|
@ -10,6 +10,7 @@ const payStatus=ref(0)
|
|||||||
definePageMeta({
|
definePageMeta({
|
||||||
i18n: 'payment.title'
|
i18n: 'payment.title'
|
||||||
})
|
})
|
||||||
|
const router=useRouter()
|
||||||
const changePayStatus=()=>{
|
const changePayStatus=()=>{
|
||||||
payStatus.value=payStatus.value===0?1:0
|
payStatus.value=payStatus.value===0?1:0
|
||||||
}
|
}
|
||||||
@ -36,6 +37,12 @@ const confirmPay=async ()=>{
|
|||||||
testReturnEndPoint:'/payment/result'
|
testReturnEndPoint:'/payment/result'
|
||||||
})
|
})
|
||||||
if (res.status===0){
|
if (res.status===0){
|
||||||
|
/* router.push({
|
||||||
|
path:'/externallinks',
|
||||||
|
query:{
|
||||||
|
url:res.data.checkoutSessionUrl
|
||||||
|
}
|
||||||
|
})*/
|
||||||
window.location.href=res.data.checkoutSessionUrl
|
window.location.href=res.data.checkoutSessionUrl
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user