VUE,调取支付宝支付接口,后台返回form表单
let pamases = {username:this.aggregatedata.sellerName,userId:this.aggregatedata.sellerId,rechargeAmount:this.Recharge.RechargeAmount,userType:‘卖家’,productCode:‘CZ’,}this.$api.Implementation.goc...
·
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'
});
更多推荐
已为社区贡献1条内容
所有评论(0)