diff --git a/Application/Admin/View/Promote/lists.html b/Application/Admin/View/Promote/lists.html index eb5d3837f..548bd4ab3 100644 --- a/Application/Admin/View/Promote/lists.html +++ b/Application/Admin/View/Promote/lists.html @@ -391,7 +391,7 @@
@@ -567,6 +567,10 @@ //获取游戏列表 var url = "{:U('Promote/getPromoteGame')}"; var id = $(this).attr('data-id'); + var checked = 'checked'; + + + $.post(url,{id:id},function(res){ if(res.code==1){ @@ -590,14 +594,19 @@ if(promote_info['game_ids'].indexOf(ele.id)>-1){ lis.push(''); }else{ + $(".jsgamecheckall").attr('checked',false); lis.push(''); + checked = ''; } } + lis.push(''); lis.push(''+ele.game_name+''); lis.push(''); }); + $(".jsgamecheckall").attr('checked',checked); + $("#game_list").html(lis.join('')); $(".pro_promot_number").text(res.data.promote_info.account); $("#se_promote_id").val(res.data.promote_info.id);