From 00172f75e7e664a91cb4c1dbae9fa8f93e8b161f Mon Sep 17 00:00:00 2001 From: gyq <875626088@qq.com> Date: Thu, 19 Dec 2024 13:46:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=94=AF=E4=BB=98=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E6=8C=82=E8=B4=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 +- src/api/pay.js | 26 ++++++ src/components/payCard/payCard.vue | 142 ++++++++++++++++++++++++++++- 3 files changed, 165 insertions(+), 7 deletions(-) diff --git a/.env.development b/.env.development index e2c3392..55ea4fd 100644 --- a/.env.development +++ b/.env.development @@ -29,7 +29,7 @@ VITE_API_KP_URL = 'https://invoice.sxczgkj.cn/api' # VITE_API_URL = 'http://192.168.1.34:10589/cashier-client' # 测试 -# VITE_API_URL = 'https://cashier-client.sxczgkj.cn/cashier-client' +VITE_API_URL = 'https://cashier-client.sxczgkj.cn/cashier-client' # 预发布 # VITE_API_URL = 'https://pre-cashierclient.sxczgkj.cn/cashier-client' @@ -38,4 +38,4 @@ VITE_API_KP_URL = 'https://invoice.sxczgkj.cn/api' # VITE_API_URL = 'https://36z1017t45.goho.co/cashier-client' # 正式 -VITE_API_URL = 'https://cashierclient.sxczgkj.cn/cashier-client' \ No newline at end of file +# VITE_API_URL = 'https://cashierclient.sxczgkj.cn/cashier-client' \ No newline at end of file diff --git a/src/api/pay.js b/src/api/pay.js index c66e5be..ce60871 100644 --- a/src/api/pay.js +++ b/src/api/pay.js @@ -142,3 +142,29 @@ export function vipPay(data) { data, }); } + +/** + * 挂账人-分页 + * @param {*} params + * @returns + */ +export function buyerPage(params) { + return request({ + method: "get", + url: "/credit/buyer/page", + params, + }); +} + +/** + * 挂账支付 + * @param {*} data + * @returns + */ +export function payCreditPay(data) { + return request({ + method: "post", + url: "/pay/creditPay", + data, + }); +} diff --git a/src/components/payCard/payCard.vue b/src/components/payCard/payCard.vue index 25d1e54..d26b1ad 100644 --- a/src/components/payCard/payCard.vue +++ b/src/components/payCard/payCard.vue @@ -25,6 +25,16 @@ {{ item.payName }} +