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); }