下载链接管理后台
parent
8261512ba3
commit
60f2c62fe6
@ -0,0 +1,235 @@
|
||||
<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;}
|
||||
/*.layui-layer-dialog .layui-layer-content{color:red}*/
|
||||
</style>
|
||||
<!-- 标题栏 -->
|
||||
<div class="cf main-place top_nav_list navtab_list">
|
||||
<div class="fr">
|
||||
|
||||
</div>
|
||||
<h3 class="page_title">下载链接</h3>
|
||||
|
||||
<p class="description_text">说明:下载链接信息解析</p>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="cf top_nav_list">
|
||||
<!-- <div class="fl button_list">
|
||||
<div class="tools">
|
||||
<if condition="C(SUPPORT_AUTO_AUDIT) eq 0">
|
||||
<a class="ajax-get" target-form="ids" url='{:U("set_config_auto_audit",array("val"=>1,"config_key"=>"SUPPORT_AUTO_AUDIT"))}'><span class="button_icon button_icon4"></span>开启自动审核</a>
|
||||
<else/>
|
||||
<a class="ajax-get" target-form="ids" url='{:U("set_config_auto_audit",array("val"=>0,"config_key"=>"SUPPORT_AUTO_AUDIT"))}'><span class="button_icon button_icon5"></span>关闭自动审核</a>
|
||||
</if>
|
||||
</div>
|
||||
|
||||
</div> -->
|
||||
<!-- 高级搜索 -->
|
||||
<div class="jssearch fl cf search_list">
|
||||
|
||||
<div class="input-list search-title-box">
|
||||
<label>下载链接:</label>
|
||||
</div>
|
||||
<div class="input-list">
|
||||
<input type="text" name="link" placeholder="下载链接" value="">
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="input-list">
|
||||
<label>链接类型:</label>
|
||||
<select name="link_type">
|
||||
<option value="0">全部</option>
|
||||
<option value="1">复制下载链接</option>
|
||||
<option value="2">落地页下载链接</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="input-list">
|
||||
<a class="sch-btn" href="javascript:;" id="search" url="{:U('linkInfo')}">搜索</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 数据列表 -->
|
||||
<div class="data_list">
|
||||
<div class="">
|
||||
<table>
|
||||
<!-- 表头 -->
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
|
||||
<th>推广员账号</th>
|
||||
<th>游戏名称</th>
|
||||
<th>有效时间</th>
|
||||
<th>申请时间</th>
|
||||
<th>链接类型</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<!-- 列表 -->
|
||||
<tbody>
|
||||
<empty name ="params">
|
||||
<td colspan="14" class="text-center"> aOh! 暂时还没有内容! </td>
|
||||
<else />
|
||||
|
||||
<tr>
|
||||
|
||||
<td>{$params['account']}</td>
|
||||
<td>{$params['game_name']}</td>
|
||||
<td>{$params['expires_in']}</td>
|
||||
<td>{$params['created_at']}</td>
|
||||
<td>{$params['type']}</td>
|
||||
|
||||
</tr>
|
||||
</empty>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</block>
|
||||
|
||||
<block name="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 src="__STATIC__/layer/layer.js" type="text/javascript"></script>
|
||||
<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">
|
||||
<volist name=":I('get.')" id="vo">
|
||||
Think.setValue('{$key}',"{$vo}");
|
||||
</volist>
|
||||
$(".select_gallery").select2();
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
//导航高亮
|
||||
highlight_subnav('{:U('Support/lists')}');
|
||||
$(function(){
|
||||
//搜索功能
|
||||
$("#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;
|
||||
});
|
||||
|
||||
|
||||
|
||||
//回车自动提交
|
||||
$('.jssearch').find('input').keyup(function(event){
|
||||
if(event.keyCode===13){
|
||||
$("#search").click();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
layer.config({
|
||||
extend: 'extend/layer.ext.js'
|
||||
});
|
||||
|
||||
$(".jujue").click(function(){
|
||||
var id=$(this).attr('data-id');
|
||||
layer.prompt({title: '审核意见', formType: 2}, function(text, index){
|
||||
|
||||
$.ajax({
|
||||
url: "{:U('refuse_notice')}",
|
||||
type:"POST",
|
||||
dataType: 'json',
|
||||
data: {id:id,verify_remark:text},
|
||||
success:function(data){
|
||||
if(data.status==0){
|
||||
layer.msg(data.msg,{icon:2});
|
||||
}else{
|
||||
layer.msg('操作成功!',{icon:1});
|
||||
setTimeout(function(){
|
||||
window.location.href="{:U('lists',$_SERVER['REQUEST_URI'])}";
|
||||
},1500);
|
||||
}
|
||||
},
|
||||
error:function(){
|
||||
|
||||
}
|
||||
})
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
$(".notice_pro").click(function(){
|
||||
var id=$(this).attr('data-id');
|
||||
layer.prompt({title: '实际发放数量', formType: 0}, function(text1, index){
|
||||
if(text1 == 0 ){
|
||||
layer.msg('实际发放数量输入不正确',{icon:2});
|
||||
return false;
|
||||
}
|
||||
|
||||
if(!(/^(\+|-)?\d+$/.test( text1 )) || text1 < 0){
|
||||
layer.msg('实际发放数量输入不正确',{icon:2});
|
||||
return false;
|
||||
}
|
||||
layer.prompt({title: '审核意见', formType: 2}, function(text, index){
|
||||
layer.close(index);
|
||||
$.ajax({
|
||||
url: "{:U('notice_pro')}",
|
||||
type:"POST",
|
||||
dataType: 'json',
|
||||
data: {id:id,verify_remark:text,verify_resource:text1},
|
||||
success:function(data){
|
||||
if(data.status==0){
|
||||
layer.msg(data.msg,{icon:2});
|
||||
}else{
|
||||
layer.msg('操作成功!',{icon:1});
|
||||
setTimeout(function(){
|
||||
window.location.href="{:U('lists',$_SERVER['REQUEST_URI'])}";
|
||||
},1500);
|
||||
}
|
||||
},
|
||||
error:function(){
|
||||
|
||||
}
|
||||
})
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
})
|
||||
</script>
|
||||
</block>
|
Loading…
Reference in New Issue