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.
242 lines
7.8 KiB
HTML
242 lines
7.8 KiB
HTML
5 years ago
|
<extend name="Public/promote_base"/>
|
||
|
<block name="css">
|
||
|
<link href="__CSS__/20180207/data.css" rel="stylesheet">
|
||
|
<link href="__CSS__/20180207/platform.css" rel="stylesheet">
|
||
|
<link href="__CSS__/20180207/finance.css" rel="stylesheet">
|
||
|
<style type="text/css">
|
||
|
@media screen and (max-width: 1480px) {
|
||
|
.form-group .submit{width: 55px;}
|
||
|
}
|
||
|
.editbtn {color:#4A90F0;}
|
||
|
</style>
|
||
|
</block>
|
||
|
|
||
|
<block name="body">
|
||
|
<div class="page-search normal_list promoteCoin-record-search">
|
||
|
<div class="trunk-title">
|
||
|
<div class="location">
|
||
|
<div class="location-container">当前位置:<span>账户余额></span><span>平台币记录</span></div>
|
||
|
</div>
|
||
|
<img src="__IMG__/20180207/icon_jilu.png"><span class="title_main">平台币记录</span>
|
||
|
<span class="details">说明:显示当前账号进行平台币充值及后台对其发放平台币的记录(只记录充值成功的)</span>
|
||
|
</div>
|
||
|
<div class="trunk-content article">
|
||
|
<div class="trunk-search clearfix">
|
||
|
<div class="tab fl">
|
||
|
<a href="{:U('Promote/balance')}" class="">账户余额</a>
|
||
|
<a href="#" class="current">平台币记录</a>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<form action="{:U('PromoteCoin/lists',array('row'=>I('get.row')))}" method="post" enctype="multipart/form-data" class="clearfix">
|
||
|
<div class="form-group normal_space fr">
|
||
|
<input type="submit" class="submit" value="查询">
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div class="form-group normal_space fr">
|
||
|
<label class="form-title select-title">选择平台币来源:</label>
|
||
|
<select id="source" name="source" class="reselect select_gallery" style="min-width:170px;">
|
||
|
<option value="">请选择平台币来源</option>
|
||
|
<volist name=":get_promote_coin_source_list()" id="vo">
|
||
|
<option value="{$key}">{$vo}</option>
|
||
|
</volist>
|
||
|
</select>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div class="form-group normal_space fr">
|
||
|
<label class="form-title select-title">充值帐号:</label>
|
||
|
<input type="text" name="account" class="txt normal_txt" id="uid" placeholder="请输入充值帐号" value="{:I('account')}">
|
||
|
</div>
|
||
|
|
||
|
<div class="form-group fr">
|
||
|
<label class="form-title select-title">订单号:</label>
|
||
|
<input type="text" name="order_number" class="txt normal_txt" id="uid" placeholder="请输入订单号" value="{:I('order_number')}">
|
||
|
</div>
|
||
|
|
||
|
</form>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
<div class="page-list query-earning-list">
|
||
|
<div class="trunk-content article" style="margin-top: 0;min-height: 50vh;">
|
||
|
|
||
|
<div class="trunk-search clearfix">
|
||
|
<input type="button" class="submit btn_calc" value="删除" onclick="delFrom('#promotecoin_table')">
|
||
|
</div>
|
||
|
|
||
|
<div class="trunk-list list_normal">
|
||
|
<table class="table normal_table" id="promotecoin_table">
|
||
|
<tr>
|
||
|
<th>
|
||
|
<label class="checked">
|
||
|
<input class="check-all" type="checkbox">
|
||
|
<i class="check_icon"></i>
|
||
|
</label>
|
||
|
</th>
|
||
|
<th>订单号</th>
|
||
|
<th>充值帐号</th>
|
||
|
<th>充值时间</th>
|
||
|
<th>平台币数量</th>
|
||
|
<th>来源</th>
|
||
|
<th>支付方式</th>
|
||
|
<th>操作</th>
|
||
|
</tr>
|
||
|
<empty name="lists_data">
|
||
|
<tr><td colspan="8" style="text-align: center;height: 38vh;"><img src="__IMG__/20180207/icon_wushujv2.png"/><p style="line-height: 40px;color: #A5A5A5;">暂无数据</p></td></tr>
|
||
|
<else />
|
||
|
<volist name="lists_data" id="vo">
|
||
|
<tr>
|
||
|
<td>
|
||
|
|
||
|
<label class="checked">
|
||
|
<input class="ids" type="checkbox" value="{$vo.id},{$vo.order_number}" name="ids[]">
|
||
|
<i class="check_icon"></i>
|
||
|
</label>
|
||
|
|
||
|
</td>
|
||
|
<td>{$vo.order_number}</td>
|
||
|
<td><if condition="is_numeric($vo['recharge_id'])">{:get_promote_account($vo['recharge_id'])}<else />{$vo.recharge_id}</if></td>
|
||
|
<td>{$vo.create_time|date='Y-m-d H:i:s',###}</td>
|
||
|
<td>{$vo.num}</td>
|
||
|
<td>{:get_promote_coin_source_name($vo['source'])}</td>
|
||
|
<td>{$vo.way}</td>
|
||
|
<td>
|
||
|
<a href="javascript:;" onclick="delFromitem({$vo.id},'{$vo.order_number}')" class="editbtn">删除</a>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</volist>
|
||
|
</empty>
|
||
|
</table>
|
||
|
<div class="pagenation clearfix">
|
||
|
<a class="sch-btn" href="{:U('Export/promotecoin_list',array_merge(array('xlsname'=>'账户余额_平台币记录'),I('post.')))}" >导出</a>
|
||
|
{$_page}
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</block>
|
||
|
<block name="script">
|
||
|
<link rel="stylesheet" type="text/css" href="__CSS__/p_jquery.datetimepicker.css">
|
||
|
<script type="text/javascript" src="__JS__/jquery.datetimepicker.js"></script>
|
||
|
<script type="text/javascript" src="__JS__/20170831/select2.min.js"></script>
|
||
|
<script type="text/javascript">
|
||
|
setValue('source',{$Think.request.source|default="''"});
|
||
|
setValue('row','{:I("get.row",10)}');
|
||
|
|
||
|
|
||
|
function delFrom(target){
|
||
|
var that = $(this);
|
||
|
var text = $('.ids').serialize();
|
||
|
if(text) {
|
||
|
layer.confirm('确认要执行删除操作吗?', {
|
||
|
btn: ['确定','取消'] //按钮
|
||
|
}, function(index){
|
||
|
|
||
|
if(that.hasClass('disabled')) {return false;}
|
||
|
that.addClass('disabled');
|
||
|
$.ajax({
|
||
|
type:'post',
|
||
|
dataType:'json',
|
||
|
url:'{:U("del_promote_coin")}',
|
||
|
data:text,
|
||
|
success:function(result){
|
||
|
that.removeClass('disabled');
|
||
|
if(result.status == 1){
|
||
|
layer.msg(result.info,{time:2000},function() {
|
||
|
window.location.reload();
|
||
|
});
|
||
|
}else{
|
||
|
layer.msg(result.info);
|
||
|
}
|
||
|
},
|
||
|
error:function() {
|
||
|
layer.msg('服务器故障');that.removeClass('disabled');
|
||
|
}
|
||
|
});
|
||
|
|
||
|
}, function(index){
|
||
|
layer.close(index);
|
||
|
});
|
||
|
} else {
|
||
|
layer.msg('请选择要删除的数据');
|
||
|
}
|
||
|
}
|
||
|
function delFromitem(id,order) {
|
||
|
var that = $(this);
|
||
|
if(that.hasClass('disabled')) {return false;}
|
||
|
that.addClass('disabled');
|
||
|
layer.confirm('确认要执行删除操作吗?', {
|
||
|
btn: ['确定','取消'] //按钮
|
||
|
}, function(index){
|
||
|
|
||
|
$.ajax({
|
||
|
type:'post',
|
||
|
dataType:'json',
|
||
|
url:'{:U("del_promote_coin_id")}',
|
||
|
data:{id:id,order_number:order},
|
||
|
success:function(data) {
|
||
|
that.removeClass('disabled');
|
||
|
if(parseInt(data.status) == 1) {
|
||
|
layer.msg(data.info,{time:2000},function() {
|
||
|
window.location.reload();
|
||
|
});
|
||
|
} else {
|
||
|
layer.msg(data.info);
|
||
|
}
|
||
|
},
|
||
|
error:function() {
|
||
|
layer.msg('服务器故障');that.removeClass('disabled');
|
||
|
}
|
||
|
});
|
||
|
|
||
|
}, function(index){
|
||
|
that.removeClass('disabled');
|
||
|
layer.close(index);
|
||
|
});
|
||
|
|
||
|
}
|
||
|
|
||
|
$().ready(function(){
|
||
|
|
||
|
$('#sdate').datetimepicker({
|
||
|
lang:'ch',
|
||
|
format:'Y-m-d',
|
||
|
formatDate:'Y-m-d',
|
||
|
scrollMonth:false,
|
||
|
scrollTime:false,
|
||
|
scrollInput:false,
|
||
|
timepicker:false
|
||
|
});
|
||
|
|
||
|
$(".select_gallery").select2();
|
||
|
|
||
|
$('#edate').datetimepicker({
|
||
|
lang:'ch',
|
||
|
format:'Y-m-d',
|
||
|
formatDate:'Y-m-d',
|
||
|
scrollMonth:false,
|
||
|
scrollTime:false,
|
||
|
scrollInput:false,
|
||
|
timepicker:false
|
||
|
});
|
||
|
|
||
|
$(".submit").click(function(){
|
||
|
var sdate =$('#sdate').val();
|
||
|
var edate =$('#edate').val();
|
||
|
if(Date.parse(sdate) > Date.parse(edate)){
|
||
|
layer.msg('开始时间必须小于等于结束时间');
|
||
|
return false;
|
||
|
}
|
||
|
});
|
||
|
|
||
|
});
|
||
|
</script>
|
||
|
</block>
|
||
|
|