|
|
|
<extend name="Public/base"/>
|
|
|
|
|
|
|
|
<block name="body">
|
|
|
|
<link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css" />
|
|
|
|
<link rel="stylesheet" href="__CSS__/pro_promote.css" type="text/css" />
|
|
|
|
<script src="__STATIC__/jquery.form.js"></script>
|
|
|
|
<script src="__STATIC__/layer/layer.js"></script>
|
|
|
|
<script type="text/javascript" src="__JS__/bootstrap.min.js"></script>
|
|
|
|
<script type="text/javascript" src="__JS__/select2.min.js"></script>
|
|
|
|
<style>
|
|
|
|
.select2-container--default .select2-selection--single {
|
|
|
|
color: #000;
|
|
|
|
resize: none;
|
|
|
|
border-width: 1px;
|
|
|
|
border-style: solid;
|
|
|
|
border-color: #a7b5bc #ced9df #ced9df #a7b5bc;
|
|
|
|
box-shadow: 0px 3px 3px #F7F8F9 inset;height:35px;
|
|
|
|
height:28px;border-radius:3px;font-size:12px;
|
|
|
|
}
|
|
|
|
.select2-container--default .select2-selection--single .select2-selection__rendered {
|
|
|
|
line-height:35px;
|
|
|
|
line-height:28px;
|
|
|
|
}
|
|
|
|
.select2-container--default .select2-selection--single .select2-selection__arrow {
|
|
|
|
height:26px;
|
|
|
|
}
|
|
|
|
.select2-container--default .select2-search--dropdown .select2-search__field {
|
|
|
|
height:26px;line-height:26px;font-size:12px;
|
|
|
|
}
|
|
|
|
.select2-results__option[aria-selected] {font-size:12px;}
|
|
|
|
.data_list table td{
|
|
|
|
text-indent:0;
|
|
|
|
}
|
|
|
|
.data_game_list table td{
|
|
|
|
line-height:1;
|
|
|
|
padding: 3px;
|
|
|
|
height: 30px;
|
|
|
|
}
|
|
|
|
.clearfix:after {
|
|
|
|
content:"";
|
|
|
|
display: block;
|
|
|
|
clear:both;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<div class="cf main-place top_nav_list navtab_list">
|
|
|
|
<div class="fr">
|
|
|
|
<a class="tabchose" href="{:U('lists')}">生效列表</a>
|
|
|
|
<a href="{:U('index')}">审核列表</a>
|
|
|
|
</div>
|
|
|
|
<h3 class="page_title">{$meta_title}</h3>
|
|
|
|
<p class="description_text">说明:该功能是用于录入工会所属的推广公司名称 / 如需删除公司请先将公司底下会长移走后方可操作</p>
|
|
|
|
</div>
|
|
|
|
<div class="cf top_nav_list clearfix" style="display: inline;">
|
|
|
|
<div class="fl button_list" style="margin: 5px 0;">
|
|
|
|
<div class="tools">
|
|
|
|
<a class="" href="{:U('add')}"><span class="button_icon button_icon1"></span>新增</a>
|
|
|
|
<!-- <a class="ajax-post confirm " target-form="ids" url="{:U('del')}"><span class="button_icon button_icon2"></span>删除</a> -->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 高级搜索 -->
|
|
|
|
<div class="cf top_nav_list">
|
|
|
|
|
|
|
|
<!-- 高级搜索 -->
|
|
|
|
<div class="jssearch fl cf search_list" style="margin-bottom:0px">
|
|
|
|
<div class="input-list">
|
|
|
|
<input style="width: 200px;" type="text" name="company_name" class="search-input" value="{:I('company_name')}" placeholder="请输入公司名称搜索">
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="input-list input-list-promote search_label_rehab">
|
|
|
|
<select id="promote_id" name="promote_id" class="select_gallery" style="width: 200px;">
|
|
|
|
<option value="">推广员账号</option>
|
|
|
|
<volist name="promoteList" id="vo">
|
|
|
|
<option promote-id="{$vo.id}" value="{$vo.id}">{$vo.account}({$vo.real_name})</option>
|
|
|
|
</volist>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="input-list input-list-channelstatus search_label_rehab">
|
|
|
|
<select name="company_belong" class="select_gallery">
|
|
|
|
<option value="">请选择团体类型</option>
|
|
|
|
<volist name=":getCompanyBlong()" id="vo">
|
|
|
|
<option value="{$vo.id}" <php> if($_GET['company_belong'] !='' && $vo['id'] == $_GET['company_belong'])echo selected;</php>>{$vo.name}</option>
|
|
|
|
</volist>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="input-list input-list-game search_label_rehab">
|
|
|
|
<select id="company_type" name="company_type" class="select_gallery">
|
|
|
|
<option value="">请选择公司性质</option>
|
|
|
|
<option value="1" <?php echo I('company_type') === 1 ? "selected" : ''?>>公司</option>
|
|
|
|
<option value="2" <?php echo I('company_type') == 2 ? "selected" : ''?>>个人</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="input-list input-list-game search_label_rehab">
|
|
|
|
<select id="game_name" name="game_name" class="select_gallery" >
|
|
|
|
<option value="">游戏名称</option>
|
|
|
|
<volist name=":getAllGame()" id="vo">
|
|
|
|
<option value="{$vo.game_name}" <if condition="$vo.game_name eq I('game_name')">selected</if> >{$vo.game_name}</option>
|
|
|
|
</volist>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="input-list input-list-promote search_label_rehab">
|
|
|
|
<select id="pay_type" name="pay_type" class="select_gallery" style="width:120px;">
|
|
|
|
<option value="">押金类型</option>
|
|
|
|
<?php foreach($payTypes as $key => $name):?>
|
|
|
|
<option value="<?=$key?>"><?=$name?></option>
|
|
|
|
<?php endforeach;?>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="input-list input-list-game search_label_rehab">
|
|
|
|
<select id="is_sign_contact" name="is_sign_contact" class="select_gallery" style="width:120px;">
|
|
|
|
<option value="">是否签署合同</option>
|
|
|
|
<option value="0" <?php echo isset($_GET['is_sign_contact']) && I('is_sign_contact') === 0 ? "selected" : ''?>>否</option>
|
|
|
|
<option value="1" <?php echo I('is_sign_contact') == 1 ? "selected" : ''?>>是</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="input-list">
|
|
|
|
<a class="sch-btn" href="javascript:;" id="search" url="{:U('PromoteCompany/lists','model='.$model['name'].'&row='.I('row'),false)}">搜索</a>
|
|
|
|
</div>
|
|
|
|
<div class="input-list">
|
|
|
|
<a class="sch-btn" href="javascript:;" id="downloadexcel" url="{:U(CONTROLLER_NAME.'/'.ACTION_NAME,array_merge(['export'=>1],I('get.')))}">导出excel</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="cf top_nav_list clearfix" style="margin-top: -15px;clear: both;height: 52px;">
|
|
|
|
<div class="fl button_list" style="margin: 0;">
|
|
|
|
<div class="tools">
|
|
|
|
<a class="ajax-post" target-form="ids" url="{:U('PromoteCompany/marketingDirectorShow', ['isShow'=>1])}"><span class="button_icon " style="margin-top: 0;"></span>展示市场总监信息</a>
|
|
|
|
<a class="ajax-post" target-form="ids" url="{:U('PromoteCompany/marketingDirectorShow', ['isShow'=>2])}"><span class="button_icon " style="margin-top: 0;"></span>隐藏市场总监信息</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- 数据列表 -->
|
|
|
|
<div class="data_list data_game_list">
|
|
|
|
<div class="">
|
|
|
|
<table border="1">
|
|
|
|
<!-- 表头 -->
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th class="">
|
|
|
|
<input class="check-all" type="checkbox">
|
|
|
|
</th>
|
|
|
|
<th>合作方名称</th>
|
|
|
|
<th>推广游戏</th>
|
|
|
|
<th>对应平台</th>
|
|
|
|
<th>内外团</th>
|
|
|
|
<th>开发类型</th>
|
|
|
|
<th>公司性质</th>
|
|
|
|
<th>是否签署合同</th>
|
|
|
|
<th>结算周期</th>
|
|
|
|
<th>会长账号</th>
|
|
|
|
|
|
|
|
<th>市场专员</th>
|
|
|
|
<th>押金</th>
|
|
|
|
<th>原包名</th>
|
|
|
|
<th>现包名</th>
|
|
|
|
<th>产品类型</th>
|
|
|
|
<th colspan="2">游戏分成比例</th>
|
|
|
|
<th style="width:10%;min-width:150px;">操作</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<!-- 列表 -->
|
|
|
|
<tbody>
|
|
|
|
<empty name ="listData">
|
|
|
|
<td colspan="99" class="text-center">aOh! 暂时还没有内容!</td>
|
|
|
|
<else />
|
|
|
|
<volist name="listData" id="data" key="companykey">
|
|
|
|
<tr>
|
|
|
|
<td rowspan="{$data.row}"><input class="ids" type="checkbox" value="{$data['id']}" name="ids[]"></td>
|
|
|
|
|
|
|
|
<td rowspan="{$data.row}">{$data.company_name}</td>
|
|
|
|
<td rowspan="{$data.row}"><a class="ajax-view" data-id="{$data.id}">查看</a></td>
|
|
|
|
<td rowspan="{$data.row}">{$data.platform_name|default="--"}</td>
|
|
|
|
<td rowspan="{$data.row}">{$data.company_belong}</td>
|
|
|
|
<td rowspan="{$data.row}">{$data.develop_type}</td>
|
|
|
|
|
|
|
|
<td rowspan="{$data.row}">{$data.company_type}</td>
|
|
|
|
<td rowspan="{$data.row}">{$data.is_sign_contact}</td>
|
|
|
|
|
|
|
|
<td rowspan="{$data.row}">{$data.settlement_type}</td>
|
|
|
|
<notempty name="data.list">
|
|
|
|
<td rowspan="{$data['list'][0]['row']}">{$data['list'][0]['account']|default="--"}</td>
|
|
|
|
<td rowspan="{$data['list'][0]['row']}">{$data['list'][0]['market_admin_username']|default="--"}</td>
|
|
|
|
<td rowspan="{$data['list'][0]['row']}">{$data['list'][0]['pay_type']|default="--"}</td>
|
|
|
|
|
|
|
|
<notempty name="data['list'][0]['list']">
|
|
|
|
<td rowspan="{$data['list'][0]['list'][0]['row']}">{$data['list'][0]['list'][0]['original_package_name']|default="--"}</td>
|
|
|
|
<td rowspan="{$data['list'][0]['list'][0]['row']}">{$data['list'][0]['list'][0]['relation_game_name']|default="--"}</td>
|
|
|
|
<td rowspan="{$data['list'][0]['list'][0]['row']}">{$data['list'][0]['list'][0]['game_type_name']|default="--"}</td>
|
|
|
|
|
|
|
|
<notempty name="data['list'][0]['list'][0]['turnover_ratio']">
|
|
|
|
<td>{$data['list'][0]['list'][0]['turnover_ratio'][0]['name']|default="--"}</td>
|
|
|
|
<td>{$data['list'][0]['list'][0]['turnover_ratio'][0]['ratio']|default="--"}</td>
|
|
|
|
<else />
|
|
|
|
<td>--</td>
|
|
|
|
<td>--</td>
|
|
|
|
</notempty>
|
|
|
|
<else />
|
|
|
|
<td >--</td>
|
|
|
|
<td>--</td>
|
|
|
|
<td>--</td>
|
|
|
|
<td>--</td>
|
|
|
|
<td>--</td>
|
|
|
|
</notempty>
|
|
|
|
<else />
|
|
|
|
<td>--</td>
|
|
|
|
<td>--</td>
|
|
|
|
<td>--</td>
|
|
|
|
<td>--</td>
|
|
|
|
<td>--</td>
|
|
|
|
<td>--</td>
|
|
|
|
</notempty>
|
|
|
|
|
|
|
|
|
|
|
|
<td rowspan="{$data.row}">
|
|
|
|
<a href="{:U('view',array('id'=>$data['id']))}">查看</a>
|
|
|
|
<a href="{:U('edit',array('id'=>$data['id']))}">编辑</a>
|
|
|
|
<if condition="$data['can_del'] eq 1 ">
|
|
|
|
<a href="{:U('del',array('id'=>$data['id']))}" style="color: red;" class="confirm ajax-get">删除</a>
|
|
|
|
</if>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<if condition="$data['list'][0]['list'][0]['row'] gt 1">
|
|
|
|
<foreach name="data['list'][0]['list'][0]['turnover_ratio']" item="game_ratio" key="gamekey">
|
|
|
|
<if condition="$gamekey gt 0">
|
|
|
|
<tr>
|
|
|
|
<td>{$game_ratio['name']|default="--"}</td>
|
|
|
|
<td>{$game_ratio['ratio']|showPercent}</td>
|
|
|
|
</tr>
|
|
|
|
</if>
|
|
|
|
</foreach>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 游戏循环 -->
|
|
|
|
<if condition="$data['list'][0]['row'] gt 1">
|
|
|
|
<foreach name="data['list'][0]['list']" item="p_ratio" key="pkey">
|
|
|
|
<if condition="$pkey gt 0">
|
|
|
|
<tr>
|
|
|
|
<td rowspan="{$p_ratio['row']}">{$p_ratio['original_package_name']|default="--"}</td>
|
|
|
|
<td rowspan="{$p_ratio['row']}">{$p_ratio['relation_game_name']|default="--"}</td>
|
|
|
|
<td rowspan="{$p_ratio['row']}">{$p_ratio['game_type_name']|default="--"}</td>
|
|
|
|
|
|
|
|
<notempty name="p_ratio['turnover_ratio']">
|
|
|
|
|
|
|
|
<td>{$p_ratio['turnover_ratio'][0]['name']|default="--"}</td>
|
|
|
|
<td>{$p_ratio['turnover_ratio'][0]['ratio']|default="--"}</td>
|
|
|
|
<else />
|
|
|
|
<td >-</td>
|
|
|
|
<td>-</td>
|
|
|
|
</notempty>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<if condition="$p_ratio['row'] gt 1">
|
|
|
|
<foreach name="p_ratio['turnover_ratio']" item="game_ratio" key="gamekey">
|
|
|
|
<if condition="$gamekey gt 0">
|
|
|
|
<tr>
|
|
|
|
<td>{$game_ratio['name']|default="--"}</td>
|
|
|
|
<td>{$game_ratio['ratio']|showPercent}</td>
|
|
|
|
</tr>
|
|
|
|
</if>
|
|
|
|
</foreach>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</foreach>
|
|
|
|
</if>
|
|
|
|
<!-- 会长循环 -->
|
|
|
|
<if condition="$data['row'] gt 1">
|
|
|
|
<foreach name="data['list']" item="promote" key="promotekey">
|
|
|
|
<if condition="$promotekey gt 0">
|
|
|
|
<tr>
|
|
|
|
<td rowspan="{$promote['row']}">{$promote['account']|default="--"}</td>
|
|
|
|
<td rowspan="{$promote['row']}">{$promote['market_admin_username']|default="--"}</td>
|
|
|
|
<td rowspan="{$promote['row']}">{$promote['pay_type']|default="--"}</td>
|
|
|
|
|
|
|
|
<notempty name="promote['list']">
|
|
|
|
<td rowspan="{$promote['list'][0]['row']}">{$promote['list'][0]['original_package_name']|default="--"}</td>
|
|
|
|
<td rowspan="{$promote['list'][0]['row']}">{$promote['list'][0]['relation_game_name']|default="--"}</td>
|
|
|
|
<td rowspan="{$promote['list'][0]['row']}">{$promote['list'][0]['game_type_name']|default="--"}</td>
|
|
|
|
|
|
|
|
<notempty name="promote['list'][0]['turnover_ratio']">
|
|
|
|
<td>{$promote['list'][0]['turnover_ratio'][0]['name']|default="--"}</td>
|
|
|
|
<td>{$promote['list'][0]['turnover_ratio'][0]['ratio']|default="--"}</td>
|
|
|
|
<else />
|
|
|
|
<td >--</td>
|
|
|
|
<td>--</td>
|
|
|
|
</notempty>
|
|
|
|
<else />
|
|
|
|
<td >--</td>
|
|
|
|
<td>--</td>
|
|
|
|
<td>--</td>
|
|
|
|
<td>--</td>
|
|
|
|
<td>--</td>
|
|
|
|
</notempty>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<if condition="$promote['list'][0]['row'] gt 1">
|
|
|
|
<foreach name="promote['list'][0]['turnover_ratio']" item="game_ratio" key="gamekey">
|
|
|
|
<if condition="$gamekey gt 0">
|
|
|
|
<tr>
|
|
|
|
<td>{$game_ratio['name']|default="--"}</td>
|
|
|
|
<td>{$game_ratio['ratio']|showPercent}</td>
|
|
|
|
</tr>
|
|
|
|
</if>
|
|
|
|
</foreach>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
|
|
<foreach name="promote['list']" item="game" key="gkey">
|
|
|
|
<if condition="$gkey gt 0">
|
|
|
|
<tr>
|
|
|
|
<td rowspan="{$game['row']}">{$game['original_package_name']|default="--"}</td>
|
|
|
|
<td rowspan="{$game['row']}">{$game['relation_game_name']|default="--"}</td>
|
|
|
|
<td rowspan="{$game['row']}">{$game['game_type_name']|default="--"}</td>
|
|
|
|
|
|
|
|
<notempty name="game['turnover_ratio']">
|
|
|
|
|
|
|
|
<td>{$game['turnover_ratio'][0]['name']|default="--"}</td>
|
|
|
|
<td>{$game['turnover_ratio'][0]['ratio']|default="--"}</td>
|
|
|
|
<else />
|
|
|
|
<td >-</td>
|
|
|
|
<td>-</td>
|
|
|
|
</notempty>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<if condition="$game['row'] gt 1">
|
|
|
|
<foreach name="game['turnover_ratio']" item="game_ratio" key="gamekey">
|
|
|
|
<if condition="$gamekey gt 0">
|
|
|
|
<tr>
|
|
|
|
<td>{$game['name']|default="--"}</td>
|
|
|
|
<td>{$game['ratio']|showPercent}</td>
|
|
|
|
</tr>
|
|
|
|
</if>
|
|
|
|
</foreach>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</foreach>
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</foreach>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
</volist>
|
|
|
|
<tr class="data_summary">
|
|
|
|
<td style="text-align: center;" colspan="3">汇总:</td>
|
|
|
|
<td colspan="16">
|
|
|
|
累计推广公司数量:{$count}  会长数量:{$promotecount}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</empty>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<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>
|
|
|
|
<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>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</block>
|
|
|
|
|
|
|
|
<block name="script">
|
|
|
|
<script src="__STATIC__/layer/layer.js"></script>
|
|
|
|
<script src="__STATIC__/layer/extend/layer.ext.js"></script>
|
|
|
|
<style>
|
|
|
|
.layui-layer-demo .layui-layer-title {background:#F0F5F7;font-weight:bold;}
|
|
|
|
.layui-layer-demo .layui-layer-content {}
|
|
|
|
.layui-layer-demo .layui-layer-content table{width:100%;border:0;border-spacing:0;padding:0;}
|
|
|
|
.layui-layer-demo .layui-layer-content td {height:42px;padding-left:20px;}
|
|
|
|
.layui-layer-demo .layui-layer-content tr:hover {background:#F0F5F7;}
|
|
|
|
.layui-layer-demo .layui-layer-content tr~tr {border-top:1px solid #ccc;}
|
|
|
|
.layui-layer-demo .layui-layer-content td~td {border-left:1px solid #ccc;}
|
|
|
|
.layui-layer-demo .layui-layer-content tr:last-child td {}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<volist name=":I('get.')" id="vo">
|
|
|
|
Think.setValue('{$key}',"{$vo}");
|
|
|
|
</volist>
|
|
|
|
$(".select_gallery").select2();
|
|
|
|
</script>
|
|
|
|
<script type="text/javascript">
|
|
|
|
//导航高亮
|
|
|
|
highlight_subnav("{:U('lists')}");
|
|
|
|
$(function(){
|
|
|
|
//搜索功能
|
|
|
|
$("#search").click(function(){
|
|
|
|
var url = $(this).attr('url');
|
|
|
|
var query = $('.jssearch').find('input').serialize();
|
|
|
|
query += "&"+$('.jssearch').find('select').serialize();
|
|
|
|
query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g,'');
|
|
|
|
query = query.replace(/^&/g,'');
|
|
|
|
|
|
|
|
if( url.indexOf('?')>0 ){
|
|
|
|
url += '&' + query;
|
|
|
|
}else{
|
|
|
|
url += '?' + query;
|
|
|
|
}
|
|
|
|
|
|
|
|
window.location.href = url;
|
|
|
|
});
|
|
|
|
$("#downloadexcel").on("click",function(){
|
|
|
|
var url = $(this).attr("url");
|
|
|
|
var title = '推广公司导出,请耐心等待数据处理....';
|
|
|
|
var index = layer.load(2);
|
|
|
|
layer.open({
|
|
|
|
type: 2,
|
|
|
|
title: title,
|
|
|
|
shadeClose: true,
|
|
|
|
shade: 0.8,
|
|
|
|
area: ['40%', '30%'],
|
|
|
|
content: url,
|
|
|
|
success:function(){
|
|
|
|
layer.close(index);
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
})
|
|
|
|
|
|
|
|
//回车自动提交
|
|
|
|
$('.jssearch').find('input').keyup(function(event){
|
|
|
|
if(event.keyCode===13){
|
|
|
|
$("#search").click();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
//点击字母按照条件按钮筛选
|
|
|
|
$(".pro_promot_select_list_con").click(function(){
|
|
|
|
//选中高亮样式
|
|
|
|
$(this).addClass('active');
|
|
|
|
$(this).siblings().removeClass('active');
|
|
|
|
|
|
|
|
var that = $(this);
|
|
|
|
var index = $(this).attr("data-index");
|
|
|
|
|
|
|
|
$("#game_list li").each(function(index,ele){
|
|
|
|
var short = $(this).attr('data-short');
|
|
|
|
$(this).show();
|
|
|
|
if(that.attr('data-index')){
|
|
|
|
if(that.attr('data-index')!=short.charAt(0)){
|
|
|
|
$(this).hide();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
});
|
|
|
|
|
|
|
|
//打开弹窗
|
|
|
|
$(".ajax-view").click(function(){
|
|
|
|
//获取游戏列表
|
|
|
|
var url = "{:U('getCompanyGame')}";
|
|
|
|
var id = $(this).attr('data-id');
|
|
|
|
var checked = 'checked';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$.post(url,{id:id},function(res){
|
|
|
|
if(res.code==1){
|
|
|
|
|
|
|
|
$(".pro_promot_select_list a").eq(0).addClass('active');
|
|
|
|
$(".pro_promot_select_list a").eq(0).siblings().removeClass('active');
|
|
|
|
|
|
|
|
var game_list = res.data.game_list;
|
|
|
|
var promote_info = res.data.promote_info;
|
|
|
|
var lis = [];
|
|
|
|
|
|
|
|
$.each(game_list,function(index,ele){
|
|
|
|
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>');
|
|
|
|
}
|
|
|
|
});
|
|
|
|
$("#game_list").html(lis.join(''));
|
|
|
|
$(".pro_promot_number").text(res.data.promote_info.company_name);
|
|
|
|
$("#se_promote_id").val(res.data.promote_info.id);
|
|
|
|
$(".pro_promot").css("display","block");
|
|
|
|
|
|
|
|
jsgameid();
|
|
|
|
|
|
|
|
}else{
|
|
|
|
var tip_msg = res.info ? res.info : '操作失败';
|
|
|
|
layer.msg(tip_msg);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
//保存修改
|
|
|
|
$(".pro_promot_btn_confirm").click(function(){
|
|
|
|
$("#ajaxForm").ajaxSubmit(function(res){
|
|
|
|
$(".pro_promot").hide();
|
|
|
|
});
|
|
|
|
return false;
|
|
|
|
});
|
|
|
|
|
|
|
|
//关闭弹窗
|
|
|
|
$(".pro_promot_close").click(function(){
|
|
|
|
$(".pro_promot").css("display","none");
|
|
|
|
});
|
|
|
|
//取消修改
|
|
|
|
$(".pro_promot_btn_cancel").click(function(){
|
|
|
|
$(".pro_promot").css("display","none");
|
|
|
|
});
|
|
|
|
|
|
|
|
$(".jsgamecheckall").click(function(){
|
|
|
|
$(this).closest('.jsgamecheckallbox').siblings("#game_list").find(".jsgameid").prop("checked", this.checked);
|
|
|
|
});
|
|
|
|
|
|
|
|
function jsgameid(){
|
|
|
|
$(".jsgameid").click(function(){
|
|
|
|
var option = $(this).closest('ul').find(".jsgameid"),
|
|
|
|
checkall = $(this).closest('ul').siblings('.jsgamecheckallbox').find('.jsgamecheckall');
|
|
|
|
option.each(function(i){
|
|
|
|
if(!this.checked){
|
|
|
|
checkall.prop("checked", false);
|
|
|
|
return false;
|
|
|
|
}else{
|
|
|
|
checkall.prop("checked", true);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</block>
|