diff --git a/Application/Sdk/View/default/Spend/pay_way.html b/Application/Sdk/View/default/Spend/pay_way.html index 2ac76dc4..8d61b5b9 100644 --- a/Application/Sdk/View/default/Spend/pay_way.html +++ b/Application/Sdk/View/default/Spend/pay_way.html @@ -234,10 +234,10 @@ function small_program(status) { } $(function() { - $("#wxpay").one('click', function() { - $(this).removeAttr("one", ""); - $("#alipaybtn").removeAttr("one", ""); - + var flag = false; + $("#wxpay").on('click', function() { + if (flag) return ; + flag = true; $r = small_program("{:C('sqpay.wx_small')}"); if ($r) { window.location.href = $(this).data('url'); @@ -257,9 +257,9 @@ $(function() { window.location.href = url; }); - $('#alipaybtn').one('click',function() { - $(this).removeAttr("one", ""); - $("#wxpay").removeAttr("one", ""); + $('#alipaybtn').on('click',function() { + if (flag) return ; + flag = true; var that = $(this),url = $.trim(that.attr('data-url')); if(that.hasClass('disabledbtn')){return false;} diff --git a/Application/Sdk/View/default/UserH/platform_pay.html b/Application/Sdk/View/default/UserH/platform_pay.html index c9fbba87..78d52a41 100644 --- a/Application/Sdk/View/default/UserH/platform_pay.html +++ b/Application/Sdk/View/default/UserH/platform_pay.html @@ -60,16 +60,16 @@