|
|
<extend name="Public/promote_base"/>
|
|
|
|
|
|
<block name="css">
|
|
|
|
|
|
<link href="__CSS__/20180207/data.css" rel="stylesheet">
|
|
|
|
|
|
<link href="__CSS__/20180207/game.css" rel="stylesheet" >
|
|
|
|
|
|
</block>
|
|
|
|
|
|
|
|
|
|
|
|
<block name="body">
|
|
|
|
|
|
<div class="page-list normal_list apply-app_apply-list">
|
|
|
|
|
|
<div class="trunk-title">
|
|
|
|
|
|
<div class="location">
|
|
|
|
|
|
<div class="location-container">当前位置:<span>分包管理></span><span>APP分包</span></div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<img src="__IMG__/20180207/icon_normal_app.png"><span class="title_main">APP列表</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="trunk-content article" style="min-height: 65vh;">
|
|
|
<div class="trunk-search1 clearfix" style="padding-top:0">
|
|
|
<div class="tab">
|
|
|
|
|
|
<a href="{:U('Apply/app_index')}" class=" <eq name='Think.get.version' value=''>current</eq>">全部</a>
|
|
|
|
|
|
<a href="{:U('Apply/app_index',['version'=>1])}" class=" <eq name='Think.get.version' value='1'>current</eq>">安卓</a>
|
|
|
|
|
|
<a href="{:U('Apply/app_index',['version'=>2])}" class="wxnavbtn <eq name='Think.get.version' value='2'>current</eq>">苹果</a>
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="tabcon">
|
|
|
|
|
|
<table class="table normal_table">
|
|
|
|
|
|
<tr class="odd">
|
|
|
|
|
|
<th class="first"></th>
|
|
|
|
|
|
<th>APP名称</th>
|
|
|
|
|
|
<th>APP大小</th>
|
|
|
|
|
|
<th>运用平台</th>
|
|
|
|
|
|
<th class="last"><empty name="Think.config.APP_AUTO_PACK">申请状态<else/>操作</empty></th>
|
|
|
|
|
|
<th>复制链接</th>
|
|
|
</tr>
|
|
|
|
|
|
<volist name="data" id="vo" mod="2">
|
|
|
|
|
|
<tr class="<eq name='mod' value='1'>odd</eq>">
|
|
|
|
|
|
<td class="first">
|
|
|
|
|
|
<span></span>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
<td>
|
|
|
|
|
|
<span class="name_a">{$vo.name}</span>
|
|
|
|
|
|
</a>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
<td>
|
|
|
|
|
|
<empty name='vo["file_size"]'>0MB<else/>{$vo.file_size}</empty>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
<td>
|
|
|
|
|
|
<if condition="$vo['version'] eq 1">安卓</if>
|
|
|
|
|
|
<if condition="$vo['version'] eq 2">苹果</if>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
<empty name="Think.config.APP_AUTO_PACK">
|
|
|
|
|
|
<td class="pos wxlistbtnwrap">
|
|
|
|
|
|
<switch name="vo['apply_status']">
|
|
|
|
|
|
<case value="0"><a href="javascript:;" class="applybtn disabled wait">审核中</a></case>
|
|
|
|
|
|
<case value="1">
|
|
|
|
|
|
<a href="<if condition="$vo['dow_url'] eq '' ">javascript:<else/>{$vo.dow_url}</if>"
|
|
|
|
|
|
class="applybtn download notice">下载</a>
|
|
|
|
|
|
</case>
|
|
|
|
|
|
<case value="2"><a href="javascript:;" class="applybtn disabled fall">审核失败</a></case>
|
|
|
|
|
|
<default/>
|
|
|
|
|
|
<a href="javascript:;" class="applybtn applynow" onclick="app_apply({$vo.id},this)">马上申请</a>
|
|
|
|
|
|
</switch>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
<else/>
|
|
|
|
|
|
<td class="pos wxlistbtnwrap">
|
|
|
|
|
|
<if condition="$vo['enable_status'] == 1">
|
|
|
|
|
|
<a href="javascript:;" class="applybtn" onclick="appPack({$vo.id})">重新打包</a>
|
|
|
|
|
|
<else/>
|
|
|
|
|
|
<a href="javascript:;" class="applybtn" onclick="appPack({$vo.id})">打包</a>
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
|
|
<a href="<if condition="$vo['dow_url'] eq '' ">javascript:<else/>{$vo.dow_url}</if>" class="applybtn download notice">下载</a>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
</empty>
|
|
|
|
|
|
<td>
|
|
|
<div style="position:relative">
|
|
|
<notempty name="vo['dow_url']">
|
|
|
<!--http://{$_SERVER['HTTP_HOST']}{:ltrim($vo['dow_url'],'.')}-->
|
|
|
<a class="copy" href="javascript:;" data-url="http://{$_SERVER['HTTP_HOST']}{:U('Index/app_download',array('promote_id'=>$vo['promote_id'],'app_id'=>$vo['id']))}" >
|
|
|
<img src="/Public/Home/images/20180207/icon_copy.png" width="16" height="16" alt="">
|
|
|
</a>
|
|
|
<else/>
|
|
|
<a class="copy" href="javascript:;" data-url="" >
|
|
|
<img src="/Public/Home/images/20180207/icon_copy.png" width="16" height="16" alt="">
|
|
|
</a>
|
|
|
</notempty>
|
|
|
|
|
|
</div>
|
|
|
</td>
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
</volist>
|
|
|
|
|
|
</table>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="page-explain apply-app_apply-explain">
|
|
|
|
|
|
<div class="trunk-content article border_normal">
|
|
|
|
|
|
<table class="desccontent">
|
|
|
|
|
|
<tr><td class="title" style="width: 126px;display: inline-block;">APP申请功能说明:</td><td class="det">渠道只需申请一个APP,即可通过APP推广本平台的所有游戏;如需推广单个游戏,可到游戏分包里操作,申请单个游戏推广包。</td></tr>
|
|
|
|
|
|
</table>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</block>
|
|
|
|
|
|
<block name="script">
|
|
|
<script src="__STATIC__/zeroclipboard/jquery.zclip.min.js"></script>
|
|
|
<script src="__STATIC__/layer/layer.js"></script>
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
highlight_subnav('{:U('Apply/app_index')}');
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
$('.notice').click(function(){
|
|
|
|
|
|
var href = $(this).attr('href');
|
|
|
|
|
|
if(href == '#' || href =="javascript:"){
|
|
|
|
|
|
layer.msg('暂无下载内容', {icon: 2});
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
function app_apply(app_id,obj) {
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
|
type: "post",
|
|
|
|
|
|
url: "{:U('Apply/apply_app')}",
|
|
|
|
|
|
dataType: "json",
|
|
|
|
|
|
data: {app_id: app_id},
|
|
|
|
|
|
success: function (res) {
|
|
|
|
|
|
if (res.status == 1) {
|
|
|
|
|
|
$(obj).attr("onclick", "").html("审核中").addClass("proc wait");
|
|
|
|
|
|
layer.msg(res.msg, {icon: 1});
|
|
|
|
|
|
}
|
|
|
|
|
|
else {
|
|
|
|
|
|
layer.msg(res.msg, {icon: 2});
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
error: function () {
|
|
|
|
|
|
layer.msg('服务器故障', {icon: 5});
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function appPack($appid){
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
|
type:"post",
|
|
|
|
|
|
url:"{:U('Apply/app_package')}",
|
|
|
|
|
|
dataType:"json",
|
|
|
|
|
|
data:{appid:$appid},
|
|
|
|
|
|
success:function($result){
|
|
|
|
|
|
var iconType = $result.status == 0?2:1;
|
|
|
|
|
|
layer.msg($result.info,{icon:iconType},function(){location.reload();});
|
|
|
|
|
|
},
|
|
|
|
|
|
error:function(){
|
|
|
|
|
|
layer.msg('解析错误');
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$('.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{
|
|
|
layer.msg("复制成功",{icon:1,time:1000});
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
</script>
|
|
|
|
|
|
</block>
|
|
|
|