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.

204 lines
11 KiB
HTML

<extend name="Public/promote_base"/>
<block name="css">
<link href="__CSS__/index/index.new.css" rel="stylesheet" >
</block>
<block name="body">
<div class="page-overview promote-index-overview index-overview clearfix poll">
<ul>
<li><div class="icon"><span class="placeholder-graphic"><img src="__IMG__/20180207/icon_chongzhi1.png"/></span></div><div class="text text2"><p>推广总用户</p><span>{$user_count}</span></div></li>
<li><div class="icon"><span class="placeholder-graphic"><img src="__IMG__/20180207/icon_chongzhi2.png"/></span></div><div class="text text1"><p>推广总充值</p><span>¥{$total_money}</span></div></li>
<li><div class="icon"><span class="placeholder-graphic"><img src="__IMG__/20180207/icon_chongzhi3.png"/></span></div><div class="text text3"><p>当日新增用户充值</p><span>¥{$today_add_user_money}</span></div></li>
<li><div class="icon"><span class="placeholder-graphic"><img src="__IMG__/20180207/icon_chongzhi5.png"/></span></div><div class="text text5"><p>当月新增用户充值</p><span>¥{$month_add_user_money}</span></div></li>
</ul>
<ul style="margin-top: 10px">
<li><div class="icon"><span class="placeholder-graphic"><img src="__IMG__/20180207/icon_chongzhi1.png"/></span></div><div class="text text2"><p>昨日注册用户</p><span>{$yesterday_user_regist_count}</span></div></li>
<li><div class="icon"><span class="placeholder-graphic"><img src="__IMG__/20180207/icon_chongzhi2.png"/></span></div><div class="text text1"><p>昨日充值金额</p><span>¥{$yesterday_total_money}</span></div></li>
<li><div class="icon"><span class="placeholder-graphic"><img src="__IMG__/20180207/icon_chongzhi3.png"/></span></div><div class="text text3"><p>今日注册用户</p><span>{$yesterday_regist_user_count}</span></div></li>
<li><div class="icon"><span class="placeholder-graphic"><img src="__IMG__/20180207/icon_chongzhi5.png"/></span></div><div class="text text5"><p>今日充值金额</p><span>¥{$yesterday_total_money}</span></div></li>
</ul>
</div>
<div class="index-tab-list">
<ul>
<li>
<div class="qcl-box">
<div class="qcl-box-hand"><span class="qcl-tit">快捷菜单</span><span class="more"><a href="{:U('quick_menu_list')}">自定义></a></span></div>
<div class="qcl-bnt">
<empty name="menu_list">
暂无数据
<else/>
<ul>
<volist name="menu_list" id="menu">
<li>
<a href="{$menu.url}">
<span><img src="https://fileuc.37376.com/180912-80cfe5b6e68941f4bfe4cd697765abb4.png"></span>
<span>{$menu.name}</span>
</a>
</li>
</volist>
</ul>
</empty>
</div>
</div>
</li>
<li>
<div class="fxui-tab">
<div class="fxui-tab-hand"><span class="fxui-tab-tit"><a href="#;">公告</a></span> <span class="fxui-tab-tit"><a href="#;">消息</a></span> <span class="fxui-tab-tit"><a href="#;">游戏活动</a></span><span class="more"><a href="{:U('msg_list')}">查看更多></a></span></div>
<div class="fxui-tab-nav">
<empty name="gg_list">
暂无公告
<else/>
<volist name="gg_list" id="gg">
<p>
<span class="title"><a href="index.php?s=/Home/Article/detail/id/{$gg.id}.html">{$gg.title}</a></span>
<span class="time">{$gg.update_time|date="Y/m/d",###}</span>
</p>
</volist>
</empty>
</div>
<div class="fxui-tab-nav">
<empty name="xx_list">
暂无消息
<else/>
<volist name="xx_list" id="xx">
<p>
<span class="title"><a href="index.php?s=/Home/Article/detail/id/{$xx.id}.html">{$xx.title}</a></span>
<span class="time">{$xx.update_time|date="Y/m/d",###}</span>
</p>
</volist>
</empty>
</div>
<div class="fxui-tab-nav">
<empty name="zx_list">
暂无活动信息
<else/>
<volist name="zx_list" id="zx">
<p>
<span class="title"><a href="index.php?s=/Home/Article/detail/id/{$zx.id}.html">{$zx.title}</a></span>
<span class="time">{$zx.update_time|date="Y/m/d",###}</span>
</p>
</volist>
</empty>
</div>
</div>
</li>
</ul>
</div>
<div class="page-list promote-index-list promote-index-list-news">
<div class="trunk-title-main"><span>开服信息</span></div>
<div class="trunk-content article">
<div class="trunk-search clearfix">
<div class="tab-bnt">
<div class="curr" rel="0">
<p>今日开服</p>
</div>
<div rel="1">
<p>开服预告</p>
</div>
</div>
<div class="form-group normal_space fr">
<input type="button" class="submit"onclick="seach()" value="查询">
</div>
<div class="form-group fr">
<label class="form-title select-title">游戏名称:</label>
<select name="game_id" class="reselect select_gallery" style="width:265px;">
<option value="">--请选择--</option>
<volist name="game_list" id="game">
<option value="{$game.id}" title="{$game.game_name}">{$game.game_name}</option>
</volist>
</select>
</div>
<input type="hidden" name="type" value="0">
</div>
<div class="trunk-list list_normal">
<table class="table normal_table">
<tr class="odd">
<th>游戏ICON</th>
<th>游戏名称</th>
<th>平台</th>
<th>开服时间</th>
<th>服务器信息</th>
</tr>
<empty name="today_open_server_list">
<tr><td colspan="8" style="text-align: center;height: 38vh;"><img src="__IMG__/20180207/icon_wushujv2.png"/><p style="line-height: 40px;color: #A5A5A5;">暂无数据</p></td></tr>
<else />
<volist name="today_open_server_list" id="data">
<tr>
<td><img src="{$data.icon|get_cover='path'}"></td>
<td>{$data.game_name}</td>
<td><if condition="$data.pay_type eq 0">安卓、iOS<elseif condition="$data.pay_type eq 1">安卓<else />iOS</if></td>
<td>{$data.start_time|date="m-d H:i",###}</td>
<td>{$data.server_name}</td>
</tr>
</volist>
</empty>
</table>
</div>
<div class="pagenation clearfix">
{$_page}
</div>
</div>
</div>.
<script type="text/javascript" src="__JS__/jquery.min.js"></script>
<script type="text/javascript" src="__JS__/index/jquery.fxTab.js"></script>
<script type="text/javascript" src="__JS__/20170831/select2.min.js"></script>
<script>
$(function(){
$(".select_gallery").select2();
$('.icon').each(function() {
var that = $(this),rotate = that.attr('data-rotate'),half=parseInt(rotate/2);
if (rotate<=0) {return ;}
that.count = 0;
});
$('.fxui-tab').fxuiTab();
$(".tab-bnt div").bind("click",function () {
$(".tab-bnt div").removeClass("curr");
$(this).addClass("curr");
$("input[name=type]").val($(this).attr("rel"));
seach();
})
});
function seach() {
var game_id = $("select[name=game_id]").val();
var type = $("input[name=type]").val();
jQuery.ajax({
type: 'POST',
url:'index.php?s=/Home/Promote/home_read_data.html',
data: {
'type':type,
'game_id':game_id,
},
dataType: 'JSON',
cache: false,
success: function (result) {
if (result.status==1){
var show = '<tr><td colspan="8" style="text-align: center;height: 38vh;"><img src="__IMG__/20180207/icon_wushujv2.png"/><p style="line-height: 40px;color: #A5A5A5;">暂无数据</p></td></tr>';
$(".odd").nextAll().remove();
$.each(result.data, function (index, item) {
if(index==0){
show="<tr>" +
"<td><img src='"+item.icon+"'></td>" +
"<td>"+item.game_name+"</td>" +
"<td>"+item.pay_type+"</td>" +
"<td>"+item.start_time+"</td>" +
"<td>"+item.server_name+"</td>" +
"</tr>"
}else{
show+="<tr>" +
"<td><img src='"+item.icon+"'></td>" +
"<td>"+item.game_name+"</td>" +
"<td>"+item.pay_type+"</td>" +
"<td>"+item.start_time+"</td>" +
"<td>"+item.server_name+"</td>" +
"</tr>"
}
});
$(".odd").after(show);
}
}
});
}
</script>
</block>