From 0515536d4379fb5146551d16cf47b323f8557425 Mon Sep 17 00:00:00 2001 From: Wang YiHang <3060234389@qq.com> Date: Fri, 30 Aug 2024 08:59:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/market/apitype/index.vue | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/views/market/apitype/index.vue b/src/views/market/apitype/index.vue index 4aaea3f..3f0526e 100644 --- a/src/views/market/apitype/index.vue +++ b/src/views/market/apitype/index.vue @@ -93,6 +93,8 @@ :limit.sync="queryParams.pageSize" @pagination="getList" /> + +
@@ -155,11 +157,19 @@ export default { }, methods: { gotoMaintained(customer){ - 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/alipay/pay?subject=${this.pay.subject}&traceNo=${this.pay.traceNo}&totalAmount=${this.pay.totalAmount}`; - window.open(url, '_self'); // 如果您想在当前页面加载新 URL,这样是正确的 + // 调用支付接口 + payTwoHundred({}).then((res) => { + // 渲染支付页面 + this.alipay = res.data; + // 防抖避免重复支付 + this.$nextTick(() => { + // 提交支付表单 + this.$refs.alipayWap.children[0].submit(); + setTimeout(() => { + // this.toPayFlag = false; + }, 500); + }); + }) }, getType(activeNameL){ this.activeNameL=activeNameL