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.

494 lines
18 KiB
HTML

5 years ago
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="UTF-8">
<title><eq name="is_launch" value="1">投放平台列表<else />渠道信息</eq>|----软件管理平台</title>
<link href="http://admin.vlcms.com/Public/icon.ico" type="image/x-icon" rel="shortcut icon">
<link href="__CSS__/20180207/common.css" rel="stylesheet" type="text/css">
<link href="__CSS__/20180207/game.css" rel="stylesheet" type="text/css">
<style>
.data_list table {
border: solid 1px #cbcbcb;
width: 100%;
clear: both;
border-collapse: collapse;
font-size: 13px;
border-spacing: 0;
}
tr{margin:0;padding:0;}
.data_list table th {
background-color: #F0F5F7;
box-shadow: 0px -3px 0px 0px #EDEDED inset;
height: 37px;
line-height: 37px;
border-bottom: solid 1px #b6cad2;
text-indent: 11px;
text-align: center;
height: 50px;
line-height: 50px;
}
.data_list table td {
line-height: 38px; text-align: center; position: relative;
border-right: dotted 1px #c7c7c7;
}
.zwm_tab tbody tr {height:44px;}
.zclip embed {margin-top:-27px;}
</style>
<script type="text/javascript" src="__STATIC__/jquery-2.0.3.min.js"></script>
<script type="text/javascript" src="__JS__/20170831/common.js"></script>
</head>
<style>
html{width:100%;min-width: auto;}
body {
padding: 0px;
}
.main {padding:0 20px 20px;}
.zwm_tab tbody tr~tr{border-top:dotted 1px #c7c7c7;}
</style>
<body>
<div id="main" class="main" style="min-height: 342px;">
<div class="cf" style="padding-top:20px;">
</div>
<eq name="is_launch" value="1">
<!--投放-->
<!-- 数据列表 -->
<div class="data_list box_mt">
<div class="">
<table class="zwm_tab">
<!-- 表头 -->
<thead>
<tr>
<th>投放平台</th>
<th>创建时间</th>
<eq name="notchild" value="1">
<th>游戏包</th>
<th>下载链接</th>
<th>二维码</th>
<th>推广注册</th>
</eq>
<th>备注</th>
</tr>
</thead>
<!-- 列表 -->
<tbody>
<empty name="list_data">
<tr>
<td colspan="7" style="text-align: center;height: 45vh;">
<img src="__IMG__/20180207/icon_wushujv2.png"/>
<p style="line-height: 40px;color: #A5A5A5;">暂无数据</p>
</td>
</tr>
<else />
<volist name="list_data" id="data">
<tr><?php $platform_name = get_launch_platform_name($data['platform_id'],'--');?>
<td>{$platform_name}</td>
<td>{$data.launch_time|date='Y-m-d H:i:s',###}</td>
<eq name="notchild" value="1">
<eq name="Think.get.sdk_version" value="1">
<td>
<p class="p_icon">
<notempty name="data.launch_down_url">
<a class="js_xzb" target="_blank" href="{$data.launch_down_url}">
<img src="__IMG__/20180207/icon_download.png" width="20" height="20" alt="">
</a>
<else />
<a class="" href="javascript:;">
<img src="__IMG__/20180207/icon_download2.png" width="20" height="20" alt="">
</a>
</notempty>
</p>
</td>
<td>
<p class="p_android p_icon">
<notempty name="data.launch_down_url">
<a class="js_androidcopy copy" href="javascript:;" version="1" data-platform="{$platform_name}" data-url="http://{$_SERVER['HTTP_HOST']}{:U('Down/launch_down_file',array('platform_id'=>$data['platform_id'],'position'=>$data['position'],'game_id'=>$data['game_id'],'promote_id'=>$data['promote_id']))}">
<img src="__IMG__/20180207/icon_copy.png" width="16" height="16" alt="">
</a>
<else/>
<a class="" href="javascript:;" version="1" data-url="" >
<img src="__IMG__/20180207/icon_copy2.png" width="16" height="16" alt="">
</a>
</notempty>
</p>
</td>
<td>
<p class="erwei_p p_icon">
<span class="erwei_span">
<notempty name="data.launch_down_url">
<a class="zwm_aerwei js_erwei" href="javascript:;" enable_status="{$data.enable_status}">
<img src="__IMG__/20180207/icon_samllerwei.png" width="" height="" alt="二维码">
</a>
<else/>
<a class="" href="javascript:;">
<img src="__IMG__/20180207/icon_samllerwei2.png" width="" height="" alt="二维码">
</a>
</notempty>
<span class="imgbig_erwei" >
<img class="" src="{:U('Apply/qrcode',['url'=>base64_encode(base64_encode('http://'.$_SERVER['HTTP_HOST'].U('Home/promotionofregistration',['pid'=>$data['promote_id'],'gid'=>$relation_game_id,'lid'=>$data['platform_id'],'p'=>$data['position']])))])}" width="" height="" alt="二维码">
<a class="btn_erwei">下载二维码图片</a>
</span>
</span>
</p>
</td>
<td>
<a href="{:U('Home/promotionofregistration',['pid'=>$data['promote_id'],'gid'=>$relation_game_id,'lid'=>$data['platform_id'],'p'=>$data['position']])}" class="a_promition" target="view_window">推广注册</a>
</td>
<else />
<td>
<p class="p_icon">
<notempty name="data.launch_down_url">
<a class="js_xzb" target="_blank" href="{$data.launch_down_url}">
<img src="__IMG__/20180207/icon_download.png" width="20" height="20" alt="">
</a>
<else />
<a class="" href="javascript:;">
<img src="__IMG__/20180207/icon_download2.png" width="20" height="20" alt="">
</a>
</notempty>
</p>
</td>
<td>
<p class="p_ios p_icon">
<notempty name="data.launch_plist_url">
<a class="js_ioscopy copy" href="javascript:;" version="2" data-platform="{$platform_name}" data-url="http://{$_SERVER['HTTP_HOST']}{:U('Down/launch_down_file',array('platform_id'=>$data['platform_id'],'position'=>$data['position'],'game_id'=>$data['game_id'],'promote_id'=>$data['promote_id']))}">
<img src="__IMG__/20180207/icon_copy.png" width="16" height="16" alt="">
</a>
<else/>
<a class="" href="javascript:;" version="2" data-url="" >
<img src="__IMG__/20180207/icon_copy2.png" width="16" height="16" alt="">
</a>
</notempty>
</p>
</td>
<td>
<p class="erwei_p p_icon">
<span class="erwei_span">
<notempty name="data.launch_plist_url">
<a class="zwm_aerwei js_erwei" href="javascript:;" enable_status="{$data.enable_status}">
<img src="__IMG__/20180207/icon_samllerwei.png" width="" height="" alt="二维码" >
</a>
<else/>
<a class="" href="javascript:;">
<img src="__IMG__/20180207/icon_samllerwei2.png" width="" height="" alt="二维码">
</a>
</notempty>
<span class="imgbig_erwei" >
<img class="" src="{:U('Apply/qrcode',['url'=>base64_encode(base64_encode('http://'.$_SERVER['HTTP_HOST'].U('Home/promotionofregistration',['pid'=>$data['promote_id'],'gid'=>$relation_game_id,'lid'=>$data['platform_id'],'p'=>$data['position']])))])}" width="" height="" alt="二维码">
<a class="btn_erwei">下载二维码图片</a>
</span>
</span>
</p>
</td>
<td>
<a href="{:U('Home/promotionofregistration',['pid'=>$data['promote_id'],'gid'=>$relation_game_id,'lid'=>$data['platform_id'],'p'=>$data['position']])}" class="a_promition" target="view_window">推广注册</a>
</td>
</eq>
</eq>
<td style="width:210px;"><p title="{$data.remark}" style="width:200px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:block;margin:0 auto;">{$data.remark}</p></td>
</tr>
</volist>
</empty>
</tbody>
</table>
</div>
</div>
<div class="pagenation clearfix">
<a class="sch-btn" id="export_data" href="{:U('Export/game_apply_launch',array(
'applyid'=>I('applyid'),
'sdk_version'=>I('sdk_version'),
'rgid'=>I('rgid'),'notchild'=>$notchild,
'xlsname'=>'游戏管理_游戏列表_'.($notchild==1?'我的游戏':'子渠道游戏').'_投放平台列表'
))}" >导出</a>
{$_page}
</div>
<else />
<!--渠道-->
<div class="data_list box_mt">
<div class="">
<table class="zwm_tab">
<!-- 表头 -->
<thead>
<tr>
<th>创建时间</th>
<eq name="notchild" value="1">
<th>游戏包</th>
<th>下载链接</th>
<th>二维码</th>
<th>推广注册</th>
</eq>
</tr>
</thead>
<tbody>
<empty name="list_data">
<tr>
<td colspan="5" style="text-align: center;height: 45vh;">
<img src="__IMG__/20180207/icon_wushujv2.png"/>
<p style="line-height: 40px;color: #A5A5A5;">暂无数据</p>
</td>
</tr>
<else />
<volist name="list_data" id="data">
<tr>
<td>{$data.apply_time|date='Y-m-d H:i:s',###}</td>
<eq name="notchild" value="1">
<eq name="Think.get.sdk_version" value="1">
<td>
<p class="p_icon">
<notempty name="data.pack_url">
<a class="js_xzb" target="_blank" href="{$data.pack_url}">
<img src="__IMG__/20180207/icon_download.png" width="20" height="20" alt="">
</a>
<else />
<a class="" href="javascript:;">
<img src="__IMG__/20180207/icon_download2.png" width="20" height="20" alt="">
</a>
</notempty>
</p>
</td>
<td>
<p class="p_android p_icon">
<notempty name="data.pack_url">
<a class="js_androidcopy copy" href="javascript:;" version="1" data-platform="{$platform_name}" data-url="http://{$_SERVER['HTTP_HOST']}{:U('Down/down_file',array('game_id'=>$data['game_id'],'promote_id'=>$data['promote_id']))}">
<img src="__IMG__/20180207/icon_copy.png" width="16" height="16" alt="">
</a>
<else/>
<a class="" href="javascript:;" version="1" data-url="" >
<img src="__IMG__/20180207/icon_copy2.png" width="16" height="16" alt="">
</a>
</notempty>
</p>
</td>
<td>
<p class="erwei_p p_icon">
<span class="erwei_span">
<notempty name="data.pack_url">
<a class="zwm_aerwei js_erwei" href="javascript:;" enable_status="{$data.enable_status}">
<img src="__IMG__/20180207/icon_samllerwei.png" width="" height="" alt="二维码">
</a>
<else/>
<a class="" href="javascript:;">
<img src="__IMG__/20180207/icon_samllerwei2.png" width="" height="" alt="二维码">
</a>
</notempty>
<span class="imgbig_erwei" >
<img class="" src="{:U('Apply/qrcode',['url'=>base64_encode(base64_encode('http://'.$_SERVER['HTTP_HOST'].U('Home/promotionofregistration',['pid'=>$data['promote_id'],'gid'=>$relation_game_id])))])}" width="" height="" alt="二维码">
<a class="btn_erwei">下载二维码图片</a>
</span>
</span>
</p>
</td>
<td>
<a href="{:U('Home/promotionofregistration',['pid'=>$data['promote_id'],'gid'=>$relation_game_id])}" class="a_promition" target="view_window">推广注册</a>
</td>
<else />
<td>
<p class="p_icon">
<notempty name="data.pack_url">
<a class="js_xzb" target="_blank" href="{$data.pack_url}">
<img src="__IMG__/20180207/icon_download.png" width="20" height="20" alt="">
</a>
<else />
<a class="" href="javascript:;">
<img src="__IMG__/20180207/icon_download2.png" width="20" height="20" alt="">
</a>
</notempty>
</p>
</td>
<td>
<p class="p_ios p_icon">
<notempty name="data.plist_url">
<a class="js_ioscopy copy" href="javascript:;" version="2" data-platform="{$platform_name}" data-url="http://{$_SERVER['HTTP_HOST']}{:U('Down/down_file',array('game_id'=>$data['game_id'],'promote_id'=>$data['promote_id']))}">
<img src="__IMG__/20180207/icon_copy.png" width="16" height="16" alt="">
</a>
<else/>
<a class="" href="javascript:;" version="2" data-url="" >
<img src="__IMG__/20180207/icon_copy2.png" width="16" height="16" alt="">
</a>
</notempty>
</p>
</td>
<td>
<p class="erwei_p p_icon">
<span class="erwei_span">
<notempty name="data.plist_url">
<a class="zwm_aerwei js_erwei" href="javascript:;" enable_status="{$data.enable_status}">
<img src="__IMG__/20180207/icon_samllerwei.png" width="" height="" alt="二维码" >
</a>
<else/>
<a class="" href="javascript:;">
<img src="__IMG__/20180207/icon_samllerwei2.png" width="" height="" alt="二维码">
</a>
</notempty>
<span class="imgbig_erwei" >
<img class="" src="{:U('Apply/qrcode',['url'=>base64_encode(base64_encode('http://'.$_SERVER['HTTP_HOST'].U('Home/promotionofregistration',['pid'=>$data['promote_id'],'gid'=>$relation_game_id])))])}" width="" height="" alt="二维码">
<a class="btn_erwei">下载二维码图片</a>
</span>
</span>
</p>
</td>
<td>
<a href="{:U('Home/promotionofregistration',['pid'=>$data['promote_id'],'gid'=>$relation_game_id])}" class="a_promition" target="view_window">推广注册</a>
</td>
</eq>
</eq>
</tr>
</volist>
</empty>
</tbody>
</table>
</div>
</div>
</eq>
</div>
<script src="__STATIC__/zeroclipboard/jquery.zclip.min.js"></script>
<script src="__STATIC__/layer/layer.js"></script>
<script>
setValue('row','{:I("get.row",10)}');
$(function() {
if (navigator.userAgent.indexOf('Firefox') >= 0) {
$(".btn_erwei").text("右击保存图片");
}
var row = '{:I("get.row",10)}';
//下载二维码
$(".btn_erwei").click(function(){
var img_url= "http://{$_SERVER['HTTP_HOST']}"+ $(this).siblings("img").attr("src");
var $a = $("<a></a>").attr("href", img_url).attr("download", "img.png");
$a[0].click();
});
$("#search").click(function () {
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.href = url;
});
$('input[name="small"]').keyup(function(event) {
var e = event || window.event;
if(e.keyCode == 13) {
$('#search').click();
}
return false;
});
$(".js_erwei").click(function(){
var en=$(this).attr('enable_status');
if(en !='1'){
layer.msg('暂无下载', {
icon: 7,
time: 2000 //2秒关闭如果不配置默认是3秒
});
return;
}
var that=$(this);
that.closest('table').find('.js_erwei').removeClass('active');
that.closest('table').find('.imgbig_erwei').hide();
var imgb = that.siblings('.imgbig_erwei');
if (that.hasClass('active')) {
that.removeClass('active');
imgb.hide();
} else {
that.addClass('active');
imgb.show();
}
//判断但是最后两条信息时,点击小的二维码,大的二维码在上面显示
var index = that.closest('tr').index();
if (parseInt(row) - parseInt(index + 1) < 2){
that.next().css({
top:'auto',
bottom: '22px'
});
}
$(document).on('click',function(event) {
var event = event || window.event;
var target = $(event.target);
if (target.hasClass('erwei_span') || target.closest('.erwei_span').length>0) {
} else {
imgb.hide();
}
});
});
$('a.copy').zclip({
path: '__STATIC__/zeroclipboard/ZeroClipboard.swf',
copy: function(){
var url=$(this).attr('data-url');
var host='http://'+'{:$_SERVER['HTTP_HOST']}';
if(url==host){
return '';
}else{
return $(this).attr('data-url');
}
},
beforeCopy:function(){
$(this).addClass("proc");
},
afterCopy:function(){
$(this).removeClass("copy");
if( $(this).attr('data-url')=="" || $(this).attr('data-url')== null|| $(this).attr('data-url')== 'http://'+'{:$_SERVER['HTTP_HOST']}' ){
layer.msg("暂无下载内容",{icon:2});
}else{
if( $(this).attr('version')==1){
layer.msg($(this).attr('data-platform')+"下载复制成功",{icon:1,time:1000});
}else{
layer.msg($(this).attr('data-platform')+"下载复制成功",{icon:1,time:1000});
}
}
}
});
});
</script>
</body>
</html>