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.
101 lines
4.0 KiB
HTML
101 lines
4.0 KiB
HTML
<extend name="Public/promote_base"/>
|
|
<block name="css">
|
|
<link href="__CSS__/20180207/account.css" rel="stylesheet" >
|
|
<link href="https://cdn.bootcss.com/twitter-bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet">
|
|
<link rel="stylesheet" type="text/css" href="https://cdn.bootcss.com/font-awesome/4.6.0/css/font-awesome.min.css">
|
|
<link href="__CSS__/transfer.css" rel="stylesheet" >
|
|
</block>
|
|
<block name="body">
|
|
<div class="page-list normal_list promote-mychlid-list">
|
|
<div class="trunk-title">
|
|
<div class="location">
|
|
<div class="location-container">当前位置:<span>管理中心></span><span>{$promoteTypeName}管理</span></div>
|
|
</div>
|
|
<img src="__IMG__/20180207/icon_normal_ziqudao.png">
|
|
<span class="title_main"><a href="{:U('QrCodePromotion/add')}">新增</a></span>
|
|
</div>
|
|
<div class="trunk-content article">
|
|
<div class="trunk-list list_normal">
|
|
<table class="table normal_table">
|
|
<tr class="odd">
|
|
<th>ID</th>
|
|
<th>推广游戏名称</th>
|
|
<th>添加游戏时间</th>
|
|
<th>推广链接管理</th>
|
|
<th>背景图</th>
|
|
<th>操作</th>
|
|
</tr>
|
|
<empty name="records">
|
|
<tr><td colspan="10" 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="records" id="record" mod="2">
|
|
<tr data-id="{$record.id}" data-parent-id="{$record.parent_id}" class="<eq name='mod' value='1'>odd</eq>">
|
|
<td>{$record.id}</td>
|
|
<td>{$record.game_name}</td>
|
|
<td>{$record.create_time|date='Y-m-d H:i:s', ###}</td>
|
|
<td><a href="{:U('QrCodePromotion/linkLists', ['id'=>$record['id']])}" target="_blank">推广链接管理</a></td>
|
|
<td><img src="{$record.background_img}" style="height: 100px;"/></td>
|
|
<td>
|
|
<div class="partakebtn">
|
|
<a class="edit-setting" href="{:U('QrCodePromotion/edit', ['id' => $record['id']])}">编辑</a>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</volist>
|
|
</empty>
|
|
</table>
|
|
|
|
</div>
|
|
<div class="pagenation clearfix">
|
|
{$pagination}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
setValue('row','{:I("get.row",10)}');
|
|
</script>
|
|
</block>
|
|
<block name="script">
|
|
<script type="text/javascript" src="__JS__/20170831/select2.min.js"></script>
|
|
<link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
|
|
<link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
|
|
<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 src="__STATIC__/vue.js"></script>
|
|
<script src="__JS__/transfer.js"></script>
|
|
<script type="text/javascript">
|
|
$(function(){
|
|
$(".select_gallery").select2();
|
|
|
|
var promoteType = $('input[name=promote_type]').val()
|
|
var level = 0
|
|
var subLevel = 0
|
|
if (promoteType == 0) {
|
|
level = 2
|
|
subLevel = 3
|
|
} else if (promoteType == 1) {
|
|
level = 3
|
|
subLevel = 4
|
|
} else if (promoteType == 2) {
|
|
level = 3
|
|
}
|
|
|
|
$('#submit').click(function () {
|
|
var url = $(this).attr('url');
|
|
console.log(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;
|
|
});
|
|
|
|
})
|
|
</script>
|
|
</block>
|
|
|