|
|
|
@ -365,60 +365,70 @@
|
|
|
|
|
<div class="page">
|
|
|
|
|
{$_page|default=''}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="pro_promot" style="display:none">
|
|
|
|
|
<form action="{:U('saveCompanyGame')}" id="ajaxForm" method="post" />
|
|
|
|
|
<input type="hidden" name="promote_id" id="se_promote_id" value="" />
|
|
|
|
|
<div class="pro_promot_main">
|
|
|
|
|
<div class="pro_promot_title">
|
|
|
|
|
<div class="fl pro_promot_title_text">
|
|
|
|
|
<div class="fl pro_promot_title_bigtext"> 可申请游戏</div> 选中的游戏将在对应的推广员后台进行展示,推广员可进行游戏申请</div>
|
|
|
|
|
<div class="pro_promot_close fr"><img src="__IMG__/icon_close.png"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="pro_promot_con">
|
|
|
|
|
<div class="pro_promot_account">推广公司:<span class="pro_promot_number"></span></div>
|
|
|
|
|
<div class="pro_promot_select">
|
|
|
|
|
<div class="pro_promot_select_title fl">可推广游戏:</div>
|
|
|
|
|
<div class="pro_promot_select_list fl">
|
|
|
|
|
<a class="pro_promot_select_list_con fl active pro_promot_all pro_promot_mr20">全部 </a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="A">A</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="B">B</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="C">C</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl pro_promot_mr20" data-index="D">D</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="E">E</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="F">F</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="G">G</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl pro_promot_mr20" data-index="H">H</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="I">I</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="J">J</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="K">K</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl pro_promot_mr20" data-index="L">L</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="M">M</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="N">N</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="O">O</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl pro_promot_mr20" data-index="P">P</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="Q">Q</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="R">R</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="S">S</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl pro_promot_mr20" data-index="T">T</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="U">U</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="V">V</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="W">W</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl pro_promot_mr20" data-index="X">X</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="Y">Y</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="Z">Z</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="pro_promot" style="display:none">
|
|
|
|
|
<form action="{:U('saveCompanyGame')}" id="ajaxForm" method="post" />
|
|
|
|
|
<input type="hidden" name="promote_id" id="se_promote_id" value="" />
|
|
|
|
|
<div class="pro_promot_main">
|
|
|
|
|
<div class="pro_promot_title">
|
|
|
|
|
<div class="fl pro_promot_title_text">
|
|
|
|
|
<div class="fl pro_promot_title_bigtext"> 可申请游戏</div> 及时生效,删减游戏将照成所属会长无法推广此游戏</div>
|
|
|
|
|
<div class="pro_promot_close fr"><img src="__IMG__/icon_close.png"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="pro_promot_con">
|
|
|
|
|
<div class="pro_promot_account">推广公司:<span class="pro_promot_number"></span></div>
|
|
|
|
|
<div class="pro_promot_select">
|
|
|
|
|
<div class="pro_promot_select_title fl">选择游戏:</div>
|
|
|
|
|
<div class="pro_promot_select_list fl">
|
|
|
|
|
<a class="pro_promot_select_list_con fl active pro_promot_all pro_promot_mr20">全部 </a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="A">A</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="B">B</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="C">C</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl pro_promot_mr20" data-index="D">D</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="E">E</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="F">F</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="G">G</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl pro_promot_mr20" data-index="H">H</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="I">I</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="J">J</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="K">K</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl pro_promot_mr20" data-index="L">L</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="M">M</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="N">N</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="O">O</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl pro_promot_mr20" data-index="P">P</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="Q">Q</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="R">R</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="S">S</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl pro_promot_mr20" data-index="T">T</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="U">U</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="V">V</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="W">W</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl pro_promot_mr20" data-index="X">X</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="Y">Y</a>
|
|
|
|
|
<a class="pro_promot_select_list_con fl" data-index="Z">Z</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="clear"></div>
|
|
|
|
|
<div class="pro_promot_game">
|
|
|
|
|
<ul id="game_list" class="z_clearfix game_list" style="clear: both;">
|
|
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="clear"></div>
|
|
|
|
|
<div class="pro_promot_game">
|
|
|
|
|
<div class="jsgamecheckallbox z_clearfix" >
|
|
|
|
|
<label class="custom-label">
|
|
|
|
|
<input type="checkbox" class="form_control jsgamecheckall" >
|
|
|
|
|
<i class="label_icon"></i>
|
|
|
|
|
<span class="label_text">全选</span></label>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="clear"></div>
|
|
|
|
|
<ul id="game_list" class="z_clearfix game_list" style="clear: both;">
|
|
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="clear"></div>
|
|
|
|
|
<div class="pro_promot_btn">
|
|
|
|
|
<div class="fl pro_promot_btn_confirm">确定</div>
|
|
|
|
|
<div class="fr pro_promot_btn_cancel">取消</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</block>
|
|
|
|
|
|
|
|
|
@ -516,9 +526,6 @@
|
|
|
|
|
var url = "{:U('getCompanyGame')}";
|
|
|
|
|
var id = $(this).attr('data-id');
|
|
|
|
|
var checked = 'checked';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$.post(url,{id:id},function(res){
|
|
|
|
|
if(res.code==1){
|
|
|
|
|
|
|
|
|
@ -533,14 +540,28 @@
|
|
|
|
|
if(ele.game_name.length>6){
|
|
|
|
|
ele.game_name = ele.game_name .substring(0,6)+"..."
|
|
|
|
|
}
|
|
|
|
|
if(promote_info['game_ids'].indexOf(ele.id)>-1){
|
|
|
|
|
lis.push('<li class="fl pro_promot_game_con" data-short="'+ele.short+'">');
|
|
|
|
|
lis.push('<input type="checkbox" value="'+ele.id+'" name="game_ids[]" disabled class="fl pro_promot_game_check jsgameid" checked="checked" id="gameCheck'+index+'" />');
|
|
|
|
|
lis.push('<label for="gameCheck'+index+'" class="fl"></label>');
|
|
|
|
|
lis.push('<span class="fl pro_promot_game_name">'+ele.game_name+'</span>');
|
|
|
|
|
lis.push('</li>');
|
|
|
|
|
}
|
|
|
|
|
lis.push('<li class="fl pro_promot_game_con" data-short="'+ele.short+'">');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// if(promote_info['game_ids']==''){
|
|
|
|
|
// lis.push('<input type="checkbox" value="'+ele.id+'" name="game_ids[]" class="fl pro_promot_game_check jsgameid" checked="checked" id="gameCheck'+index+'" />');
|
|
|
|
|
// }else{
|
|
|
|
|
if(promote_info['game_ids'].indexOf(ele.id)>-1){
|
|
|
|
|
lis.push('<input type="checkbox" value="'+ele.id+'" name="game_ids[]" class="fl pro_promot_game_check jsgameid" checked="checked" id="gameCheck'+index+'" />');
|
|
|
|
|
}else{
|
|
|
|
|
$(".jsgamecheckall").attr('checked',false);
|
|
|
|
|
lis.push('<input type="checkbox" value="'+ele.id+'" name="game_ids[]" class="fl pro_promot_game_check jsgameid" id="gameCheck'+index+'" />');
|
|
|
|
|
checked = '';
|
|
|
|
|
}
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
lis.push('<label for="gameCheck'+index+'" class="fl"></label>');
|
|
|
|
|
lis.push('<span class="fl pro_promot_game_name">'+ele.game_name+'</span>');
|
|
|
|
|
lis.push('</li>');
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$(".jsgamecheckall").attr('checked',checked);
|
|
|
|
|
|
|
|
|
|
$("#game_list").html(lis.join(''));
|
|
|
|
|
$(".pro_promot_number").text(res.data.promote_info.company_name);
|
|
|
|
|
$("#se_promote_id").val(res.data.promote_info.id);
|
|
|
|
@ -557,8 +578,11 @@
|
|
|
|
|
|
|
|
|
|
//保存修改
|
|
|
|
|
$(".pro_promot_btn_confirm").click(function(){
|
|
|
|
|
$(".pro_promot").hide();
|
|
|
|
|
var index = layer.load(2);
|
|
|
|
|
$("#ajaxForm").ajaxSubmit(function(res){
|
|
|
|
|
$(".pro_promot").hide();
|
|
|
|
|
layer.msg(res.msg);
|
|
|
|
|
layer.close(index);
|
|
|
|
|
});
|
|
|
|
|
return false;
|
|
|
|
|
});
|
|
|
|
@ -576,6 +600,7 @@
|
|
|
|
|
$(this).closest('.jsgamecheckallbox').siblings("#game_list").find(".jsgameid").prop("checked", this.checked);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//可申请游戏 全选及全选反选 功能 @author zwm date 20180604
|
|
|
|
|
function jsgameid(){
|
|
|
|
|
$(".jsgameid").click(function(){
|
|
|
|
|
var option = $(this).closest('ul').find(".jsgameid"),
|
|
|
|
|