初始化
parent
47aad76274
commit
0515536d43
|
@ -93,6 +93,8 @@
|
||||||
:limit.sync="queryParams.pageSize"
|
:limit.sync="queryParams.pageSize"
|
||||||
@pagination="getList"
|
@pagination="getList"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<div ref="alipayWap" v-html="alipay" />
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
|
|
||||||
|
|
||||||
|
@ -155,11 +157,19 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
gotoMaintained(customer){
|
gotoMaintained(customer){
|
||||||
this.pay.subject=customer.sysIntro
|
// 调用支付接口
|
||||||
this.pay.traceNo=Math.floor(Math.random() * 900000) + 100000
|
payTwoHundred({}).then((res) => {
|
||||||
this.pay.totalAmount=customer.sysNumber
|
// 渲染支付页面
|
||||||
const url = `http://47.116.173.119:80/alipay/pay?subject=${this.pay.subject}&traceNo=${this.pay.traceNo}&totalAmount=${this.pay.totalAmount}`;
|
this.alipay = res.data;
|
||||||
window.open(url, '_self'); // 如果您想在当前页面加载新 URL,这样是正确的
|
// 防抖避免重复支付
|
||||||
|
this.$nextTick(() => {
|
||||||
|
// 提交支付表单
|
||||||
|
this.$refs.alipayWap.children[0].submit();
|
||||||
|
setTimeout(() => {
|
||||||
|
// this.toPayFlag = false;
|
||||||
|
}, 500);
|
||||||
|
});
|
||||||
|
})
|
||||||
},
|
},
|
||||||
getType(activeNameL){
|
getType(activeNameL){
|
||||||
this.activeNameL=activeNameL
|
this.activeNameL=activeNameL
|
||||||
|
|
Loading…
Reference in New Issue