From 64aba79409efe6cc2481debd2f590ce74393183f Mon Sep 17 00:00:00 2001 From: tpingzhang <635929049@qq.com> Date: Fri, 1 Nov 2019 16:42:01 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=A4=8D=E7=82=B9=E5=87=BB=E6=94=AF?= =?UTF-8?q?=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 | 14 ++++++------ .../Sdk/View/default/UserH/platform_pay.html | 22 +++++++++++-------- 2 files changed, 20 insertions(+), 16 deletions(-) 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 @@