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.

94 lines
3.1 KiB
HTML

2 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: absolute;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>QQ群列表</span></div>
</div>
<img src="__IMG__/20180207/icon_normal_qqqun.png"><span class="title_main">QQ群列表</span>
</div>
<div class="trunk-content article">
<div class="trunk-search clearfix">
<div class="tab">
<a href="{:U('add')}" class="submit" >添加QQ群</a>
</div>
</div>
<div class="trunk-list">
<table class="table normal_table">
<tr class="odd">
<th>游戏名称</th>
<th>QQ群号</th>
<th>QQ群名称</th>
<th>加群人数</th>
<th>操作</th>
</tr>
<empty name="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="data" id="vo">
<tr id = "{$vo['id']}">
<td>{$vo.game_name}</td>
<td>{$vo.group_code}</td>
<td>{$vo.group_name}</td>
<td>{$vo.in_num}</td>
<td class="op">
<a class="edit" href="{:U('edit',['id'=>$vo['id']])}"><!--<img src="__IMG__/20170831/icon_edit.png">-->编辑</a>
<a class="del_group" href="javascript:;" data-id ="{$vo['id']}"><!--<img src="__IMG__/20170831/icon_del.png">-->删除</a>
</td>
</tr>
</volist>
</empty>
</table>
<div class="pagenation clearfix">{$_page}</div>
</div>
</div>
</div>
</block>
<block name="script">
<script type="text/javascript">
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_group').click(function(){
var val = $(this).attr("data-id");
var url = "{:U('del')}";
del_action(val,url);
});
</script>
</block>