From 69ad996ed9582151ba35ebde561c1e9330adf291 Mon Sep 17 00:00:00 2001 From: terrfly Date: Fri, 16 Jul 2021 15:03:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E4=BB=98=E5=AE=9D=E5=AD=90=E5=95=86?= =?UTF-8?q?=E6=88=B7=20=E6=89=AB=E7=A0=81=E6=8E=88=E6=9D=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jeepay-ui-manager/src/api/manage.js | 8 +++ jeepay-ui-manager/src/main.js | 2 + .../src/views/mchApp/AlipayAuth.vue | 60 +++++++++++++++++++ .../src/views/mchApp/MchPayIfConfigList.vue | 25 +++++++- 4 files changed, 94 insertions(+), 1 deletion(-) create mode 100644 jeepay-ui-manager/src/views/mchApp/AlipayAuth.vue diff --git a/jeepay-ui-manager/src/api/manage.js b/jeepay-ui-manager/src/api/manage.js index f0bf7be..b60655b 100644 --- a/jeepay-ui-manager/src/api/manage.js +++ b/jeepay-ui-manager/src/api/manage.js @@ -291,3 +291,11 @@ export function mchNotifyResend (notifyId) { method: 'POST' }) } + +/** 查询支付宝授权地址URL **/ +export function queryAlipayIsvsubMchAuthUrl (mchAppId) { + return request.request({ + url: '/api/mch/payConfigs/alipayIsvsubMchAuthUrls/' + mchAppId, + method: 'GET' + }) +} diff --git a/jeepay-ui-manager/src/main.js b/jeepay-ui-manager/src/main.js index 04642c0..9879029 100644 --- a/jeepay-ui-manager/src/main.js +++ b/jeepay-ui-manager/src/main.js @@ -15,6 +15,7 @@ import './utils/filter' // global filter import './global.less' // global style import 'ant-design-vue/dist/antd.less' import infoBox from '@/utils/infoBox' +import VueClipboard from 'vue-clipboard2' // 复制插件 Vue.config.productionTip = false @@ -23,6 +24,7 @@ Vue.config.productionTip = false Vue.component('pro-layout', ProLayout) Vue.component('page-container', PageHeaderWrapper) Vue.component('page-header-wrapper', PageHeaderWrapper) +Vue.use(VueClipboard) // 复制插件 /** * @description 全局注册权限验证 diff --git a/jeepay-ui-manager/src/views/mchApp/AlipayAuth.vue b/jeepay-ui-manager/src/views/mchApp/AlipayAuth.vue new file mode 100644 index 0000000..b3470bf --- /dev/null +++ b/jeepay-ui-manager/src/views/mchApp/AlipayAuth.vue @@ -0,0 +1,60 @@ + + + diff --git a/jeepay-ui-manager/src/views/mchApp/MchPayIfConfigList.vue b/jeepay-ui-manager/src/views/mchApp/MchPayIfConfigList.vue index 3bb50e7..fb1a738 100644 --- a/jeepay-ui-manager/src/views/mchApp/MchPayIfConfigList.vue +++ b/jeepay-ui-manager/src/views/mchApp/MchPayIfConfigList.vue @@ -34,8 +34,11 @@
+ 扫码授权 + 填写参数 暂无操作 +
@@ -97,6 +100,9 @@ + + + @@ -108,6 +114,7 @@ import { API_URL_MCH_PAYCONFIGS_LIST, API_URL_MCH_PAYPASSAGE_LIST, req, getAvail import MchPayConfigAddOrEdit from './MchPayConfigAddOrEdit' import MchPayPassageAddOrEdit from './MchPayPassageAddOrEdit' import WxpayPayConfig from './custom/WxpayPayConfig' +import AlipayAuth from './AlipayAuth' // eslint-disable-next-line no-unused-vars const tableColumns = [ @@ -124,7 +131,8 @@ export default { JeepayTableColumns, MchPayConfigAddOrEdit, MchPayPassageAddOrEdit, - WxpayPayConfig + WxpayPayConfig, + AlipayAuth }, data () { return { @@ -202,6 +210,21 @@ export default { // 抽屉关闭 onClose () { this.visible = false + }, + + // 支付宝子商户 扫码授权 + toAlipayAuthPageFunc (record) { + if (!record) { + return + } + if (record.subMchIsvConfig === 0) { + this.$error({ + title: '提示', + content: '当前应用所属商户为特约商户,请先配置服务商支付参数!' + }) + return + } + this.$refs.alipayAuthPage.show(this.appId) } } }