初始化
parent
0515536d43
commit
78bf1d4deb
|
@ -94,7 +94,6 @@
|
||||||
@pagination="getList"
|
@pagination="getList"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div ref="alipayWap" v-html="alipay" />
|
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
|
|
||||||
|
|
||||||
|
@ -157,19 +156,11 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
gotoMaintained(customer){
|
gotoMaintained(customer){
|
||||||
// 调用支付接口
|
this.pay.subject=customer.sysIntro
|
||||||
payTwoHundred({}).then((res) => {
|
this.pay.traceNo=Math.floor(Math.random() * 900000) + 100000
|
||||||
// 渲染支付页面
|
this.pay.totalAmount=customer.sysNumber
|
||||||
this.alipay = res.data;
|
const url = `http://47.116.173.119:80/pay/alipay/pay?traceNo=${this.pay.traceNo}`;
|
||||||
// 防抖避免重复支付
|
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