<style>
</style>
<template>
  <div>
    支付宝支付
    <iframe :src="aliMsg.payData" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no"
      width="200" height="200" style="overflow: hidden">
    </iframe>
  </div>
</template>

<script>
  export default {
    components: {

    },
    data() {
      return {
        aliMsg: {
          payData: ""
        },
        isShow: true,
      };
    },
    mounted() {

    },
    created() {
      this.testALiPay();
    },
    methods: {
      testALiPay() {
        var postMsg = {
          "OrderNo": "D202303171113570001"
        };
        this.apipost(
          "GetAliPayByOrderNo_post", postMsg,
          res => {
            if (res.data.resultCode == 1) {
              this.aliMsg.payData = res.data.data.QrCode;
              // this.isShow=true;
              this.$nextTick(() => {
                // document.querySelector(".aLiForom form").setAttribute("target", "_blank");
                // document.querySelector(".aLiForom form input")[1].click();
              });
            }
          }
        );
      },
    }
  };

</script>
