|
|
|
|
<extend name="Public/base"/>
|
|
|
|
|
<block name="css">
|
|
|
|
|
<link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css" />
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
|
|
</block>
|
|
|
|
|
|
|
|
|
|
<block name="body">
|
|
|
|
|
<script type="text/javascript" src="__JS__/bootstrap.min.js"></script>
|
|
|
|
|
<script type="text/javascript" src="__JS__/select2.min.js"></script>
|
|
|
|
|
|
|
|
|
|
<div class="cf main-place top_nav_list navtab_list">
|
|
|
|
|
<div class="fr">
|
|
|
|
|
<a <if condition="$group eq 1"> class="tabchose" </if> href="{:U('settlement?group=1')}">推广结算</a>
|
|
|
|
|
<a <if condition="$group eq 2"> class="tabchose" </if> href="{:U('settlement?group=2')}">结算记录</a>
|
|
|
|
|
</div>
|
|
|
|
|
<h3 class="page_title">推广结算</h3>
|
|
|
|
|
<if condition="$group eq 1">
|
|
|
|
|
<p class="description_text">说明:此功能是查看所有的会长未提现订单,并可进行后台提现</p>
|
|
|
|
|
<else/>
|
|
|
|
|
<p class="description_text">说明:此功是查看并管理混服申请的功能</p>
|
|
|
|
|
</if>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="cf top_nav_list">
|
|
|
|
|
<div class="fl button_list">
|
|
|
|
|
<div class="tools">
|
|
|
|
|
<if condition="I('group') eq 1 or $group eq 1">
|
|
|
|
|
<a id="withdraw"><span class="button_icon button_icon10"></span>提 现</a>
|
|
|
|
|
</if>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="jssearch fl cf search_list">
|
|
|
|
|
<div class="input-list search-title-box">
|
|
|
|
|
<label>搜索:</label>
|
|
|
|
|
</div>
|
|
|
|
|
<if condition="I('group') eq 1 or $group eq 1">
|
|
|
|
|
<div class="input-list">
|
|
|
|
|
<input type="text" id="time-start" name="timestart" autocomplete="off" class="" value="{:I('timestart', get_lastweek_name(7))}" placeholder="充值起始时间" />
|
|
|
|
|
-
|
|
|
|
|
<div class="input-append date" id="datetimepicker" style="display:inline-block">
|
|
|
|
|
<input type="text" id="time-end" name="timeend" autocomplete="off" class="" value="{:I('timeend', get_lastweek_name(1))}" placeholder="充值结束时间" />
|
|
|
|
|
<span class="add-on"><i class="icon-th"></i></span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</if>
|
|
|
|
|
<if condition="I('group') eq 2 or $group eq 2">
|
|
|
|
|
<div class="input-list">
|
|
|
|
|
<input type="text" id="create_time" name="create_time" class="" value="{:I('create_time', '')}" placeholder="提现时间" />
|
|
|
|
|
</div>
|
|
|
|
|
</if>
|
|
|
|
|
<div class="input-list input-list-promote search_label_rehab">
|
|
|
|
|
<select id="promote_id" name="promote_id" class="select_gallery" style="width:120px;">
|
|
|
|
|
<option value="">会长账号</option>
|
|
|
|
|
<volist name=":get_promote_list_by_id()" id="vo">
|
|
|
|
|
<option promote-id="{$vo.id}" value="{$vo.id}">{$vo.account}</option>
|
|
|
|
|
</volist>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<input type="hidden" id="sort_by" name="sort_by" value="{:I('sort_by', '')}" class="sortBy">
|
|
|
|
|
<input type="hidden" id="sort_column" name="sort_column" value="{:I('sort_column', '')}" class="sortBy">
|
|
|
|
|
<if condition="I('group') eq 1 or $group eq 1">
|
|
|
|
|
<div class="input-list">
|
|
|
|
|
<a class="sch-btn" href="javascript:;" id="search" url="{:U('Query/settlement?group=1','model='.$model['name'] .'&row='.I('row'),false)}">搜索</a>
|
|
|
|
|
</div>
|
|
|
|
|
</if>
|
|
|
|
|
<if condition="I('group') eq 2 or $group eq 2">
|
|
|
|
|
<div class="input-list">
|
|
|
|
|
<input type="text" name="widthdraw_number" class="" value="{:I('widthdraw_number')}" placeholder="提现单号">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="input-list">
|
|
|
|
|
<select name="status" class="select_gallery">
|
|
|
|
|
<option value="">提现状态</option>
|
|
|
|
|
<?php foreach (promoteWithdrawStatus() as $key => $value) :?>
|
|
|
|
|
<option value="<?=$key?>"><?=$value?></option>
|
|
|
|
|
<?php endforeach;?>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="input-list">
|
|
|
|
|
<select name="op_type" class="select_gallery">
|
|
|
|
|
<option value="">操作人类型</option>
|
|
|
|
|
<?php foreach (getPromoteWithdrawOpType() as $key => $value) :?>
|
|
|
|
|
<option value="<?=$key?>"><?=$value?></option>
|
|
|
|
|
<?php endforeach;?>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="input-list">
|
|
|
|
|
<a class="sch-btn" href="javascript:;" id="search" url="{:U('Query/settlement?group=2','model='.$model['name'] .'&row='.I('row'),false)}">搜索</a>
|
|
|
|
|
</div>
|
|
|
|
|
</if>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- 数据列表 -->
|
|
|
|
|
<div class="data_list">
|
|
|
|
|
<div class="">
|
|
|
|
|
<if condition="$group eq 1">
|
|
|
|
|
<table>
|
|
|
|
|
<!-- 表头 -->
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th >推广员账号</th>
|
|
|
|
|
<th >游戏名称</th>
|
|
|
|
|
<th ><a class="paixu" data-order='sum_amount'>总充值</a></th>
|
|
|
|
|
<th ><a class="paixu" data-order='user_num'>总注册</a></th>
|
|
|
|
|
<th >结算模式</th>
|
|
|
|
|
<th >分成比例</th>
|
|
|
|
|
<th >结算金额</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<!-- 列表 -->
|
|
|
|
|
<tbody>
|
|
|
|
|
<style>
|
|
|
|
|
.data-table thead th, .data-table tbody td{text-align:center}
|
|
|
|
|
.data-table tbody td{border-right:1px solid #DDDDDD;}
|
|
|
|
|
.d_list .drop-down ul {z-index:999;}
|
|
|
|
|
</style>
|
|
|
|
|
<empty name ="records">
|
|
|
|
|
<td colspan="12" class="text-center">aOh! 暂时还没有内容!</td>
|
|
|
|
|
<else />
|
|
|
|
|
<volist name="records" id="record">
|
|
|
|
|
<tr>
|
|
|
|
|
<td>{$record.promote_account}</td>
|
|
|
|
|
<td>{$record.game_name}</td>
|
|
|
|
|
<td>{$record['sum_amount']|default=0}</td>
|
|
|
|
|
<td>{$record['user_num']|default=0}</td>
|
|
|
|
|
<td class="cooperation">CPS</td>
|
|
|
|
|
<td>{$record['selle_ratio']|default=0}%</td>
|
|
|
|
|
<td class="money">
|
|
|
|
|
{$record['settlement_amount']}
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</volist>
|
|
|
|
|
<tr class="data_summary">
|
|
|
|
|
<td>汇总</td>
|
|
|
|
|
<td colspan="10">当页结算:{$total}元 ; 今日结算:{$tTotal}元 ; 昨日结算:{$yTotal}元 ; 累计结算:{$zTotal}元</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</empty>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</if>
|
|
|
|
|
<if condition="$group eq 2">
|
|
|
|
|
<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>
|
|
|
|
|
<volist name="records" id="record">
|
|
|
|
|
<tr>
|
|
|
|
|
<td>{$record.promote_account}</td>
|
|
|
|
|
<td>{$record.widthdraw_number}</td>
|
|
|
|
|
<td>{$record.sum_money}</td>
|
|
|
|
|
<td>
|
|
|
|
|
<if condition="$record.op_type eq 1">
|
|
|
|
|
{:get_promote_name($record['op_id'])}
|
|
|
|
|
<elseif condition="$record.op_type eq 2"/>
|
|
|
|
|
{:getAdminNickname($record['op_id'])}
|
|
|
|
|
<else/>
|
|
|
|
|
自动
|
|
|
|
|
</if>
|
|
|
|
|
</td>
|
|
|
|
|
<td>{:getPromoteWithdrawOpType($record['op_type'])}</td>
|
|
|
|
|
<td>
|
|
|
|
|
<if condition="$record.last_op_type eq 1">
|
|
|
|
|
{:get_promote_name($record['last_op_id'])}
|
|
|
|
|
<elseif condition="$record.last_op_type eq 2"/>
|
|
|
|
|
{:getAdminNickname($record['last_op_id'])}
|
|
|
|
|
<else/>
|
|
|
|
|
自动
|
|
|
|
|
</if>
|
|
|
|
|
</td>
|
|
|
|
|
<td>{:getPromoteWithdrawOpType($record['last_op_type'])}</td>
|
|
|
|
|
<td>{$record.settlement_begin_time}</td>
|
|
|
|
|
<td>{$record.settlement_end_time}</td>
|
|
|
|
|
<td>{$record.create_time}</td>
|
|
|
|
|
<td>{$record.status_text}</td>
|
|
|
|
|
<td>{$record.respond}</td>
|
|
|
|
|
<td>
|
|
|
|
|
<if condition="$record['status'] eq 2">
|
|
|
|
|
<a href="{:U('downloadProve', ['id'=>$record['id']])}">汇款证明</a>
|
|
|
|
|
<elseif condition="$record['status'] eq -1"/>
|
|
|
|
|
<span class="renew-review" data-id="{$record['id']}" style="color: #0bb20c;cursor: pointer;">重新审核</span>
|
|
|
|
|
</if>
|
|
|
|
|
<if condition="$record['status'] eq -1 or $record['status'] eq 0">
|
|
|
|
|
<span class="cancel-withdraw" data-id="{$record['id']}" style="color: red;cursor: pointer;">撤销提现</span>
|
|
|
|
|
</if>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</volist>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</if>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="page">
|
|
|
|
|
<if condition="$is_admin eq true ">
|
|
|
|
|
<if condition="I('group') eq 2 or $group eq 2">
|
|
|
|
|
<a class="sch-btn" href="{:U('Export/expUser',array(
|
|
|
|
|
'id'=>15,
|
|
|
|
|
'promote_id'=>I('promote_id'),
|
|
|
|
|
'timestart'=>I('timestart'),
|
|
|
|
|
'timeend'=>I('timeend'),
|
|
|
|
|
'start'=>I('start'),
|
|
|
|
|
'end'=>I('end'),
|
|
|
|
|
'settlement_number'=>I('settlement_number'),
|
|
|
|
|
'xlsname'=>'结算管理_推广结算_结算记录',
|
|
|
|
|
))}">导出</a>
|
|
|
|
|
</if>
|
|
|
|
|
</if>
|
|
|
|
|
{$_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/settlement">
|
|
|
|
|
</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>
|
|
|
|
|
<script type="text/javascript" src="__STATIC__/layer/extend/layer.ext.js" ></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 src="__STATIC__/layer/layer.js" type="text/javascript"></script>
|
|
|
|
|
<script>
|
|
|
|
|
<volist name = ":I('get.')" id = "vo">
|
|
|
|
|
Think.setValue('{$key}', "{$vo}");
|
|
|
|
|
</volist>
|
|
|
|
|
$(".select_gallery").select2();
|
|
|
|
|
</script>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
//导航高亮
|
|
|
|
|
highlight_subnav("{:U('Query/settlement')}");
|
|
|
|
|
$(function(){
|
|
|
|
|
//搜索功能
|
|
|
|
|
$("#search").click(function(){
|
|
|
|
|
var url = $(this).attr('url');
|
|
|
|
|
var query = $('.top_nav_list').find('input').serialize();
|
|
|
|
|
var promoteId = $('#promote_id').val();
|
|
|
|
|
var group = parseInt("{$group}");
|
|
|
|
|
if (promoteId == '' && group === 1) {
|
|
|
|
|
layer.msg('请选择推广员', {time: 1000});
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
query += "&"+$('.top_nav_list').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;
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$(".paixu").click(function(){
|
|
|
|
|
var that = $(this);
|
|
|
|
|
var sortBy = $('#sort_by');
|
|
|
|
|
var sortColumn = $('#sort_column');
|
|
|
|
|
var dataOrder = that.attr('data-order');
|
|
|
|
|
var orderType = parseInt(sortBy.val());
|
|
|
|
|
|
|
|
|
|
if (dataOrder === sortColumn.val()) {
|
|
|
|
|
if (orderType === 1) {
|
|
|
|
|
orderType = 2;
|
|
|
|
|
} else {
|
|
|
|
|
orderType = 1;
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
orderType = 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
sortBy.val(orderType);
|
|
|
|
|
sortColumn.val(dataOrder);
|
|
|
|
|
|
|
|
|
|
$("#search").click();
|
|
|
|
|
});
|
|
|
|
|
//回车自动提交
|
|
|
|
|
$('.jssearch').find('input').keyup(function(event){
|
|
|
|
|
if(event.keyCode===13){
|
|
|
|
|
$("#search").click();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
var date="{$setdate}";
|
|
|
|
|
$('#time-start').datetimepicker({
|
|
|
|
|
format: 'yyyy-mm-dd',
|
|
|
|
|
language:"zh-CN",
|
|
|
|
|
minView:2,
|
|
|
|
|
autoclose:true,
|
|
|
|
|
scrollMonth:false,
|
|
|
|
|
scrollTime:false,
|
|
|
|
|
scrollInput:false,
|
|
|
|
|
endDate:date
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$('#datetimepicker').datetimepicker({
|
|
|
|
|
format: 'yyyy-mm-dd',
|
|
|
|
|
language:"zh-CN",
|
|
|
|
|
minView:2,
|
|
|
|
|
autoclose:true,
|
|
|
|
|
pickerPosition:'bottom-left',
|
|
|
|
|
scrollMonth:false,
|
|
|
|
|
scrollTime:false,
|
|
|
|
|
scrollInput:false,
|
|
|
|
|
endDate:date
|
|
|
|
|
})
|
|
|
|
|
$('#create_time').datetimepicker({
|
|
|
|
|
format: 'yyyy-mm-dd',
|
|
|
|
|
language:"zh-CN",
|
|
|
|
|
minView:2,
|
|
|
|
|
autoclose:true,
|
|
|
|
|
scrollMonth:false,
|
|
|
|
|
scrollTime:false,
|
|
|
|
|
scrollInput:false,
|
|
|
|
|
endDate:date
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
function detailsInfo(promote_id,create_time){
|
|
|
|
|
layer.open({
|
|
|
|
|
type: 2,
|
|
|
|
|
title: '结算详情',
|
|
|
|
|
shadeClose: true,
|
|
|
|
|
shade: 0.8,
|
|
|
|
|
area: ['80%', '70%'],
|
|
|
|
|
content: '/admin.php?s=/Query/details/promote_id/'+promote_id+'/create_time/'+ create_time //iframe的url
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$('#withdraw').click(function (e) {
|
|
|
|
|
var beginTime = $('#time-start').val();
|
|
|
|
|
var endTime = $('#time-end').val();
|
|
|
|
|
var promoteId = parseInt($('#promote_id').val());
|
|
|
|
|
var balance = parseFloat("{$zTotal}");
|
|
|
|
|
var msg = "收益结算时间:" + $('#time-start').val() + " 至 " + $('#time-end').val();
|
|
|
|
|
msg += "<br>";
|
|
|
|
|
msg += "提现金额:{$zTotal}元";
|
|
|
|
|
|
|
|
|
|
if (Date.parse(beginTime) / 1000 > Date.parse(endTime) / 1000) {
|
|
|
|
|
layer.msg('开始时间必须小于等于结束时间');
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if (promoteId <= 0) {
|
|
|
|
|
layer.msg('请选择会长账号');
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if (balance < 100) {
|
|
|
|
|
layer.msg('累计结算低于100元,无法提现!', {icon: 5});
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
layer.confirm(msg, {
|
|
|
|
|
title: '信息',
|
|
|
|
|
btn: ['提交', '取消'],
|
|
|
|
|
}, function (index) {
|
|
|
|
|
layer.close(index);
|
|
|
|
|
layer.load(0, {shade: [0.7, '#393D49']}, {shadeClose: true});
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: 'post',
|
|
|
|
|
url: '{:U("settlementWithdraw")}',
|
|
|
|
|
dataType: 'json',
|
|
|
|
|
data: {'begin_time': beginTime, 'end_time': endTime, 'promote_id': promoteId},
|
|
|
|
|
success: function (data) {
|
|
|
|
|
if (data.status == 1) {
|
|
|
|
|
layer.msg(data.msg, {icon: 1});
|
|
|
|
|
setTimeout(function(){
|
|
|
|
|
window.location.reload();
|
|
|
|
|
},2000);
|
|
|
|
|
} else {
|
|
|
|
|
layer.msg(data.msg, {icon: 5});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
error: function (result) {
|
|
|
|
|
layer.msg('网络异常', {icon: 5});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$('.renew-review').click(function () {
|
|
|
|
|
var id = parseInt($(this).attr('data-id'));
|
|
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: 'post',
|
|
|
|
|
url: '{:U("renewReview")}',
|
|
|
|
|
dataType: 'json',
|
|
|
|
|
data: {id:id},
|
|
|
|
|
success: function (data) {
|
|
|
|
|
if (data.status == 1) {
|
|
|
|
|
layer.msg(data.msg, {icon: 1});
|
|
|
|
|
setTimeout(function(){
|
|
|
|
|
window.location.reload();
|
|
|
|
|
},2000);
|
|
|
|
|
} else {
|
|
|
|
|
layer.msg(data.msg, {icon: 5});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
error: function (result) {
|
|
|
|
|
layer.msg('网络异常', {icon: 5});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$('.cancel-withdraw').click(function () {
|
|
|
|
|
var id = parseInt($(this).attr('data-id'));
|
|
|
|
|
var msg = "确定要撤销提现吗?";
|
|
|
|
|
layer.confirm(msg, {
|
|
|
|
|
title: '提示',
|
|
|
|
|
btn: ['确定', '取消'],
|
|
|
|
|
}, function () {
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: 'post',
|
|
|
|
|
url: '{:U("cancelWithdraw")}',
|
|
|
|
|
dataType: 'json',
|
|
|
|
|
data: {id:id},
|
|
|
|
|
success: function (data) {
|
|
|
|
|
if (data.status == 1) {
|
|
|
|
|
layer.msg(data.msg, {icon: 1});
|
|
|
|
|
setTimeout(function(){
|
|
|
|
|
window.location.reload();
|
|
|
|
|
},2000);
|
|
|
|
|
} else {
|
|
|
|
|
layer.msg(data.msg, {icon: 5});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
error: function (result) {
|
|
|
|
|
layer.msg('网络异常', {icon: 5});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
</block>
|