VUE, the transfer of Alipay payment interface, form the background to return form

let pamases = {
username:this.aggregatedata.sellerName,
userId:this.aggregatedata.sellerId,
rechargeAmount:this.Recharge.RechargeAmount,
userType:‘卖家’,
productCode:‘CZ’,
}
this.$api.Implementation.gochana(pamases).then( res => {
// this.htmls = res;
document.querySelector(‘body’).innerHTML = res;

                            const div = document.createElement('div') // 创建div
                            div.innerHTML = res // 将返回的form 放入div
                            document.body.appendChild(div)
                            document.forms[0].submit()
                            
                         })
                        this.$message({
                        showClose: true,
                        message: '请输入正确的充值金额',
                        type: 'warning'
                        });

Guess you like

Origin blog.csdn.net/weixin_43869524/article/details/86596946