From 59d1e3111986aa2078b9e3ca39d6780662ba0241 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Tue, 9 Mar 2021 14:41:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=80=80=E6=AC=BE=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E8=B4=9F=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../View/CompanyStatementPool/editPuPool.html | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/Application/Admin/View/CompanyStatementPool/editPuPool.html b/Application/Admin/View/CompanyStatementPool/editPuPool.html index 9f7278542..1f9d4666b 100644 --- a/Application/Admin/View/CompanyStatementPool/editPuPool.html +++ b/Application/Admin/View/CompanyStatementPool/editPuPool.html @@ -168,7 +168,7 @@ {$com['statement_info'][0]['game_list'][0]['pay_amount']} - + 0 @@ -259,7 +259,7 @@ {$game['pay_amount']} - + 0 @@ -310,7 +310,7 @@ - + 0 @@ -377,7 +377,7 @@ - + 0 @@ -464,6 +464,13 @@ saveForm(id); }); + $(".refund").keyup(function() { + var val = $(this).val(); + var reg = /^(\-|\+)?\d+(\.\d+)?$/g; + if( !reg.test(val)){ + $(this).val(0) + } + }); var pool_ids = "{$_GET['id']}"; $(".split_RewardOrFail").on("click",function() { @@ -641,8 +648,8 @@ } //退款 var refund = $(_this).parent().parent().find(".refund").val(); - if (!refund || refund < 0) { - refund = 0; + if (!refund) { + // refund = 0; $(_this).parent().parent().find(".refund").val(refund); } else if(parseFloat(refund) > parseFloat(pay_money)) { refund = pay_money;