From d42b99adce3456ef4b2533c94310770205255b80 Mon Sep 17 00:00:00 2001 From: liugongyu <290219706@qq.com> Date: Thu, 13 Jul 2023 10:10:27 +0800 Subject: [PATCH] 宣化聚合 通道码支付 --- config/index.js | 8 ++++---- src/api/orderPay/orderPay.js | 8 ++++++++ src/components/dynCodePay.vue | 36 +++++++++++++++++++++++++++++++----- src/components/pay.vue | 36 +++++++++++++++++++++++++++++++----- src/utils/request.js | 2 +- src/utils/utils.js | 9 ++++++--- 6 files changed, 81 insertions(+), 18 deletions(-) diff --git a/config/index.js b/config/index.js index a9addb1..5e0ea22 100644 --- a/config/index.js +++ b/config/index.js @@ -8,7 +8,7 @@ module.exports = { dev: { // Paths - assetsSubDirectory: 'static', + assetsSubDirectory: 'td', assetsPublicPath: '/', proxyTable: {}, // proxyTable: { @@ -48,11 +48,11 @@ module.exports = { build: { // Template for index.html - index: path.resolve(__dirname, '../dist/index.html'), + index: path.resolve(__dirname, '../td/td.html'), // Paths - assetsRoot: path.resolve(__dirname, '../dist'), - assetsSubDirectory: 'static', + assetsRoot: path.resolve(__dirname, '../td'), + assetsSubDirectory: 'td', assetsPublicPath: './', /** diff --git a/src/api/orderPay/orderPay.js b/src/api/orderPay/orderPay.js index c24de4b..d86187e 100644 --- a/src/api/orderPay/orderPay.js +++ b/src/api/orderPay/orderPay.js @@ -35,6 +35,14 @@ export function bankH5Pay(params) { // 农行 } +export function doPay(params) { // 支付信息获取 + return request({ + url: 'allInPay/doPay', + method: 'post', + data: params + }) +} + diff --git a/src/components/dynCodePay.vue b/src/components/dynCodePay.vue index 40f89f2..d754617 100644 --- a/src/components/dynCodePay.vue +++ b/src/components/dynCodePay.vue @@ -34,7 +34,7 @@