This commit is contained in:
xingyy 2025-02-26 15:12:29 +08:00
parent 9ccc2318ac
commit 56f5622846
2 changed files with 25 additions and 0 deletions

View 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>

View File

@ -10,6 +10,7 @@ const payStatus=ref(0)
definePageMeta({
i18n: 'payment.title'
})
const router=useRouter()
const changePayStatus=()=>{
payStatus.value=payStatus.value===0?1:0
}
@ -36,6 +37,12 @@ const confirmPay=async ()=>{
testReturnEndPoint:'/payment/result'
})
if (res.status===0){
/* router.push({
path:'/externallinks',
query:{
url:res.data.checkoutSessionUrl
}
})*/
window.location.href=res.data.checkoutSessionUrl
}
}