From b34eec98eeafd31e765461af6cfbba02b8b2d45a Mon Sep 17 00:00:00 2001 From: zhengchanglong Date: Thu, 9 Jan 2020 16:02:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=B8=E6=88=8F=E5=88=86=E6=88=90=E6=AF=94?= =?UTF-8?q?=E4=BE=8B=E8=AE=BE=E5=AE=9A=E4=BD=93=E9=AA=8C=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/View/Game/edit.html | 35 +++++++++++++++++++++------ 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/Application/Admin/View/Game/edit.html b/Application/Admin/View/Game/edit.html index 884d8da2a..cd02fe912 100644 --- a/Application/Admin/View/Game/edit.html +++ b/Application/Admin/View/Game/edit.html @@ -634,7 +634,7 @@ - % + % CP游戏分成比例 @@ -646,7 +646,7 @@ 分成比例 % - + @@ -663,7 +663,7 @@ - + @@ -2269,7 +2269,7 @@ '' + '% ' + '' + - ''+ + ''+ ''+ ''; $(".bns:last").after(a); @@ -2294,9 +2294,9 @@ if(result.result==1){ $(that).remove(); layer.msg(result.desc); - setTimeout(function(){ + /*setTimeout(function(){ location.reload(); - },1500); + },1500);*/ }else{ layer.msg(result.desc); } @@ -2310,6 +2310,24 @@ }); }); + $(document).on('input propertychange', 'input[name=game_ratio]', function(){ + var that = $(this).parents("tr.bns"); + $(that).find("button[class=bnt_save]").css("display","") + }) + + $(document).on('input propertychange', 'input[name=game_amount]', function(){ + var that = $(this).parents("tr.bns"); + $(that).find("button[class=bnt_save]").css("display","") + }) + + + /* $('input[name=game_ratio]').live('input propertychange', function() + { + //获取input 元素,并实时监听用户输入 + //逻辑 + })*/ + + $(document).on('click', '.bnt_save', function(){ var data_id = $(this).attr("data-id"); var data_type =$(this).attr("data-type"); @@ -2332,9 +2350,10 @@ success : function(result) { if(result.result==1){ layer.msg(result.desc); - setTimeout(function(){ + $(that).find("button[class=bnt_save]").css("display","none") + /*setTimeout(function(){ location.reload(); - },1500); + },1500);*/ }else{ layer.msg(result.desc); }