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.

367 lines
14 KiB
HTML

<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;}
tr td:nth-child(4) {
max-width: 200px;
word-wrap: break-word;
line-height: 1.5;
padding: 5px;
}
</style>
<div class="cf main-place top_nav_list navtab_list">
<h3 class="page_title">{$_REQUEST['game_name']}测试统计</h3>
<p class="description_text"></p>
</div>
<div class="cf top_nav_list">
<!-- 高级搜索 -->
<div class="jssearch fl cf search_list">
<!--游戏类型搜索END-->
<div class="input-list input-list-server search_label_rehab">
<select id="server_type" name="server_type" class="select_gallery" style="width:120px;">
<option value="">选择服务器类型</option>
<option value="1" <if condition="$_GET['server_type'] eq '1'">selected</if>>测试内网</option>
<option value="2" <if condition="$_GET['server_type'] eq '2'">selected</if>>测试外网</option>
</select>
</div>
<div class="input-list input-list-server search_label_rehab">
<select id="order_type" name="order_type" class="select_gallery" style="width:120px;">
<option value="">选择订单类型</option>
<option value="1" <if condition="$_GET['order_type'] eq '1'">selected</if>>sdk充值订单</option>
<option value="2" <if condition="$_GET['order_type'] eq '2'">selected</if>>平台币充值订单</option>
<option value="3" <if condition="$_GET['order_type'] eq '3'">selected</if>>超级签充值订单</option>
<option value="0" <if condition="$_GET['order_type'] eq '0'">selected</if>>未知</option>
</select>
</div>
<div class="input-list">
<input type="text" name="order_no" placeholder="请输入支付订单号" class="" value="{:I('order_no')}" style="width: 180px"/>&nbsp;
</div>
<div class="input-list">
<input type="text" name="user_account" placeholder="请输入测试账号" class="" value="{:I('user_account')}" style="width: 180px"/>&nbsp;
</div>
<div class="input-list">
<input type="text" id="time-start" name="timestart" class="" value="{:I('timestart')}" placeholder="开始时间" autocomplete="off"/>
-
<div class="input-append date" id="datetimepicker" style="display:inline-block">
<input type="text" id="time-end" name="timeend" class="" value="{:I('timeend')}" placeholder="结束时间" autocomplete="off"/>
<span class="add-on"><i class="icon-th"></i></span>
</div>
</div>
<div class="input-list input-list-server search_label_rehab">
<select id="pay_way" name="pay_way" class="select_gallery" style="width:120px;">
<option value="">请选择支付渠道</option>
<option value="1" <if condition="$_GET['pay_way'] eq '1'">selected</if>>支付宝</option>
<option value="2" <if condition="$_GET['pay_way'] eq '2'">selected</if>>微信(扫码)</option>
<option value="3" <if condition="$_GET['pay_way'] eq '3'">selected</if>>微信app</option>
<option value="4" <if condition="$_GET['pay_way'] eq '4'">selected</if>>威富通</option>
<option value="5" <if condition="$_GET['pay_way'] eq '5'">selected</if>>聚宝云</option>
<option value="6" <if condition="$_GET['pay_way'] eq '6'">selected</if>>竣付通</option>
<option value="7" <if condition="$_GET['pay_way'] eq '7'">selected</if>>金猪</option>
<option value="9" <if condition="$_GET['pay_way'] eq '9'">selected</if>>双乾支付-支付宝</option>
<option value="10" <if condition="$_GET['pay_way'] eq '10'">selected</if>>双乾支付-银联</option>
<option value="15" <if condition="$_GET['pay_way'] eq '15'">selected</if>>双乾支付-快捷</option>
<option value="17" <if condition="$_GET['pay_way'] eq '17'">selected</if>>易宝支付</option>
</select>
</div>
<if condition="!IS_SUBSITE">
<div class="input-list search_item input-list-gamenoticestatus">
<select id="merchant_id" name="merchant_id" class="select_gallery">
<option value="0">请选择商户</option>
<volist name=":getMerchantList()" id="vo">
<option value="{$vo.id}" <if condition="$_GET['merchant_id'] eq $vo['id']">selected</if>>{$vo.name}</option>
</volist>
</select>
</div>
</if>
<div class="input-list input-list-server search_label_rehab">
<select id="platform_type" name="platform_type" class="select_gallery" style="width:120px;">
<option value="0">所属平台</option>
<option value="1" <if condition="$_GET['platform_type'] eq '1'">selected</if>>联运</option>
<option value="2" <if condition="$_GET['platform_type'] eq '2'">selected</if>>聚合</option>
</select>
</div>
<div class="input-list">
<a class="sch-btn" href="javascript:;" id="search" url="{:U('TestOrder/lists','model='.$model['name'].'&row='.I('row'),false)}" style="">搜索</a>
<!--<if condition="$_GET['all'] neq 1">
<a class="sch-btn" href="{:U('PayChannel/export_testDetail',
array_merge(array('xlsname'=>'测试游戏订单查看导出'),I('get.')))}">导出</a>
</if>-->
</div>
<if condition="!IS_SUBSITE">
<div class="input-list">
<a class="sch-btn" href="javascript:;" id="upstream" style="width: 80px">订单录入</a>
</div>
</if>
</div>
</div>
<!-- 数据列表 -->
<div class="data_list">
<div class="">
<table>
<!-- 表头 -->
<thead>
<tr>
<th >服务器类型</th>
<th >订单类型</th>
<th >支付订单号</th>
<if condition="$_GET['model'] neq 'game_supersign'"><th>cp订单号</th></if>
<th >测试账号</th>
<th >充值时间</th>
<if condition="$_GET['model'] neq 'deposit'"><th >游戏名称</th></if>
<if condition="$_GET['model'] neq 'deposit'"><th >设备名称</th></if>
<th >订单金额</th>
<th >实付金额</th>
<th >所属平台</th>
<th >充值方式</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>
<if condition = "empty($datas)">
<tr>
<td colspan="15" class="text-center">aOh! 暂时还没有内容!</td>
</tr>
</if>
<notemtpy name = "datas">
<volist name="datas" id="data">
<tr>
<td ><if condition="$data.server_type eq 1">测试内网<else/>测试外网</if></td>
<td >{$data.order_type|get_order_type}</td>
<td >{$data.order_no}</td>
<if condition="$_GET['model'] neq 'game_supersign'"><td >{$data.cp_order_no}</td></if>
<td >{$data.user_account}</td>
<td >{$data.pay_time|date='Y-m-d H:i:s',###}</td>
<if condition="$_GET['model'] neq 'deposit'"><td >{$data.game_name}</td></if>
<if condition="$_GET['model'] neq 'deposit'"><td >{$data.sdk_version}</td></if>
<td >{$data.order_amount}</td>
<td >{$data.pay_amount}</td>
<td >{$data.platform_type}</td>
<td >{$data.pay_way|get_pay_way}</td>
<td>{:getMerchantName($data['merchant_id'])}</td>
<td >{$data.add_time|date='Y-m-d H:i:s',###}</td>
<td ><a class="confirm del" data-id="{$data.id}">删除</a></td>
</tr>
</volist>
<tr>
<td >总计</td>
<td >------</td>
<td >------</td>
<td >------</td>
<td >------</td>
<td >------</td>
<td >------</td>
<td >------</td>
<td >{$sum_order_amount['sum_order_amount']}</td>
<td >{$sum_pay_amount['sum_order_amount']}</td>
<td >------</td>
<td >------</td>
<td >------</td>
<td >------</td>
<td >------</td>
</tr>
</notemtpy>
</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'=>27,'xlsname'=>'测试服订单','timestart'=>$startDate,'timeend'=>$endDate),I('get.')))}">导出</a>
</if>
{$_page|default=''}
</div>
</block>
<block name="script">
<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/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 type="text/javascript">
//导航高亮
highlight_subnav('{:U("TestOrder/lists")}');
$(function () {
<volist name=":I('get.')" id="vo">
Think.setValue('{$key}',"{$vo}");
</volist>
});
</script>
<script type="text/javascript">
$(".select_gallery").select2();
function reload() {
window.location.reload();
}
$(function(){
$('.page a').click(function () {
var href = $(this).attr('href');
$(this).removeAttr('href');
window.location.replace(href)
console.log(href)
});
$(".del").click(function () {
var del = $(this).data();
layer.confirm('【警告】撤销后将不可回退,如需继续请点击确认', {
btn: ['确认','取消'],
title:false
}, function(){
var url = "/{$Think.SUBSITE_INDEX}?s=/TestOrder/del/id/"+del.id;
layer.load(2);
$.ajax({
url: url,
type: "get",
dataType: "json",
success: function (data) {
if(data.status == 1){
layer.closeAll('loading');
layer.msg("<font style='color: red'>删除成功</font>");
setTimeout(function(){
window.location.reload();
},350);
}else{
alert("删除失败")
}
}
})
}, function(){
});
});
$('#time-start').datetimepicker({
format: 'yyyy-mm-dd',
language: "zh-CN",
showMeridian:true,
pickDate:true,
minView: 2,
autoclose: true,
pickTime:true,
todayBtn:true,
}).on('change',function(ev){
var val = new Date($.trim($(this).val())).getTime();
var end = new Date($.trim($('#time-end').val())).getTime();
if (val>end) {
layer.msg('开始时间大于结束时间!');$(this).val('');
}
return false;
});
$("#time-end").datetimepicker({
format:"yyyy-mm-dd",
language: "zh-CN",
showMeridian:true,
minView:2,
autoclose:true,
todayBtn:true,
}).on('change',function(ev){
var val = new Date($.trim($(this).val())).getTime();
var start = new Date($.trim($('#time-start').val())).getTime();
if (val<start) {
layer.msg('开始时间大于结束时间!');$(this).val('');
}
return false;
});
//搜索功能
$("#search").click(function(){
var starttime = $.trim($('#time-start').val());
var endtime = $.trim($('#time-end').val());
if (starttime && endtime && starttime > endtime) {layer.msg('开始时间必须小于等于结束时间');return false;}
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.replace(url);
});
//回车自动提交
$('.jssearch').find('input').keyup(function(event){
if(event.keyCode===13){
$("#search").click();
}
});
})
$("#upstream").click(function () {
layer.open({
type: 2,
title: "测试订单录入",
shadeClose: true,
shade: 0.8,
area: ['500px', '600px'],
content:'/{$Think.SUBSITE_INDEX}?s=/TestOrder/addOrder/'
});
});
</script>
</block>