diff --git a/src/api/pay/channel/index.ts b/src/api/pay/channel/index.ts index b030357edc9a47c6208f418d725cb098ec63c0e2..0f4ff424920ce9b0c24d5287ecb2f33d2e16721a 100644 --- a/src/api/pay/channel/index.ts +++ b/src/api/pay/channel/index.ts @@ -7,7 +7,6 @@ export interface ChannelVO { status: number remark: string feeRate: number - merchantId: number appId: number createTime: Date } @@ -18,13 +17,12 @@ export const getChannelPage = (params: PageParam) => { } // 查询详情支付渠道 -export const getChannel = (merchantId: number, appId: string, code: string) => { +export const getChannel = (appId: string, code: string) => { const params = { - merchantId: merchantId, appId: appId, code: code } - return request.get({ url: '/pay/channel/get-channel', params: params }) + return request.get({ url: '/pay/channel/get', params: params }) } // 新增支付渠道 diff --git a/src/utils/constants.ts b/src/utils/constants.ts index b2914f9e2c9d7e2c19028bec403aaf4ebcb30817..3a91899a06113695f9843556e309acff9ab8b61a 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -118,6 +118,10 @@ export const PayChannelEnum = { ALIPAY_BAR: { code: 'alipay_bar', name: '支付宝条码支付' + }, + MOCK: { + code: 'mock', + name: '模拟支付' } } @@ -126,7 +130,8 @@ export const PayChannelEnum = { */ export const PayType = { WECHAT: 'WECHAT', - ALIPAY: 'ALIPAY' + ALIPAY: 'ALIPAY', + MOCK: 'MOCK' } /** diff --git a/src/views/pay/app/AppForm.vue b/src/views/pay/app/components/AppForm.vue similarity index 85% rename from src/views/pay/app/AppForm.vue rename to src/views/pay/app/components/AppForm.vue index 6b96f58f0184ab5c0611f2d05874d0bf1972a0f4..4277fb62f54f415a0a0e4ba8a50722a0d60ebbd7 100644 --- a/src/views/pay/app/AppForm.vue +++ b/src/views/pay/app/components/AppForm.vue @@ -10,16 +10,6 @@ - - - - - + diff --git a/src/views/pay/app/components/mockChannelForm.vue b/src/views/pay/app/components/mockChannelForm.vue new file mode 100644 index 0000000000000000000000000000000000000000..8de7f29f3872ef53566f440b1dda27545f0aa626 --- /dev/null +++ b/src/views/pay/app/components/mockChannelForm.vue @@ -0,0 +1,130 @@ + + diff --git a/src/views/pay/app/components/weixinChannelForm.vue b/src/views/pay/app/components/weixinChannelForm.vue new file mode 100644 index 0000000000000000000000000000000000000000..5685db838c17041b48f3f83dc270b2f12bb22195 --- /dev/null +++ b/src/views/pay/app/components/weixinChannelForm.vue @@ -0,0 +1,343 @@ + + diff --git a/src/views/pay/app/index.vue b/src/views/pay/app/index.vue index 5945c499446621d3b3891b2ff400f60bd5cfe8f4..023b13da85593cc1b05ac8f59299259a05f37fa3 100644 --- a/src/views/pay/app/index.vue +++ b/src/views/pay/app/index.vue @@ -17,15 +17,6 @@ class="!w-240px" /> - - - - 搜索 - 重置 + 搜索 + 重置 - - + + + + +