From 79791f71f1be4aa4a9ca14e0a6305e37a23ae930 Mon Sep 17 00:00:00 2001 From: sunday <153788231@qq.com> Date: Sat, 25 Nov 2023 20:42:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=94=AF=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ui_components/yz_pay.vue | 6 ++++++ src/utils/yz_pay.js | 17 +++++++++++------ 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/src/components/ui_components/yz_pay.vue b/src/components/ui_components/yz_pay.vue index 2d3a5be..6289814 100644 --- a/src/components/ui_components/yz_pay.vue +++ b/src/components/ui_components/yz_pay.vue @@ -162,6 +162,10 @@ export default { case "convergePaySeparate": case "wechatCpsAppPay": case "huibeiWechatPay": + case "T_JSAPI": + case "T_MINIAPP": + case "T_H5": + case "T_NATIVE": icon_url = "icon-pay_wechat"; break; case "alipay": @@ -178,6 +182,8 @@ export default { case "convergeAliPaySeparate": case "sandpayAlipay": case "huibeiAliPay": + case "A_JSAPI": + case "A_NATIVE": icon_url = "icon-pay_alipay"; break; case "balance": diff --git a/src/utils/yz_pay.js b/src/utils/yz_pay.js index 69cef32..4ac42f8 100644 --- a/src/utils/yz_pay.js +++ b/src/utils/yz_pay.js @@ -867,6 +867,7 @@ export const yzPay = { }, //支付按钮class getIconUrl(item) { + console.log(item); let icon_url = ""; switch (item.code) { case "wechatPay": @@ -883,6 +884,7 @@ export const yzPay = { case "convergePaySeparate": case "wechatCpsAppPay": case "huibeiWechatPay": + case "wxhftx": icon_url = "icon-pay_wechat"; break; case "alipay": @@ -898,6 +900,7 @@ export const yzPay = { case "alipayAggregatePay": case "convergeAliPaySeparate": case "huibeiAliPay": + case "alipayhftx": icon_url = "icon-pay_alipay"; break; case "balance": @@ -965,11 +968,13 @@ export const yzPay = { let that = this; // type-1 微信, type-2 支付宝,type-7 APP微信, type-8 APP支付宝 ,type-6 云收银支付,type-3 余额支付 type 28 微信支付-汇聚 type 29 支付宝支付-汇聚 // type-79 支付宝-商云客聚合,type-78 商云客支付---微信, - if (this.isclick) { - // 控制支付请求多次 - Toast("还在请求支付,请等待~"); - return; - } + // if (this.isclick) { + // // 控制支付请求多次 + // Toast("还在请求支付,请等待~"); + // return; + // } + console.log(type); + this.isclick = true; if (type == 1) { @@ -1194,7 +1199,7 @@ export const yzPay = { // 新整合支付方式,后端进行归类 // 按返回的类型进行处理 console.log('走新整合支付方式===='); - this.newPayQuick({ order_pay_id: this.order_pay_id, code: btn.code }); + this.newPayQuick({ order_pay_id: this.order_pay_id, code: btn.code ,pay_type_id:type}); } }, async newPayQuick(params = {}){