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 @@