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.

295 lines
12 KiB
HTML

5 years ago
<extend name="Public/base"/>
<block name="body">
<link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css" />
<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;}
/*.layui-layer-dialog .layui-layer-content{color:red}*/
</style>
<!-- 标题栏 -->
<div class="cf main-place top_nav_list navtab_list">
<div class="fr">
</div>
<h3 class="page_title">扶持发放</h3>
<p class="description_text">说明:记录所有扶持发放的数据</p>
</div>
<div class="cf top_nav_list">
<!-- <div class="fl button_list">
<div class="tools">
<if condition="C(SUPPORT_AUTO_AUDIT) eq 0">
<a class="ajax-get" target-form="ids" url='{:U("set_config_auto_audit",array("val"=>1,"config_key"=>"SUPPORT_AUTO_AUDIT"))}'><span class="button_icon button_icon4"></span>开启自动审核</a>
<else/>
<a class="ajax-get" target-form="ids" url='{:U("set_config_auto_audit",array("val"=>0,"config_key"=>"SUPPORT_AUTO_AUDIT"))}'><span class="button_icon button_icon5"></span>关闭自动审核</a>
</if>
</div>
</div> -->
<!-- 高级搜索 -->
<div class="jssearch fl cf search_list">
<div class="input-list input-list-parent search_label_rehab">
<label>一级渠道:</label>
<select id="promote_id" name="promote_id" class="select_gallery" >
<option value="">请选择一级渠道</option>
<volist name=":get_all_toppromote()" id="vo">
<option parent-id="{$vo.id}" value="{$vo.id}">{$vo.account}</option>
</volist>
</select>
</div>
<div class="input-list input-list-game search_label_rehab">
<label>游戏名称:</label>
<select id="game_id" name="game_id" class="select_gallery" >
<option value="">请选择游戏</option>
<volist name=":get_game_list()" id="vo">
<option value="{$vo.id}">{$vo.game_name}</option>
</volist>
</select>
</div>
<div class="input-list">
<label>扶持类型:</label>
<select name="apply_type">
<option value="">全部</option>
<option value="0">新增扶持</option>
<option value="1">后续扶持</option>
</select>
</div>
<div class="input-list">
<label>审核状态</label>
<select name="apply_status">
<option value="">全部</option>
<option value="0">待审核</option>
<option value="1">审核未通过</option>
<option value="2">审核通过</option>
</select>
</div>
<div class="input-list">
<a class="sch-btn" href="javascript:;" id="search" url="{:U('lists')}">搜索</a>
</div>
</div>
</div>
<!-- 数据列表 -->
<div class="data_list">
<div class="">
<table>
<!-- 表头 -->
<thead>
<tr>
<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>
</tr>
</thead>
<!-- 列表 -->
<tbody>
<empty name ="list_data">
<td colspan="14" class="text-center"> aOh! 暂时还没有内容! </td>
<else />
<volist name="list_data" id="data">
<tr>
<td>{$data['promote_account']}</td>
<td>{$data['user_account']}</td>
<td>{$data['game_name']}</td>
<td>{$data['server_name']}</td>
<td>{$data['role_name']}</td>
<td>{$data['apply_resource']}</td>
<td><if condition="$data.apply_type eq 0" >新增扶持<else/>后续扶持</if></td>
<td style="max-width: 200px;line-height: 1.5;padding:8px;">{$data['apply_remark']}</td>
<td>{:date('Y-m-d H:i:s',$data['create_time'])}</td>
<td>{:max_quota($data['game_id'],$data['promote_id'])}</td>
<td>{$data['verify_resource']}</td>
<td>
<if condition="$data.apply_status eq 1" >拒绝
<elseif condition="$data.apply_status eq 2"/>通过
<else/>待审核
</if>
</td>
<td>
<if condition="$data['apply_status'] eq '0'">
<a href="javascript:" class="ajax-get pack notice_pro" data-id="{$data['id']}">审核</a>
<a href="" class="ajax-get pack jujue" data-id="{$data['id']}">拒绝</a>
<else/>
<a href="#" disabled style="color:rgb(64,64,64);">审核</a>
<a href="#" disabled style="color:rgb(64,64,64); ">拒绝</a>
</if>
<!-- <if condition="$data['notice_status'] eq 0 and $data['status'] neq 0">
<a href="" class="ajax-get pack notice_pro" data-id="{$data['id']}" status="{$data['status']}" notice_status="{$data['notice_status']}">通知渠道</a>
<else/>
<a href="#" disabled style="color:rgb(64,64,64);">通知渠道</a>
</if> -->
</td>
</tr>
</volist>
</empty>
</tbody>
</table>
</div>
</div>
<div class="page">
{$_page|default=''}
</div>
</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 src="__STATIC__/layer/layer.js" type="text/javascript"></script>
<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 type="text/javascript">
<volist name=":I('get.')" id="vo">
Think.setValue('{$key}',"{$vo}");
</volist>
$(".select_gallery").select2();
</script>
<script type="text/javascript">
//导航高亮
highlight_subnav('{:U('Support/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;
});
//回车自动提交
$('.jssearch').find('input').keyup(function(event){
if(event.keyCode===13){
$("#search").click();
}
});
layer.config({
extend: 'extend/layer.ext.js'
});
$(".jujue").click(function(){
var id=$(this).attr('data-id');
layer.prompt({title: '审核意见', formType: 2}, function(text, index){
$.ajax({
url: "{:U('refuse_notice')}",
type:"POST",
dataType: 'json',
data: {id:id,verify_remark:text},
success:function(data){
if(data.status==0){
layer.msg(data.msg,{icon:2});
}else{
layer.msg('操作成功!',{icon:1});
setTimeout(function(){
window.location.href="{:U('lists',$_SERVER['REQUEST_URI'])}";
},1500);
}
},
error:function(){
}
})
});
});
$(".notice_pro").click(function(){
var id=$(this).attr('data-id');
layer.prompt({title: '实际发放数量', formType: 0}, function(text1, index){
if(text1 == 0 ){
layer.msg('实际发放数量输入不正确',{icon:2});
return false;
}
if(!(/^(\+|-)?\d+$/.test( text1 )) || text1 < 0){
layer.msg('实际发放数量输入不正确',{icon:2});
return false;
}
layer.prompt({title: '审核意见', formType: 2}, function(text, index){
layer.close(index);
$.ajax({
url: "{:U('notice_pro')}",
type:"POST",
dataType: 'json',
data: {id:id,verify_remark:text,verify_resource:text1},
success:function(data){
if(data.status==0){
layer.msg(data.msg,{icon:2});
}else{
layer.msg('操作成功!',{icon:1});
setTimeout(function(){
window.location.href="{:U('lists',$_SERVER['REQUEST_URI'])}";
},1500);
}
},
error:function(){
}
})
});
});
});
})
</script>
</block>