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