diff --git a/yudao-ui-admin/src/utils/constants.js b/yudao-ui-admin/src/utils/constants.js index 70e0f5a02..a4805096d 100644 --- a/yudao-ui-admin/src/utils/constants.js +++ b/yudao-ui-admin/src/utils/constants.js @@ -180,14 +180,6 @@ export const PayDisplayModeEnum = { } } -/** - * 支付类型枚举 - */ -export const PayType = { - WECHAT: "WECHAT", - ALIPAY: "ALIPAY" -} - /** * 支付订单状态枚举 */ diff --git a/yudao-ui-admin/src/views/pay/app/components/alipayChannelForm.vue b/yudao-ui-admin/src/views/pay/app/components/alipayChannelForm.vue index 1043c414a..cb67b9d76 100644 --- a/yudao-ui-admin/src/views/pay/app/components/alipayChannelForm.vue +++ b/yudao-ui-admin/src/views/pay/app/components/alipayChannelForm.vue @@ -172,7 +172,7 @@ export default { this.formData = response.data; this.formData.config = JSON.parse(response.data.config); } - this.title = this.formData.id ? '创建支付渠道' : '编辑支付渠道' + this.title = !this.formData.id ? '创建支付渠道' : '编辑支付渠道' }).finally(() => { this.formLoading = false; }); @@ -257,12 +257,7 @@ export default { this.formData.config.rootCertContent = e.target.result } readFile.readAsText(event.file); - }, - + } } } - - diff --git a/yudao-ui-admin/src/views/pay/app/components/wechatChannelForm.vue b/yudao-ui-admin/src/views/pay/app/components/wechatChannelForm.vue deleted file mode 100644 index c3e691f9f..000000000 --- a/yudao-ui-admin/src/views/pay/app/components/wechatChannelForm.vue +++ /dev/null @@ -1,328 +0,0 @@ - - - - - - - % - - - - - - - - - - - - - {{ dict.label }} - - - - - - - {{ dict.label }} - - - - - - - - - - - - - 点击上传 - - - - - - - - - - - - - 点击上传 - - - - - - - - 点击上传 - - - - - - - - - - - - - diff --git a/yudao-ui-admin/src/views/pay/app/components/weixinChannelForm.vue b/yudao-ui-admin/src/views/pay/app/components/weixinChannelForm.vue new file mode 100644 index 000000000..00e0773b5 --- /dev/null +++ b/yudao-ui-admin/src/views/pay/app/components/weixinChannelForm.vue @@ -0,0 +1,257 @@ + + + + + + + % + + + + + + + + + + + + + {{ dict.label }} + + + + + + v2 + v3 + + + + + + + + + + + + 点击上传 + + + + + + + + + + + + + 点击上传 + + + + + + + + 点击上传 + + + + + + + + + + + + diff --git a/yudao-ui-admin/src/views/pay/app/index.vue b/yudao-ui-admin/src/views/pay/app/index.vue index 3a038f8be..be92e0dae 100644 --- a/yudao-ui-admin/src/views/pay/app/index.vue +++ b/yudao-ui-admin/src/views/pay/app/index.vue @@ -9,7 +9,7 @@ - @@ -48,60 +48,55 @@ + v-if="isChannelExists(scope.row.channelCodes, payChannelEnum.ALIPAY_APP.code)" + @click="handleChannel(scope.row, payChannelEnum.ALIPAY_APP.code)"> - + + v-if="isChannelExists(scope.row.channelCodes, payChannelEnum.ALIPAY_PC.code)" + @click="handleChannel(scope.row, payChannelEnum.ALIPAY_PC.code)"> - + + v-if="isChannelExists(scope.row.channelCodes, payChannelEnum.ALIPAY_WAP.code)" + @click="handleChannel(scope.row, payChannelEnum.ALIPAY_WAP.code)"> - + + v-if="isChannelExists(scope.row.channelCodes, payChannelEnum.ALIPAY_QR.code)" + @click="handleChannel(scope.row, payChannelEnum.ALIPAY_QR.code)"> - + + v-if="isChannelExists(scope.row.channelCodes, payChannelEnum.ALIPAY_BAR.code)" + @click="handleChannel(scope.row,payChannelEnum.ALIPAY_BAR.code)"> - + @@ -110,60 +105,55 @@ + v-if="isChannelExists(scope.row.channelCodes, payChannelEnum.WX_LITE.code)" + @click="handleChannel(scope.row, payChannelEnum.WX_LITE.code)"> - + + v-if="isChannelExists(scope.row.channelCodes, payChannelEnum.WX_PUB.code)" + @click="handleChannel(scope.row, payChannelEnum.WX_PUB.code)"> - + + v-if="isChannelExists(scope.row.channelCodes, payChannelEnum.WX_APP.code)" + @click="handleChannel(scope.row, payChannelEnum.WX_APP.code)"> - + + v-if="isChannelExists(scope.row.channelCodes, payChannelEnum.WX_NATIVE.code)" + @click="handleChannel(scope.row, payChannelEnum.WX_NATIVE.code)"> - + + v-if="isChannelExists(scope.row.channelCodes, payChannelEnum.WX_BAR.code)" + @click="handleChannel(scope.row, payChannelEnum.WX_BAR.code)"> - + @@ -191,7 +181,7 @@ - + {{ dict.label }} @@ -214,24 +204,23 @@ - - + +