From 78bf1d4deb9b35f1bf9803ea877eba33c02b8daf Mon Sep 17 00:00:00 2001 From: Wang YiHang <3060234389@qq.com> Date: Fri, 30 Aug 2024 10:54:21 +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 | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/src/views/market/apitype/index.vue b/src/views/market/apitype/index.vue index 3f0526e..e3cb83e 100644 --- a/src/views/market/apitype/index.vue +++ b/src/views/market/apitype/index.vue @@ -94,7 +94,6 @@ @pagination="getList" /> -
@@ -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