pay.vue
428 Bytes
<template>
<div>
{{orderCode}} <====>
{{payParams}}
</div>
</template>
<script>
const ALIPAY_DOMAIN = 'https://openapi.alipay.com/gateway.do';
export default {
name: 'PayPage',
props: ['orderCode', 'payParams'],
mounted() {
if (this.payParams) {
const url = ALIPAY_DOMAIN + '?' + this.payParams;
window.location.href = url;
}
},
methods: {}
};
</script>
<style lang="scss" scoped>
</style>