You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
841 lines
42 KiB
HTML
841 lines
42 KiB
HTML
<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;
|
|
}
|
|
|
|
.modal{
|
|
background: black;
|
|
position:fixed;
|
|
left:0;
|
|
top:0;
|
|
right:0;
|
|
bottom:0;
|
|
opacity: 0.4;
|
|
display: none;
|
|
}
|
|
</style>
|
|
|
|
<div class="modal" style="display: none;z-index: 9999;">1</div>
|
|
|
|
<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 input-list-game search_label_rehab">
|
|
<input type="text" id="time-start" name="begintime" class="" value="{$_GET['begintime']}"
|
|
placeholder="结算开始时间"/>
|
|
-
|
|
<div class="input-append date" id="datetimepicker" style="display:inline-block">
|
|
<input type="text" id="time-end" name="endtime" class="" value="{$_GET['endtime']}"
|
|
placeholder="结算结束时间"/>
|
|
<span class="add-on"><i class="icon-th"></i></span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="input-list">
|
|
<input style="width: 200px;" type="text" name="ali_user" class="search-input" value="{:I('ali_user')}" placeholder="请输入支付宝真实姓名">
|
|
</div>
|
|
<div class="input-list">
|
|
<input style="width: 200px;" type="text" name="ali_account" class="search-input" value="{:I('ali_account')}" placeholder="请输入支付宝登录账号">
|
|
</div>
|
|
<div class="input-list">
|
|
<input style="width: 200px;" type="text" name="bank_address" class="search-input" value="{:I('bank_address')}" placeholder="请输入账户名">
|
|
</div>
|
|
<div class="input-list">
|
|
<input style="width: 200px;" type="text" name="settlement_contact" class="search-input" value="{:I('settlement_contact')}" placeholder="请输入联系结算人">
|
|
</div>
|
|
<div class="input-list">
|
|
<input style="width: 200px;" type="text" name="contact_phone" class="search-input" value="{:I('contact_phone')}" placeholder="请输入联系电话">
|
|
</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 class="input-list">
|
|
<a class="sch-btn" href="{:U(CONTROLLER_NAME.'/'.ACTION_NAME,array_merge(['export'=>2],I('get.')))}" style="width: auto;padding-left: 10px;padding-right: 10px;" url="">银行信息导出</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>
|
|
<a class="batch" target-form="ids" url=""><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 width="80">是否<br>签署合同</th>
|
|
<th>结算周期</th>
|
|
<th width="100">押金类型</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>
|
|
<td rowspan="{$data.row}">{$data.deposit_pay_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]['market_admin_department']|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]['ratio_data']">
|
|
<td rowspan="{$data['list'][0]['list'][0]['ratio_data'][0]['row']}">{$data['list'][0]['list'][0]['ratio_data'][0]['time']|default="--"}</td>
|
|
<else />
|
|
<td>--</td>
|
|
</notempty>
|
|
|
|
<notempty name="data['list'][0]['list'][0]['ratio_data'][0]['turnover_ratio']">
|
|
<td>{$data['list'][0]['list'][0]['ratio_data'][0]['turnover_ratio'][0]['name']|default="--"}</td>
|
|
<td>{$data['list'][0]['list'][0]['ratio_data'][0]['turnover_ratio'][0]['ratio']|default="--"}</td>
|
|
<else />
|
|
<td>--</td>
|
|
<td>--</td>
|
|
</notempty>
|
|
<else />
|
|
<td >--</td>
|
|
<td >--</td>
|
|
<td>--</td>
|
|
<td>--</td>
|
|
<td>--</td>
|
|
<td>--</td>
|
|
</notempty>
|
|
<else />
|
|
<td>--</td>
|
|
<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]['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['ratio_data']">
|
|
<td rowspan="{$p_ratio['ratio_data'][0]['row']}">{$p_ratio['ratio_data'][0]['time']|default="--"}</td>
|
|
<else />
|
|
<td>--</td>
|
|
</notempty>
|
|
|
|
<notempty name="p_ratio['ratio_data'][0]['turnover_ratio']">
|
|
|
|
<td>{$p_ratio['ratio_data'][0]['turnover_ratio'][0]['name']|default="--"}</td>
|
|
<td>{$p_ratio['ratio_data'][0]['turnover_ratio'][0]['ratio']|default="--"}</td>
|
|
<else />
|
|
<td >-</td>
|
|
<td>-</td>
|
|
</notempty>
|
|
|
|
</tr>
|
|
</if>
|
|
|
|
<if condition="$p_ratio['row'] gt 1">
|
|
<foreach name="p_ratio['ratio_data']" item="ratio" key="rkey">
|
|
|
|
<foreach name="ratio['turnover_ratio']" item="game_ratio" key="gamekey">
|
|
|
|
<if condition="$gamekey gt 0 or $rkey gt 0">
|
|
<tr>
|
|
|
|
<if condition="$rkey gt 0 and $gamekey eq 0">
|
|
<td rowspan="{$ratio['row']}">{$ratio['time']|default="--"}</td>
|
|
</if>
|
|
|
|
<td>{$game_ratio['name']|default="--"}</td>
|
|
<td>{$game_ratio['ratio']|showPercent}</td>
|
|
</tr>
|
|
</if>
|
|
</foreach>
|
|
</foreach>
|
|
</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]['ratio_data']">
|
|
<td rowspan="{$promote['list'][0]['row']}">{$promote['list'][0]['ratio_data'][0]['time']|default="--"}</td>
|
|
<else />
|
|
<td>--</td>
|
|
</notempty>
|
|
|
|
<notempty name="promote['list'][0]['ratio_data'][0]['turnover_ratio'][0]['name']">
|
|
<td>{$promote['list'][0]['ratio_data'][0]['turnover_ratio'][0]['name']|default="--"}</td>
|
|
<td>{$promote['list'][0]['ratio_data'][0]['turnover_ratio'][0]['ratio']|default="--"}</td>
|
|
<else />
|
|
<td >--</td>
|
|
<td>--</td>
|
|
</notempty>
|
|
<else />
|
|
<td >--</td>
|
|
<td>--</td>
|
|
<td>--</td>
|
|
<td>--</td>
|
|
<td>--</td>
|
|
<td>--</td>
|
|
</notempty>
|
|
</tr>
|
|
<!-- {$promote['list'][0]['ratio_data'][0]['turnover_ratio'][1]['name']}-->
|
|
<!-- dsfsa -->
|
|
<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['ratio_data']">
|
|
<td rowspan="{$game['ratio_data'][0]['row']}">{$game['ratio_data'][0]['time']|default="--"}</td>
|
|
<else />
|
|
<td>--</td>
|
|
</notempty>
|
|
|
|
<notempty name="game['ratio_data'][0]['turnover_ratio']">
|
|
|
|
<td>{$game['ratio_data'][0]['turnover_ratio'][0]['name']|default="--"}</td>
|
|
<td>{$game['ratio_data'][0]['turnover_ratio'][0]['ratio']|default="--"}</td>
|
|
<else />
|
|
<td >-</td>
|
|
<td>-</td>
|
|
</notempty>
|
|
|
|
</tr>
|
|
</if>
|
|
<if condition="$game['row'] gt 1">
|
|
|
|
<foreach name="game['ratio_data']" item="ratio" key="rkey">
|
|
<foreach name="ratio['turnover_ratio']" item="game_ratio2" key="gamekey2">
|
|
|
|
<if condition="$gamekey2 gt 0 or $rkey gt 0">
|
|
<tr>
|
|
<if condition="$rkey gt 0 and $gamekey2 eq 0">
|
|
<td rowspan="{$ratio['row']}">{$ratio['time']|default="--"}</td>
|
|
</if>
|
|
<td>{$game_ratio2['name']|default="--"}</td>
|
|
<td>{$game_ratio2['ratio']|showPercent}</td>
|
|
</tr>
|
|
</if>
|
|
</foreach>
|
|
</foreach>
|
|
</if>
|
|
|
|
|
|
</foreach>
|
|
|
|
</if>
|
|
</foreach>
|
|
</if>
|
|
|
|
</volist>
|
|
<tr class="data_summary">
|
|
<td style="text-align: center;" colspan="3">汇总:</td>
|
|
<td colspan="17">
|
|
累计推广公司数量:{$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">
|
|
<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>
|
|
<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>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
<div class="batch_page" style="display:none">
|
|
<div class="pro_promot_main" style="z-index: 9999;width:520px; left: 20%; top: 220px;">
|
|
<div class="pro_promot_title">
|
|
<div class="fl pro_promot_title_text">
|
|
<div class="fl pro_promot_title_bigtext"> 批量上下架游戏</div> </div>
|
|
<div class="batch_close fr"><img src="__IMG__/icon_close.png" style="margin-right: 10px;"></div>
|
|
</div>
|
|
<div class="pro_promot_con">
|
|
<div class="pro_promot_select">
|
|
<div class="pro_promot_select_title fl" style="text-align: center; width: 520px; line-height: 40px;">
|
|
<span style="margin-right: 40px;">操作类型:</span>
|
|
<select id="batch_type" name="batch_type" class="" style="width: 200px; magin-left: 100px;">
|
|
<option value="1">增加可推广游戏</option>
|
|
<option value="2">删除可推广游戏</option>
|
|
</select>
|
|
</div>
|
|
<br/>
|
|
<div class="pro_promot_select_title fl" style="text-align: center; width: 520px;">
|
|
<span style="margin-right: 40px;">游戏名称:</span>
|
|
<select id="batch_game" name="batch_game" class="" style="width: 200px; magin-left: 100px; line-height: 40px;">
|
|
<volist name="games" id="vo">
|
|
<option value="{$vo['id']}">{$vo['game_name']}</option>
|
|
</volist>
|
|
</select>
|
|
</div>
|
|
<p>
|
|
<div class="pro_promot_select_title fl" style="text-align: center; width: 520px;">
|
|
<span style="margin-right: 40px;">公司类型:</span>
|
|
<select id="batch_company_type" name="batch_company_type" class="" style="width: 200px; magin-left: 100px; line-height: 40px;">
|
|
<option value="0">内团</option>
|
|
<option value="1">外团(含分发)</option>
|
|
<option value="3">无</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="clear"></div>
|
|
<div class="clear"></div>
|
|
<div class="pro_promot_btn btn_wrap">
|
|
<div class="fl batch_btn_confirm btn">确定</div>
|
|
<div class="fr batch_btn_cancel btn">取消</div>
|
|
</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>
|
|
<link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
|
|
<php>if(C('COLOR_STYLE')=='blue_color') echo '<link href="__STATIC__/datetimepicker/css/datetimepicker_blue.css" rel="stylesheet" type="text/css">';</php>
|
|
<link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
|
|
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
|
|
<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></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 {}
|
|
|
|
.btn_wrap {
|
|
color: #ffffff;
|
|
background: #19b1ea;
|
|
}
|
|
.btn {
|
|
width: 32px;
|
|
height: 16px;
|
|
line-height: 16px;
|
|
text-align: center;
|
|
border: 1px solid #19b1ea;
|
|
color: #19b1ea;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
}
|
|
</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(){
|
|
|
|
$('#time-start').datetimepicker({
|
|
format: 'yyyy-mm-dd',
|
|
language: "zh-CN",
|
|
showMeridian:true,
|
|
pickDate:true,
|
|
minView: 2,
|
|
autoclose: true,
|
|
pickTime:true,
|
|
todayBtn:true,
|
|
}).on('change',function(ev){
|
|
var val = new Date($.trim($(this).val())).getTime();
|
|
var end = new Date($.trim($('#time-end').val())).getTime();
|
|
if (val>end) {
|
|
layer.msg('开始时间大于结束时间!');$(this).val('');
|
|
}
|
|
return false;
|
|
});
|
|
|
|
$("#time-end").datetimepicker({
|
|
format:"yyyy-mm-dd",
|
|
language: "zh-CN",
|
|
showMeridian:true,
|
|
minView:2,
|
|
autoclose:true,
|
|
todayBtn:true,
|
|
}).on('change',function(ev){
|
|
var val = new Date($.trim($(this).val())).getTime();
|
|
var start = new Date($.trim($('#time-start').val())).getTime();
|
|
if (val<start) {
|
|
layer.msg('开始时间大于结束时间!');$(this).val('');
|
|
}
|
|
return false;
|
|
});
|
|
|
|
//搜索功能
|
|
$("#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: false,
|
|
shade: 0.8,
|
|
area: ['40%', '30%'],
|
|
content: url,
|
|
success:function(){
|
|
layer.closeAll();
|
|
}
|
|
|
|
});
|
|
})
|
|
|
|
//回车自动提交
|
|
$('.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)+"..."
|
|
}
|
|
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);
|
|
$(".pro_promot").css("display","block");
|
|
|
|
jsgameid();
|
|
|
|
}else{
|
|
var tip_msg = res.info ? res.info : '操作失败';
|
|
layer.msg(tip_msg);
|
|
}
|
|
});
|
|
});
|
|
|
|
//打开弹窗
|
|
$(".batch").click(function(){
|
|
$(".batch_page").css("display","block");
|
|
$(".modal").show();
|
|
});
|
|
|
|
//保存修改
|
|
$(".pro_promot_btn_confirm").click(function(){
|
|
$(".pro_promot").hide();
|
|
var index = layer.load(2);
|
|
$("#ajaxForm").ajaxSubmit(function(res){
|
|
layer.msg(res.msg);
|
|
layer.close(index);
|
|
});
|
|
return false;
|
|
});
|
|
|
|
//保存修改
|
|
$(".batch_btn_confirm").click(function(){
|
|
$.ajax({
|
|
url: "{:U('displayOnShelves')}",
|
|
method: 'POST',
|
|
dataType: 'json',
|
|
data: {
|
|
batch_company_type: $("#batch_company_type").val(),
|
|
batch_game: $("#batch_game").val(),
|
|
batch_type: $("#batch_type").val()
|
|
},
|
|
error: function () {
|
|
alert("服务器繁忙,稍后再试");
|
|
$(".batch_page").hide();
|
|
$(".modal").hide();
|
|
},
|
|
success: function (data) {
|
|
if (!data.msg) {
|
|
alert(data.info);
|
|
} else {
|
|
alert(data.msg);
|
|
}
|
|
$(".batch_page").hide();
|
|
$(".modal").hide();
|
|
window.location.reload();
|
|
}
|
|
});
|
|
|
|
/* var index = layer.load(2);
|
|
$("#ajaxForm").ajaxSubmit(function(res){
|
|
layer.msg(res.msg);
|
|
layer.close(index);
|
|
});
|
|
return false; */
|
|
});
|
|
|
|
//关闭弹窗
|
|
$(".batch_close,.batch_btn_cancel").click(function(){
|
|
$(".batch_page").css("display","none");
|
|
$(".modal").hide();
|
|
});
|
|
|
|
//关闭弹窗
|
|
$(".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);
|
|
});
|
|
|
|
//可申请游戏 全选及全选反选 功能 @author zwm date 20180604
|
|
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>
|