From 1cc7c94fd85ef742eccf7e84fc4d8cf3ef67e26e Mon Sep 17 00:00:00 2001 From: longchao <588888888@qq.com> Date: Mon, 10 Nov 2025 18:29:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E4=BB=98=E7=9B=B8=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/SetAliPay.vue | 497 +++++++++++++++++++++++++++++++++++++++++++ src/components/addPay.vue | 30 +-- src/views/HosInformation.vue | 30 ++- src/views/paymentMethod.vue | 8 +- 4 files changed, 541 insertions(+), 24 deletions(-) create mode 100644 src/components/SetAliPay.vue diff --git a/src/components/SetAliPay.vue b/src/components/SetAliPay.vue new file mode 100644 index 0000000..58bb022 --- /dev/null +++ b/src/components/SetAliPay.vue @@ -0,0 +1,497 @@ + + + \ No newline at end of file diff --git a/src/components/addPay.vue b/src/components/addPay.vue index 105df28..58bb022 100644 --- a/src/components/addPay.vue +++ b/src/components/addPay.vue @@ -16,7 +16,7 @@

如未购买"快乐帮手"服务或已过期,会跳转到购买服务页面

- + @@ -145,7 +145,7 @@ export default { // 拼多多授权url pddAuthUrl: { type: String, - default: '' + default: '' }, // 京东授权url jdAuthUrl: { @@ -183,7 +183,7 @@ export default { payTypeAlipay: PAY_TYPE_ALIPAY, payTypeJingdong: PAY_TYPE_JINGDONG, payTypePdd: PAY_TYPE_PDD, - + paytypeDesc: { payTypeTaoBao: '淘宝/天猫店铺', payTypeWeixin: '微信收款', @@ -198,15 +198,15 @@ export default { // 添加收款方式弹框 addPayDialogVisible: false, // 控制是否显示取消按钮 - showCancelButton: true, + showCancelButton: true, // 控制是否显示关闭按钮 - showCloseButton: true, + showCloseButton: true, // 添加收款方式弹框标题 addPayTitle: '', - + // 添加收款方式确认按钮文本 addPayconfirmText: '确定', - + // 公司简称 company_short_name: '', // 商户号 @@ -292,7 +292,7 @@ export default { addPayment() { if (this.addPayType == PAY_TYPE_TAOBAO) { window.open(this.taobaoAuthUrl, '_blank'); - + } else if (this.addPayType == PAY_TYPE_WEIXIN) { this.$http('POST', '/agentnew/ajax_add_weixinpay', { company_short_name: this.company_short_name, @@ -304,7 +304,7 @@ export default { if (response.status) { this.init(response.data); this.$Message.success(response.info); - + } else { this.$Message.error(response.info); } @@ -332,7 +332,7 @@ export default { if (response.code == 0) { if (!response.data.auth_url) { this.$Message.success(response.msg); - } else { + } else { window.open(response.data.auth_url, '_blank'); } } else { @@ -346,8 +346,8 @@ export default { } }); if (!falseFlag) return; - - } else if (this.addPayType == PAY_TYPE_PDD) { + + } else if (this.addPayType == PAY_TYPE_PDD) { this.$http('POST', '/agentnew/ajax_add_pddpay', { shop_name: this.pdd_shop_name, }).then(response => { @@ -362,7 +362,7 @@ export default { }).catch(error => { console.error(error, 'error') }) - } else if (this.addPayType == PAY_TYPE_JINGDONG) { + } else if (this.addPayType == PAY_TYPE_JINGDONG) { window.open(this.jdAuthUrl, '_blank'); } console.log('addPayment===走到这里了'); @@ -403,8 +403,8 @@ export default { }, }, watch: { - visible(newVal) { - this.addPayDialogVisible = newVal; + visible(newVal) { + this.addPayDialogVisible = newVal; }, payType(newVal) { this.addPayType = newVal; diff --git a/src/views/HosInformation.vue b/src/views/HosInformation.vue index 0f29366..dfb4c44 100644 --- a/src/views/HosInformation.vue +++ b/src/views/HosInformation.vue @@ -184,7 +184,7 @@

需在微信商户平台-产品中心开通Native支付

- + 前往添加
@@ -496,7 +496,8 @@ - +