渠道统计列表

master
liuweiwen 5 years ago
parent af541bface
commit 7f57b53646

@ -181,26 +181,6 @@
</script>
<script type="text/javascript">
function reloadIframe(url) {
$("iframe").attr('src', url);
// document.getElementsByTagName('iframe').src=url;
}
$(".coin-detail").click(function () {
var pay_type = $(this).data('pay_type');
var url = $(this).data('url');
var title = pay_type == -1 ? '内充支出明细' : '平台币直充明细';
layer.open({
type: 2,
title: title,
shadeClose: true,
shade: 0.8,
area: ['70%', '80%'],
content: [url, 'no']
});
});
$('.page a').click(function () {
var href = $(this).attr('href');
$(this).removeAttr('href');
@ -240,44 +220,6 @@
$("#search").click();
}
});
$(".ljcz").click(function(){
var id = $(this).attr('data-value');
var game_name = "{:I('game_name')}";
var server_name = "{:I('server_id')}";
layer.open({
type: 2,
title: '游戏消费记录',
shadeClose: true,
shade: 0.8,
area: ['70%', '80%'],
content: 'admin.php?s=/Platform/chongzhi_detail/promote_id/'+id+'/game_name/'+game_name+'/server_name/'+server_name+''//iframe的url
});
});
function get_game_list()
{
var game_name = "{:I('game_name')}";
$.ajax({
url:"{:U('Finance/getGameList')}",
type:"post",
data:{partner_id:$("#partner_id option:selected").val(), sdk_type:$("#sdk_version1 option:selected").val()},
dataType:'json',
success:function(data){
var str = "<option value=''>请选择游戏</option>";
for (var i in data){
str += "<option value='"+data[i].game_name+"'"+(game_name && data[i].game_name == game_name?'selected':'')+">"+data[i].game_name+"</option>"
}
// console.log(str);
$("#game_name").empty();
$("#game_name").append(str);
// $("#server_id").select2();
}
})
}
$("#partner_id, #sdk_type").change(function(){
get_game_list();
});
$('#time-start').datetimepicker({
format: 'yyyy-mm-dd',
@ -313,34 +255,6 @@
return false;
});
$("#partner_id").change();
function get_partnet_list()
{
var partner_id = "{:I('partner_id')}";
$.ajax({
url:"{:U('Finance/getPartnetList')}",
type:"post",
data:{game_name:$("#game_name option:selected").val(), sdk_type:$("#sdk_version1 option:selected").val()},
dataType:'json',
success:function(data){
var str = "<option value=''>请选择合作公司</option>";
for (var i in data){
str += "<option value='"+data[i].id+"'"+(partner_id && data[i].id == partner_id?'selected':'')+">"+data[i].partner+"</option>"
}
// console.log(str);
$("#partner_id").empty();
$("#partner_id").append(str);
// $("#server_id").select2();
}
})
}
$("#game_name, #sdk_type").change(function(){
get_partnet_list();
});
$("#game_name").change();
})
</script>
</block>

Loading…
Cancel
Save