From 3afd3583843684ccc8dc5473c695cc3d301e240a Mon Sep 17 00:00:00 2001 From: tpingzhang <635929049@qq.com> Date: Fri, 1 Nov 2019 16:25:04 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E9=87=8D=E5=A4=8D=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E6=94=AF=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Sdk/View/default/Spend/pay_way.html | 21 ++++++++++++++++--- .../Sdk/View/default/UserH/platform_pay.html | 14 +++++++++++-- 2 files changed, 30 insertions(+), 5 deletions(-) diff --git a/Application/Sdk/View/default/Spend/pay_way.html b/Application/Sdk/View/default/Spend/pay_way.html index 4f98abf4..2ac76dc4 100644 --- a/Application/Sdk/View/default/Spend/pay_way.html +++ b/Application/Sdk/View/default/Spend/pay_way.html @@ -179,7 +179,7 @@ - +

微信支付

@@ -219,7 +219,7 @@ function small_program(status) { //alert(status); - if (status == 1) { // 小程序 + if (status == "1") { // 小程序 if ($('#sdk_version').val() == 1) { // android window.txyxsdk.getSmallRoutine($('#small_json').val()); } else { @@ -228,11 +228,23 @@ function small_program(status) { return false; } + $(this).removeAttr("onclick", ""); return true; } $(function() { + $("#wxpay").one('click', function() { + $(this).removeAttr("one", ""); + $("#alipaybtn").removeAttr("one", ""); + + $r = small_program("{:C('sqpay.wx_small')}"); + if ($r) { + window.location.href = $(this).data('url'); + } + + }); + if ($("#pay_price").data("pay_price") == 0) { $("#platform_pay").show(); $(".paylist").hide(); @@ -245,7 +257,10 @@ $(function() { window.location.href = url; }); - $('#alipaybtn').on('click',function() { + $('#alipaybtn').one('click',function() { + $(this).removeAttr("one", ""); + $("#wxpay").removeAttr("one", ""); + var that = $(this),url = $.trim(that.attr('data-url')); if(that.hasClass('disabledbtn')){return false;} that.addClass('disabled'); diff --git a/Application/Sdk/View/default/UserH/platform_pay.html b/Application/Sdk/View/default/UserH/platform_pay.html index f81b3f06..c9fbba87 100644 --- a/Application/Sdk/View/default/UserH/platform_pay.html +++ b/Application/Sdk/View/default/UserH/platform_pay.html @@ -33,7 +33,7 @@
- +
@@ -60,7 +60,17 @@