pay.vue 435 Bytes
<template>
<div>
{{orderCode}} <====>
  {{payParams}}
</div>
</template>

<script>

const ALIPAY_DOMAIN = 'https://mapi.alipay.com/gateway.do';

export default {
  name: 'PayPage',
  props: ['orderCode', 'payParams'],
  mounted() {
    if (this.payParams) {
      const url = ALIPAY_DOMAIN + '?' + encodeURIComponent(this.payParams);

      console.log(url);
    }
  },
  methods: {}
};
</script>

<style lang="scss" scoped>

</style>