From 75842cb2e5125a0eae3e8b9f08f0c8ddf677f4bb Mon Sep 17 00:00:00 2001 From: Wang YiHang <3060234389@qq.com> Date: Thu, 29 Aug 2024 19:01:48 +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/api/market/apitype.js | 6 ++---- src/views/market/apitype/index.vue | 5 +++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/api/market/apitype.js b/src/api/market/apitype.js index abde359..9724d89 100644 --- a/src/api/market/apitype.js +++ b/src/api/market/apitype.js @@ -1,11 +1,9 @@ import request from '@/utils/request' -export function pay(query) { +export function pay(query1, query2,query3) { return request({ - url: '/pay/alipay/pay', - method: 'post', - params: query + url: 'http://10.0.2.1:81/alipay/pay?subject='+query1+'&traceNo='+query2+'&totalAmount='+query3 }) } // 查询接口列表 diff --git a/src/views/market/apitype/index.vue b/src/views/market/apitype/index.vue index 739a775..8936e65 100644 --- a/src/views/market/apitype/index.vue +++ b/src/views/market/apitype/index.vue @@ -158,8 +158,9 @@ export default { this.pay.subject=customer.sysIntro this.pay.traceNo=Math.floor(Math.random() * 900000) + 100000 this.pay.totalAmount=customer.sysNumber - const url = `http://10.0.2.1:81/alipay/pay?subject=${this.pay.subject}&traceNo=${this.pay.traceNo}&totalAmount=${this.pay.totalAmount}`; - window.open(url, '_self'); // 如果您想在当前页面加载新 URL,这样是正确的 + pay(this.pay.subject,this.pay.traceNo,this.pay.totalAmount).then(response=>{ + console.log(response) + }) }, getType(activeNameL){ this.activeNameL=activeNameL