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.

296 lines
14 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>
<script type="text/javascript" src="__STATIC__/layer3/layer.js"></script>
<script src="__STATIC__/table2excel.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;}
.butnbox {padding:10px 0 10px;}
.butnbox .butnlist {overflow:hidden;clear:both;}
.butnbox .butnlist .butn,.butnbox .butnlist .butn:hover {text-decoration:none;border:none;}
.butnbox .butnlist .butn {display:inline-block;width:120px;height:28px;line-height:28px;text-align:center;color:#FFF;background:#3C95C8;border-radius:3px;}
.butnbox .butnlist .butn.last {background:#009900;}
.butnbox .butnlist .butn~.butn {margin-left:20px;}
.data_list table tbody tr a.disabled,.data_list table tbody tr a.disabled:hover {color:#999;cursor:default;}
.layui-layer-title {
text-align: center;
height: 80px;
line-height: 80px;
font-weight: 600;
font-size: 18px;
}
.data_list table td{
line-height: 2;
}
tr{
border-bottom: 1px solid #e6e6e6;
}
.layui-layer-title {
text-align: center;
height: 42px;
line-height: 42px;
font-weight: 400;
font-size: 14px;
}
.tooltip {
position: relative;
/* display: block; */
/* color: #056dae; */
}
.tooltip .tooltiptext {
display: none;
width: 100%;
background-color: #fff;
text-align: center;
border-radius: 6px;
padding: 5px 10px 5px 5px;
position: absolute;
z-index: 1;
bottom: 80%;
left: 0;
border: #000 solid 1px;
line-height: 20px;
}
.tooltip .tooltiptext::after {
content: "";
position: absolute;
top: 100%;
left: 50%;
margin-left: -5px;
border-width: 5px;
border-style: solid;
border-color: black transparent transparent transparent;
}
.tooltip:hover .tooltiptext {
color: #333;
display: block;
}
</style>
<div class="cf main-place top_nav_list navtab_list">
<h3 class="page_title">橙枫产品分成比例体系</h3>
<!-- <p class="description_text" id="order_url">仅当汇总单审批通过的单子才允许进行打款</p>-->
</div>
<body>
<!-- <div style="width: 100%;line-height: 100px;font-size: 25px;font-weight: 600;text-align: center;">
橙枫科技有限公司
</div> -->
<div class="data_list box_mt" style="margin-top: 10px;">
<div class="">
<table id="exporttable" <if condition="$is_export">style="display:none"</if>>
<!-- 表头 -->
<thead>
<tr>
<th rowspan="2">产品类型</th>
<th rowspan="2">原包名</th>
<th rowspan="2">现包名</th>
<th rowspan="2">比例等级标准</th>
<th colspan="5">分成比例</th>
</tr>
<tr>
<th>cp合作方</th>
<th>下游内团</th>
<th>下游外团</th>
<th>下游外团分发</th>
<th>聚合方</th>
</tr>
</thead>
<tbody id="statementShow">
<if condition = "empty($data)">
<tr>
<td colspan="50" class="text-center">aOh! 暂时还没有内容!</td>
</tr>
</if>
<foreach name="data" item="data" key="akey">
<tr>
<td rowspan="{$data['row']}">{$data['game_type']|default='无'}</td>
<td rowspan="{$data['data'][0]['row']}">{$data['data'][0]['original_package_name']|default='无'}</td>
<td rowspan="{$data['data'][0]['game_data'][0]['row']|default=1}">{$data['data'][0]['game_data'][0]['game_name']|default='无'}</td>
<td>{$data['data'][0]['game_data'][0]['ratio_data'][0]['turnover']|default='无阶梯'}</td>
<td>{$data['data'][0]['game_data'][0]['ratio_data'][0][3]|floatval}%</td>
<td>{$data['data'][0]['game_data'][0]['ratio_data'][0][0]|floatval}%</td>
<td>{$data['data'][0]['game_data'][0]['ratio_data'][0][1]|floatval}%</td>
<td>{$data['data'][0]['game_data'][0]['ratio_data'][0][2]|floatval}%</td>
<td>{$data['data'][0]['game_data'][0]['ratio_data'][0][4]|floatval}%</td>
</tr>
<foreach name="data['data'][0]['game_data'][0]['ratio_data']" item="ratio_data" key="rkey">
<if condition="$rkey gt 0">
<tr>
<td>{$ratio_data['turnover']|default='无阶梯'}</td>
<td>{$ratio_data[3]|floatval}%</td>
<td>{$ratio_data[0]|floatval}%</td>
<td>{$ratio_data[1]|floatval}%</td>
<td>{$ratio_data[2]|floatval}%</td>
<td>{$ratio_data[4]|floatval}%</td>
</tr>
</if>
</foreach>
<foreach name="data['data'][0]['game_data']" item="game_data" key="gkey">
<if condition="$gkey gt 0">
<tr>
<td rowspan="{$game_data['row']}">{$game_data['game_name']}</td>
</tr>
<foreach name="game_data['ratio_data']" item="game_data_other" key="okey">
<tr>
<td>{$game_data_other['turnover']|default='无阶梯'}</td>
<td>{$game_data_other['3']|floatval}%</td>
<td>{$game_data_other['0']|floatval}%</td>
<td>{$game_data_other['1']|floatval}%</td>
<td>{$game_data_other['2']|floatval}%</td>
<td>{$game_data_other['4']|floatval}%</td>
</tr>
</foreach>
</if>
</foreach>
<foreach name="data['data']" item="sun_data" key="skey">
<if condition="$skey gt 0">
<tr>
<td rowspan="{$sun_data['row']}">{$sun_data['original_package_name']|default='无'}</td>
<td rowspan="{$sun_data['game_data'][0]['row']}">{$sun_data['game_data'][0]['game_name']|default='无'}</td>
<td>{$sun_data['game_data'][0]['ratio_data'][0]['turnover']|default='无阶梯'}</td>
<td>{$sun_data['game_data'][0]['ratio_data'][0]['3']|floatval}%</td>
<td>{$sun_data['game_data'][0]['ratio_data'][0]['0']|floatval}%</td>
<td>{$sun_data['game_data'][0]['ratio_data'][0]['1']|floatval}%</td>
<td>{$sun_data['game_data'][0]['ratio_data'][0]['2']|floatval}%</td>
<td>{$sun_data['game_data'][0]['ratio_data'][0]['4']|floatval}%</td>
</tr>
<foreach name="sun_data['game_data'][0]['ratio_data']" item="game_datas" key="gkey">
<if condition="$gkey gt 0">
<tr>
<td>{$game_datas['turnover']|default='无阶梯'}</td>
<td>{$game_datas['3']|floatval}%</td>
<td>{$game_datas['0']|floatval}%</td>
<td>{$game_datas['1']|floatval}%</td>
<td>{$game_datas['2']|floatval}%</td>
<td>{$game_datas['4']|floatval}%</td>
</tr>
</if>
</foreach>
<foreach name="sun_data['game_data']" item="game_datas" key="gkey">
<if condition="$gkey gt 0">
<tr>
<td rowspan="{$game_datas['row']}">{$game_datas['game_name']|default='无'}</td>
<td >{$game_datas['ratio_data'][0]['turnover']|default='无阶梯'}</td>
<td >{$game_datas['ratio_data'][0][3]|floatval}%</td>
<td >{$game_datas['ratio_data'][0][0]|floatval}%</td>
<td >{$game_datas['ratio_data'][0][1]|floatval}%</td>
<td >{$game_datas['ratio_data'][0][2]|floatval}%</td>
<td >{$game_datas['ratio_data'][0][4]|floatval}%</td>
</tr>
<volist name="game_datas['ratio_data']" id="game_data_others" key="otherskey">
<if condition="$otherskey-1 gt 0">
<tr>
<td>{$game_data_others['turnover']|default='无阶梯'}</td>
<td>{$game_data_others['3']|floatval}%</td>
<td>{$game_data_others['0']|floatval}%</td>
<td>{$game_data_others['1']|floatval}%</td>
<td>{$game_data_others['2']|floatval}%</td>
<td>{$game_data_others['4']|floatval}%</td>
</tr>
</if>
</volist>
</if>
</foreach>
</if>
</foreach>
</foreach>
</tbody>
</table>
</div>
</div>
<div class="page">
<a class="sch-btn" href="{:U(CONTROLLER_NAME.'/'.ACTION_NAME,array_merge(['export'=>1],I('get.')))}" target="_blank">导出</a>
{$_page|default=''}
</div>
</body>
</block>
<block name="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>
<script src="__STATIC__/layer/layer.js" type="text/javascript"></script>
<script src="__STATIC__/layer/extend/layer.ext.js"></script>
<script type="text/javascript">
</script>
<script>
<volist name=":I('get.')" id="vo">
Think.setValue('{$key}',"{$vo}");
</volist>
$(".select_gallery").select2();
</script>
<script type="text/javascript">
highlight_subnav("{:U('CompanySystemRatio/index')}");
<if condition="$is_export">
console.log(1);
$(function(){
$("#exporttable").table2excel({
filename: "{$title}.xls", // do include extension
preserveColors: false // set to true if you want background colors and font colors preserved
});
});
</if>
</script>
</block>
</html>