diff --git a/src/views/agent/payList.vue b/src/views/agent/payList.vue index 2b56944..5cc2116 100644 --- a/src/views/agent/payList.vue +++ b/src/views/agent/payList.vue @@ -43,7 +43,7 @@ - 设置 + 设置 @@ -87,7 +87,7 @@ - 设置 + 设置 @@ -128,7 +128,7 @@ - 设置 + 设置 @@ -170,7 +170,7 @@ - 设置 + 设置 @@ -211,7 +211,7 @@ - 设置 + 设置 @@ -224,9 +224,10 @@ + @close="handleClose" @dialogVisibleChange="dialogVisibleChange" :confirmText="addPayconfirmText" width="700px"> + 前期准备事项 @@ -238,7 +239,7 @@ - + 前期准备事项 @@ -253,30 +254,75 @@ 请输入公司简称,便于您区分账号所属公司 - + 微信支付平台>账户中心>商户信息>微信支付商户号 - + - 微信支付平台>账号中心>账户设置>API安全>APIv2密钥;注意,支付密钥不能设置为纯数字 - + 微信支付平台>账号中心>账户设置>API安全>APIv2密钥;注意,支付密钥不能设置为纯数字 + 公众平台>设置与开发>基本配置>公众号开发信息>开发者ID(APPID) - + + + + + + + + 请输入公司简称,便于您区分账号所属公司 + + + + 仅支持已签约 “当面付” 功能的公司支付宝 + + + + + + + 须知 + 使用平台“支付宝支付”,平台收取5%的服务费 + 使用平台“支付宝支付”,真实姓名必须和支付宝账号实名认证姓名统一 + + + + 请输入支付宝绑定的银行卡的持卡人姓名 + + + + 请输入有效账号 + + + + + + + + + + 前期准备事项 + 主账号登录并授权。去授权 + 如未购买"快乐帮手"服务或已过期,会跳转到购买服务页面。 + 授权成功后会进入"快乐帮手"烽火台,复制右上角名称填入下方保存。 + + + + + + + + @@ -326,6 +372,20 @@ export default { addPayType: '', addPayconfirmText: '确定', taobaoAuthUrl: '', + + company_short_name: '', + mch_id: '', + apiv2: '', + appid: '', + + alipay_account: '', + isExistSelfSupplys: false, + receive_payment_account: '', + receive_payment_name: '', + isPayPublic: '0', + + pddAuthUrl: '', + pdd_shop_name: '', } }, computed: { @@ -349,6 +409,8 @@ export default { this.$nextTick(() => { this.addablePays = response.data this.taobaoAuthUrl = response.data[0].authurl + this.isExistSelfSupplys = response.data[3].is_exist_self_supplys + this.pddAuthUrl = response.data[11].authurl }) }).catch(error => { console.error(error, 'error') @@ -429,7 +491,88 @@ export default { addPayment() { if (this.addPayType == 0) { window.open(this.taobaoAuthUrl, '_blank'); + + } else if (this.addPayType == 2) { + this.$http('POST', '/agentnew/ajax_add_weixinpay', { + company_short_name: this.company_short_name, + mch_id: this.mch_id, + apiv2: this.apiv2, + appid: this.appid + }, { + headers: { + 'Auth': this.token + } + }).then(response => { + this.$nextTick(() => { + if (response.status) { + this.$Message.success(response.info); + this.getPayList(); + } else { + this.$Message.error(response.info); + } + }) + }).catch(error => { + console.error(error, 'error') + }) + + } else if (this.addPayType == 3) { + this.$http('POST', '/agentnew/ajax_add_alipay', { + company_short_name: this.company_short_name, + alipay_account: this.alipay_account, + is_pay_public: this.isPayPublic, + receive_payment_account: this.receive_payment_account, + receive_payment_name: this.receive_payment_name + }, { + headers: { + 'Auth': this.token + } + }).then(response => { + this.$nextTick(() => { + if (response.status) { + if (this.isPayPublic == 1) { + this.$Message.success(response.info); + this.getPayList(); + this.receive_payment_account = '' + this.receive_payment_name = '' + } else { + window.open(response.data.authurl, '_blank'); + } + + } else { + this.$Message.error(response.info); + } + }) + }).catch(error => { + console.error(error, 'error') + }) + } else if (this.addPayType == 11) { + this.$http('POST', '/agentnew/ajax_add_pddpay', { + shop_name: this.pdd_shop_name, + }, { + headers: { + 'Auth': this.token + } + }).then(response => { + this.$nextTick(() => { + if (response.status) { + if (this.isPayPublic == 1) { + this.$Message.success(response.info); + this.getPayList(); + this.receive_payment_account = '' + this.receive_payment_name = '' + } else { + window.open(response.data.authurl, '_blank'); + } + + } else { + this.$Message.error(response.info); + } + }) + }).catch(error => { + console.error(error, 'error') + }) } + this.addPayDialogVisible = false; }, // 取消按钮事件 @@ -445,6 +588,9 @@ export default { console.log(data, 'data098908090'); }, // 弹框相关方法---end + handleClick(tab, event) { + console.log(tab, event); + } }, }; @@ -483,6 +629,15 @@ export default { color:#FF4D4F !important; } +.gray { + color:#8A9099 !important; +} + +a { + text-decoration: none; + color: #006AFF; +} + .el-table { min-height: auto !important; }
注意,支付密钥不能设置为纯数字
使用平台“支付宝支付”,平台收取5%的服务费
使用平台“支付宝支付”,真实姓名必须和支付宝账号实名认证姓名统一
主账号登录并授权。去授权
如未购买"快乐帮手"服务或已过期,会跳转到购买服务页面。
授权成功后会进入"快乐帮手"烽火台,复制右上角名称填入下方保存。