From d0e2cfd225132744e03107744d57bb8f6aca8687 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E6=A2=93=E5=BD=AD?= Date: Mon, 30 Mar 2026 19:46:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E6=88=B7=E5=BE=AE=E4=BF=A1=E6=94=AF?= =?UTF-8?q?=E4=BB=98=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/match/merchant.js | 10 +++ src/views/match/shop/index.vue | 141 +++++++++++++++++++-------------- 2 files changed, 90 insertions(+), 61 deletions(-) diff --git a/src/api/match/merchant.js b/src/api/match/merchant.js index 3ad80d5..bf72856 100644 --- a/src/api/match/merchant.js +++ b/src/api/match/merchant.js @@ -26,6 +26,11 @@ export const merchantPageGet = (params) => { * @param {string} data.accountNumber - 银行账号 * @param {string} data.businessLicenseUrl - 营业执照URL * @param {string} data.contactPhone - 联系电话 + * @param {Object} [data.weChatPayConfig] - 微信支付配置 + * @param {string} data.weChatPayConfig.merchantIdValue - 微信支付商户号 + * @param {string} data.weChatPayConfig.merchantV3Secret - 微信支付APIv3密钥 + * @param {string} data.weChatPayConfig.merchantCertificateSerialNumber - 微信支付商户证书序列号 + * @param {string} data.weChatPayConfig.merchantCertificatePrivateKey - 微信支付商户私钥(PEM格式) */ export const merchantAddPost = (data) => { return http.post('/merchant/add', data); @@ -41,6 +46,11 @@ export const merchantAddPost = (data) => { * @param {string} data.businessLicenseUrl - 营业执照URL * @param {string} data.contactPhone - 联系电话 * @param {number} data.id - 商户ID + * @param {Object} [data.weChatPayConfig] - 微信支付配置 + * @param {string} data.weChatPayConfig.merchantIdValue - 微信支付商户号 + * @param {string} data.weChatPayConfig.merchantV3Secret - 微信支付APIv3密钥 + * @param {string} data.weChatPayConfig.merchantCertificateSerialNumber - 微信支付商户证书序列号 + * @param {string} data.weChatPayConfig.merchantCertificatePrivateKey - 微信支付商户私钥(PEM格式) */ export const merchantEditPut = (data) => { return http.put('/merchant/edit', data); diff --git a/src/views/match/shop/index.vue b/src/views/match/shop/index.vue index 4987855..dd7c5cb 100644 --- a/src/views/match/shop/index.vue +++ b/src/views/match/shop/index.vue @@ -28,9 +28,9 @@ - + + style="max-width: 800px;margin-bottom: 30px;" v-if="isShowDialog"> @@ -63,11 +63,32 @@ - + - - - + + + + + 微信支付配置 + + + + + + + + + + + + + + + + + + + @@ -84,7 +105,8 @@