@ -30,8 +30,22 @@
< div class = "cf main-place top_nav_list navtab_list" >
< h3 class = "page_title" > {$_REQUEST['game_name']}游戏订单查看< / h3 >
< p class = "description_text" > < / p >
< h3 class = "page_title" >
< if condition = "isset($_GET['promote_id'])" >
[{:get_promote_name(I('promote_id'))}]
< / if >
{$_REQUEST['game_name']}游戏订单查看< / h3 >
< p class = "description_text" >
< if condition = "isset($_GET['promote_id'])" >
< if condition = "$_GET['promote_type'] eq 1" >
统计推广员及其下属推广员的游戏订单相关统计
< else / >
仅统计推广员自己 < span style = "color: red;" > 不含其下属推广员< / span > 的游戏订单相关统计
< / if >
< else / >
游戏订单统计
< / if >
< / p >
< / div >
< div class = "cf top_nav_list" >
@ -40,12 +54,52 @@
< div class = "jssearch fl cf search_list" >
<!-- 游戏类型搜索END -->
< div class = "input-list ">
< div class = "input-list search-title-box ">
< a class = "sch-btn" href = "javascript:history.go(-1)" style = "background:#fff;color: #000;border: #000 solid 1px;width: 100px" > 返回< / a >
< / div >
< input type = "hidden" name = "count_date" value = "{$_GET['count_date']}" / >
< input type = "hidden" name = "game_id" value = "{$_GET['game_id']}" / >
< input type = "hidden" name = "game_name" value = "{$_GET['game_name']}" / >
< div class = "input-list search-title-box" >
< label > 搜索:< / label >
< / div >
< div class = "input-list input-list-server search_label_rehab" >
< select id = "partner_id" name = "partner_id" class = "select_gallery" style = "width:120px;" >
< option value = "" > 请选择合作公司< / option >
< volist name = ":getPartner()" id = "vo" >
< option partner-id = "{$vo.id}" value = "{$vo.id}" < if condition = "$vo.id eq $_GET['partner_id']" > selected=selected< / if > >{$vo.partner}< / option >
< / volist >
< / select >
< / div >
< div class = "input-list input-list-game search_label_rehab" >
< select id = "game_name" name = "game_name" class = "select_gallery" >
< option value = "" > 游戏名称< / option >
< / select >
< / div >
< div class = "input-list input-list-game search_label_rehab" >
< select id = "game_type" name = "game_type" class = "select_gallery" >
< option value = "" > 请选择设备类型< / option >
< option value = "1" > 安卓< / option >
< option value = "2" > 苹果< / option >
< / select >
< / div >
< div class = "input-list search_item input-list-gamenoticestatus" >
< select name = "promote_level" style = "color:#444" class = "select_gallery" id = "promote_level" >
< option value = "" > 请选择推广员等级< / option >
< option value = "1" < ? php if ( $ _POST [ ' promote_level ' ] = = 1 ) : ? > selected<?php endif;?> >会长< / option >
< option value = "2" < ? php if ( $ _POST [ ' promote_level ' ] = = 2 ) : ? > selected<?php endif;?> >部门长< / option >
< option value = "3" < ? php if ( $ _POST [ ' promote_level ' ] = = 3 ) : ? > selected<?php endif;?> >组长< / option >
< option value = "4" < ? php if ( $ _POST [ ' promote_level ' ] = = 4 ) : ? > selected<?php endif;?> >组员< / option >
< / select >
-
< / div >
< div class = "input-list search_item input-list-gamenoticestatus" >
< select name = "promote_id" style = "color:#444" class = "select_gallery" id = "promote_id" >
< option value = "" > 请选择推广员< / option >
< option value = "0" < ? php if ( $ _POST [ ' promote_id ' ] = = 0 ) : ? > selected<?php endif;?> >官方渠道< / option >
< / select >
< / div >
< input type = "hidden" name = "promote_type" value = "{$_GET['promote_type']}" / >
<!-- <input type="hidden" name="promote_id" value="{$_GET['promote_id']}"/> -->
<!-- <input type="hidden" name="game_name" value="{$_GET['game_name']}"/> -->
< div class = "input-list" >
< input type = "text" name = "pay_order_number" placeholder = "请输入支付订单号" class = "" value = "{:I('pay_order_number')}" style = "width: 180px" / >
@ -199,7 +253,7 @@
< / script >
< script type = "text/javascript" >
//导航高亮
highlight_subnav('{:U('Finance/gameStatistics' )}');
highlight_subnav('{:U("FinancePromote/index" )}');
$(function(){
$('.page a').click(function () {
@ -265,44 +319,56 @@
});
});
$("#game_id").change(function(){
function get_game_list()
{
var game_name = "{:I('game_name')}";
$.ajax({
url:"{:U('Ajax/getSpendServer')}",
url:"{:U('Finance/getGameList ')}",
type:"post",
data:{game_id:$("#game_id option:selected").attr('game-id' )},
data:{partner_id:$("#partner_id option:selected").val(), sdk_type:$("#sdk_version1 option:selected").val( )},
dataType:'json',
success:function(data){
str = "< option value = '' > 请选择区服 < / option > ";
var str = "< option value = '' > 请选择游戏 < / option > ";
for (var i in data){
str += "< option value = '"+data[i]. server_name+"'> "+data[i].server _name+"< / option > "
str += "< option value = '"+data[i]. game_name+"'" + ( game_name & & data [ i ] . game_name = = game_name ? ' selected ' : ' ' ) + " > "+data[i].game _name+"< / option > "
}
$("#server_id").empty();
$("#server_id").append(str);
$("#server_id").select2();
// console.log(str);
$("#game_name").empty();
$("#game_name").append(str);
// $("#server_id").select2();
}
})
}
$("#partner_id").change(function(){
get_game_list();
});
var game_id = "{:I('game_name')}";
var game_server = "{:I('server_id')}";
if(game_id){
$("#partner_id").change();
var promote_id = "{:I('promote_id')}";
$("#promote_level").change(function(){
$.ajax({
url:"{:U('Ajax/getSpendServer ')}",
type:"pos t",
data:{game_id:game_id,type:2 },
url:"{:U('Ajax/getPromotersByLevel ')}",
type:"ge t",
data:{level:$("#promote_level option:selected").val() },
dataType:'json',
success:function(data){
str = "< option value = '' > 请选择区服< / option > ";
success:function(response){
str = '< option value = "" > 请选择推广员< / option > < option value = "0" ' + ( promote_id & & 0 = = promote_id ? ' selected ' : ' ' ) + ' > 官方渠道< / option > ';
// $.each(response.data, function(index, item){
// console.log(item.id);
// str += '< option value = "'+item.id+' '+(promote_id && item.id == promote_id?'selected':'')+'" > '+item.nickname+'< / option > ';
// });
data = response.data;
for (var i in data){
str += "< option value = '"+data[i].server_name+"' " + ( game_server & & data [ i ] . server_name = = game_server ? ' selected ' : ' ' ) + " > "+data[i].server_name+"< / option > "
str += "< option value = '"+data[i]. id+"' " + ( promote_id & & data [ i ] . id = = promote_id ? ' selected ' : ' ' ) + " > "+data[i].nick name+"< / option > "
}
$("#server_id").empty();
$("#server_id").append(str);
$("#server_id").select2();
$("#promote_id").empty();
$("#promote_id").append(str);
$("#promote_id").select2();
}
})
}
});
$("#promote_level").change();
})
< / script >
< / block >