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