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.
132 lines
5.7 KiB
HTML
132 lines
5.7 KiB
HTML
5 years ago
|
<extend name="Public/promote_base"/>
|
||
|
<block name="css">
|
||
|
<link href="__CSS__/20180207/mixed.css" rel="stylesheet">
|
||
|
<style>
|
||
|
.trunk-list {position: relative;min-height: 66vh;}
|
||
|
.pagenation{position: relative;line-height: 5vh;}
|
||
|
</style>
|
||
|
</block>
|
||
|
<block name="body">
|
||
|
<div class="page-list normal_list siteGift-index-list">
|
||
|
<div class="trunk-title">
|
||
|
<div class="location">
|
||
|
<div class="location-container">当前位置:<span>联盟站点></span><span>礼包列表</span></div>
|
||
|
</div>
|
||
|
<img src="__IMG__/20180207/icon_normal_libao.png"><span class="title_main">礼包列表</span>
|
||
|
</div>
|
||
|
<div class="trunk-content article">
|
||
|
<div class="trunk-search clearfix">
|
||
|
<div class="tab">
|
||
|
<a href="{:U('add')}" class="submit" >添加礼包</a>
|
||
|
</div>
|
||
|
<form action="{:U('index',array('row'=>I('get.row')))}" method="post" enctype="multipart/form-data" class="marg_top20">
|
||
|
<div class="form-group normal_space fr">
|
||
|
<input type="submit" class="submit" value="查询">
|
||
|
</div>
|
||
|
<div class="form-group normal_space fr">
|
||
|
<select id="recommend_status" name="recommend_status" class="reselect select_gallery" style="min-width:200px;width: 175px;">
|
||
|
<option value="">推荐状态</option>
|
||
|
<option <eq name="Think.request.recommend_status" value="1">selected</eq> value="1">推荐</option>
|
||
|
<option <eq name="Think.request.recommend_status" value="2">selected</eq> value="2">热门</option>
|
||
|
<option <eq name="Think.request.recommend_status" value="3">selected</eq> value="3">最新</option>
|
||
|
<option <eq name="Think.request.recommend_status" value="0">selected</eq> value="0">不推荐</option>
|
||
|
</select>
|
||
|
</div>
|
||
|
<div class="form-group normal_space fr">
|
||
|
<input name="gift_name" class="txt normal_txt" placeholder="礼包名称" style="min-width:200px;width: 175px;" value="{$Think.request.gift_name}">
|
||
|
</div>
|
||
|
<div class="form-group normal_space fr">
|
||
|
<input name="game_name" class="txt normal_txt" placeholder="游戏名称" style="min-width:200px;width: 175px;" value="{$Think.request.game_name}">
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
<div class="trunk-list">
|
||
|
<div class="tabulation">
|
||
|
<table class="table normal_table">
|
||
|
<tr class="odd">
|
||
|
<th>游戏名称</th>
|
||
|
<th>游戏平台</th>
|
||
|
<th>礼包名称</th>
|
||
|
<th>剩余数量</th>
|
||
|
<th>推荐状态</th>
|
||
|
<th>礼包状态</th>
|
||
|
<th>添加时间</th>
|
||
|
<th>操作</th>
|
||
|
</tr>
|
||
|
<empty name="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="data" id="vo">
|
||
|
<tr id ="{$vo['id']}">
|
||
|
<td>{$vo.game_name}</td>
|
||
|
<td><eq name="vo.giftbag_version" value="1">安卓<else/>苹果</eq></td>
|
||
|
<td>{$vo.gift_name}</td>
|
||
|
<td>{:get_site_gift_num($vo['id'])}</td>
|
||
|
<td><notempty name="vo.recommend_status">{:get_info_status($vo['recommend_status'],1)}<else />不推荐</notempty></td>
|
||
|
<td>{:get_info_status($vo['status'],26)}</td>
|
||
|
<td>{$vo.create_time|time_format}</td>
|
||
|
<td class="op">
|
||
|
<a class="edit" href="{:U('edit',['id'=>$vo['id'],'p'=>$p])}"><!--<img src="__IMG__/20170831/icon_edit.png">-->编辑</a>
|
||
|
<a class="del_gift" href="javascript:;" data-id ="{$vo['id']}"><!--<img src="__IMG__/20170831/icon_del.png">-->删除</a>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</volist>
|
||
|
</empty>
|
||
|
</table>
|
||
|
</div>
|
||
|
<div class="pagenation clearfix">
|
||
|
<a class="sch-btn" id="export_data" href="{:U('Export/sitegift',array(
|
||
|
'game_name'=>I('game_name'),
|
||
|
'gift_name'=>I('gift_name'),
|
||
|
'recommend_status'=>I('recommend_status'),
|
||
|
'xlsname'=>'联盟站点_礼包列表'
|
||
|
))}" >导出</a>
|
||
|
{$_page}
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</block>
|
||
|
<block name="script">
|
||
|
<script type="text/javascript" src="__JS__/20170831/select2.min.js"></script>
|
||
|
<script type="text/javascript">
|
||
|
setValue('row','{:I("get.row",10)}');
|
||
|
var sub = true;
|
||
|
function save() {
|
||
|
if(!sub){
|
||
|
return false;
|
||
|
}
|
||
|
var data = $("#data").serialize();
|
||
|
sub = false;
|
||
|
$.ajax({
|
||
|
type: "post",
|
||
|
url: "{:U('SiteBase/save')}",
|
||
|
dataType: "json",
|
||
|
data: data,
|
||
|
success: function (res) {
|
||
|
if (res.status != 0) {
|
||
|
layer.msg(res.info, {icon: 1});
|
||
|
}
|
||
|
else {
|
||
|
sub = true;
|
||
|
layer.msg(res.info, {icon: 2});
|
||
|
}
|
||
|
},
|
||
|
error: function () {
|
||
|
layer.msg('服务器故障', {icon: 5});
|
||
|
}
|
||
|
})
|
||
|
}
|
||
|
|
||
|
//删除操作
|
||
|
$('.del_gift').click(function(){
|
||
|
var val = $(this).attr("data-id");
|
||
|
var url = "{:U('del')}";
|
||
|
del_action(val,url);
|
||
|
});
|
||
|
|
||
|
|
||
|
$(".select_gallery").select2();
|
||
|
</script>
|
||
|
</block>
|