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.

312 lines
14 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__/jquery-1.11.1.min.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;}
</style>
<!-- 标题栏 -->
<div class="cf main-place top_nav_list navtab_list">
<h3 class="page_title">CP提现</h3>
<p class="description_text">说明结算完成以后CP在自己的CP后台申请提现总后台进行审核。此处只是记录功能实际打款需要本地自行操作</p>
</div>
<div class="cf top_nav_list">
<div class="fl button_list">
<empty name="model.extend">
<div class="tools">
<a class=" ajax-post " target-form="ids" url="{:U('set_withdraw_status?model='.$model['id'],array('status'=>1,'msg_type'=>5,'field'=>'status'))}"><span class="button_icon button_icon12"></span>通 过</a>
<!-- <a class=" ajax-post " target-form="ids" url="{:U('set_withdraw_status?model='.$model['id'],array('status'=>2,'msg_type'=>6,'field'=>'status'))}"><span class="button_icon button_icon13"></span>拒 绝</a> -->
</div>
</empty>
</div>
<!-- 高级搜索 -->
<div class="jssearch fl cf search_list">
<div class="input-list search-title-box">
<label>搜索:</label>
</div>
<div class="input-list input-list-promote search_label_rehab">
<select id="developers" name="developers" class="select_gallery" style="width:120px;" >
<option value="">开发商账号 </option>
<volist name=":get_developers_list()" id="vo">
<option promote-id="{$vo.id}" value="{$vo.id}">{$vo.account}</option>
</volist>
</select>
</div>
<div class="input-list">
<input type="text" name="settlement_number" class="" value="{:I('settlement_number')}" placeholder="提现单号">
</div>
<div class="input-list">
<select name="status">
<option value="">提现状态</option>
<option value="0">待审核</option>
<option value="1">已通过</option>
<!-- <option value="2">拒绝</option> -->
</select>
</div>
<div class="input-list">
<input type="text" id="time-start" name="timestart" class="" value="{:I('timestart')}" placeholder="审核起始时间" />
-
<div class="input-append date" id="datetimepicker" style="display:inline-block">
<input type="text" id="time-end" name="timeend" class="" value="{:I('timeend')}" placeholder="审核结束时间" />
<span class="add-on"><i class="icon-th"></i></span>
</div>
</div>
<input type="hidden" name="" value="" class="sortBy">
<div class="input-list">
<a class="sch-btn" href="javascript:;" id="search" url="{:U('Query/cp_withdraw','model='.$model['name'] . '&row='.I('row'),false)}">搜索</a>
</div>
<!-- <div class="input-list">
<a class="sch-btn" href="{:U('Export/expUser',array_merge(array('id'=>20,),I('get.')))}">导出</a>
</div> -->
</div>
</div>
<!-- 数据列表 -->
<div class="data_list">
<div class="">
<table>
<!-- 表头 -->
<thead>
<tr>
<th>
<input class="check-all" type="checkbox">
</th>
<th>提现单号</th>
<th ><a class="paixu" data-order='sum_money'>提现金额(元)</a></th>
<th>开发者账号</th>
<th ><a class="paixu" data-order='create_time'>申请时间</a></th>
<th>提现状态</th>
<th>审核时间</th>
<th>操作</th>
</tr>
</thead>
<!-- 列表 -->
<tbody>
<empty name="list_data">
<tr>
<td colspan="9" class="text-center">aOh! 暂时还没有内容!</td>
</tr>
<else />
<volist name="list_data" id="data">
<tr>
<td>
<eq name="data.status" value="0">
<input class="ids" type="checkbox" value="{$data['id']}" name="ids[]">
<else />
<input class="ids disabled" disabled="disabled" type="checkbox" value="{$data['id']}" name="ids[]">
</eq>
</td>
<td>{$data.settlement_number}</td>
<td><span class="money_color">{$data.sum_money}</span></td>
<td>{:get_developer_account($data['developers'])}</td>
<td><notempty name="data.create_time">{$data.create_time|date='Y-m-d H:i:s',###}<else /></notempty></td>
<td>
<eq name="data.status" value="0"><span class="check_wait_color">待审核</span></eq>
<eq name="data.status" value="1"><span class="check_pass_color">已通过</span></eq>
<eq name="data.status" value="2"><span class="check_notpass_color">待审核</span></eq>
</td>
<td><notempty name="data.audit_time">{$data.audit_time|date='Y-m-d H:i:s',###}<else /></notempty></td>
<td>
<div class="partakebtn">
<if condition ="$data.status eq 0">
<a class="ajax-get" target-form="ids" url="{:U('set_withdraw_status',array('ids'=>$data['id'],'status'=>1,'msg_type'=>5,'field'=>'status'))}" >通过</a>
<!-- <a class="ajax-get" target-form="ids" url="{:U('set_withdraw_status',array('ids'=>$data['id'],'status'=>2,'msg_type'=>6,'field'=>'status'))}" >拒绝</a> -->
<elseif condition="$data.status eq 2" />
<a class="ajax-get" target-form="ids" url="{:U('set_withdraw_status',array('ids'=>$data['id'],'status'=>1,'msg_type'=>5,'field'=>'status'))}" >通过</a>
<a class="ajax-get disabled" disabled="disabled">拒绝</a>
<else/>
<a class="ajax-get disabled" disabled="disabled">通过</a>
<!-- <a class="ajax-get disabled" disabled="disabled">拒绝</a> -->
</if>
</div>
</td>
</tr>
</volist>
</empty>
<tr class="data_summary">
<td>汇总</td>
<td colspan="7">当页提现:{:null_to_0(array_sum(array_column(array_status2value('status','',$list_data),'sum_money')))}元 今日提现:{$ttotal}元 昨日提现:{$ytotal}元 累计提现:{$stotal}元</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="page">
<if condition="$role_export_check eq true ">
<a class="sch-btn" href="{:U('Export/expUser',array_merge(array('id'=>20,'xlsname'=>'开发者_开发者提现'),I('get.')))}">导出</a>
</if>
5 years ago
{$_page|default=''}
</div>
<div class="common_settings">
<span class="plus_icon"><span><img src="__IMG__/zwmimages/icon_jia.png"></span></span>
<form class="addShortcutIcon">
<input type="hidden" name="title" value="{$m_title}">
<input type="hidden" name="url" value="Query/cp_withdraw">
</form>
<a class="ajax-post add-butn <notempty name='commonset'>addSIsetted</notempty>" href="javascript:;" target-form="addShortcutIcon" url="{:U('Think/addShortcutIcon')}"><img src="__IMG__/zwmimages/icon_jia.png"><span><notempty name='commonset'>已添加<else />添加至常用设置</notempty></span></a>
</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>
<script src="__STATIC__/layer/layer.js" type="text/javascript"></script>
<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>
<volist name=":I('get.')" id="vo">
Think.setValue('{$key}',"{$vo}");
</volist>
$(".select_gallery").select2();
</script>
<script type="text/javascript">
//导航高亮
highlight_subnav("{:U('Query/cp_withdraw')}");
$(function(){
$(".paixu").click(function(){
$ddd=$(this).attr('date-url');
$sum_money="{:I('sum_money')}";
$create_time = "{:I('create_time')}";
if($ddd=='sum_money'){
if($sum_money==1){
$(".sortBy").attr('name','sum_money');
$(".sortBy").attr('value',2);
$("#search").click();
}else{
$(".sortBy").attr('name','sum_money');
$(".sortBy").attr('value',1);
$("#search").click();
}
}
if($ddd=='create_time' ){
if($create_time==1){
$(".sortBy").attr('name','create_time');
$(".sortBy").attr('value',2);
$("#search").click();
}else{
$(".sortBy").attr('name','create_time');
$(".sortBy").attr('value',1);
$("#search").click();
}
}
})
//搜索功能
$("#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;
}
var start = $("#time-start").val();
var end = $("#time-end").val();
if (start !='' && end != ''){
if (Date.parse(start) > Date.parse(end)){
layer.msg('开始时间必须小于等于结束时间');
return false;
}
}
window.location.href = url;
});
$(".paixu").click(function(){
var that=$(this);
$data_order=that.attr('data-order');
$order_type='{$userarpu_order}';
if($order_type==''||$order_type=='4'){
$(".sortBy").attr('name','data_order');
val='3,'+$data_order;
$(".sortBy").attr('value',val);
$("#search").click();
}else if($order_type=='3'){
$(".sortBy").attr('name','data_order');
val='4,'+$data_order;
$(".sortBy").attr('value',val);
$("#search").click();
}
});
//回车自动提交
$('.jssearch').find('input').keyup(function(event){
if(event.keyCode===13){
$("#search").click();
}
});
$('#time-start').datetimepicker({
format: 'yyyy-mm-dd',
language:"zh-CN",
minView:2,
autoclose:true
});
$('#datetimepicker').datetimepicker({
format: 'yyyy-mm-dd',
language:"zh-CN",
minView:2,
autoclose:true,
pickerPosition:'bottom-left'
})
$('#promote').on('click',function(event) {
var navlist = $(this).find('.nav-list');
if (navlist.hasClass('hidden')) {
navlist.removeClass('hidden');
$(this).find('.sort-txt').focus().val('');
} else {
navlist.addClass('hidden');
}
$(document).one('click', function(){
navlist.addClass('hidden');
});
event.stopPropagation();
});
$('#promote .sort-txt').on('keyup',function(event) {
var val = $.trim($(this).val()).toLowerCase();
$('#promote').siblings('input').val(val);
});
$('#promote .nav-list').find("a").each(function(){
var that = $('#promote');
$(this).click(function(){
var text = $.trim($(this).text()).toLowerCase();
that.find('.sort-txt').val(text);
that.siblings('input').val(text);
})
});
})
</script>
</block>