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.

381 lines
19 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">
<?php if($canViewUserRecharge):?>
<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>{$data.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>¥{$spendData.sum_count}</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>¥{$todayAddSpendData.sum_today}</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>¥{$mounthAddSpendData.sum_mounth}</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>{$data.yesterday}</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>¥{$spendData.yesterday}</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>{$data.today}</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>¥{$spendData.sum_today}</span></div> </li>
</ul>
<?php else:?>
<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>{$data.count}</span></div> </li>
<li><div class="icon"><span class="placeholder-graphic"><img src="__IMG__/20180207/icon_chongzhi1.png"/></span></div> <div class="text text2"><p>昨日注册用户</p><span>{$data.yesterday}</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>{$data.today}</span></div> </li>
</ul>
<?php endif;?>
</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="{$menu.icon|get_cover='path'}"></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>
<if condition="$gg_count gt 0">
<span style="width: 25px;height: 25px;float: left;position: relative;bottom:50px;left:55px;text-align: center;background: rgba(255, 0, 0, 1);border-radius:15px">
<a style="line-height: 25px;padding: 0px;color: #fff">{$gg_count}</a>
</span>
</if>
</span>
<span class="fxui-tab-tit"><a href="#;">消息</a>
<!-- <if condition="gg_count neq 0">-->
<!-- <span style="width: 25px;height: 25px;float: left;position: relative;bottom:50px;left:55px;text-align: center;background: rgba(255, 0, 0, 1)">-->
<!-- <a style="line-height: 25px;padding: 0;color: #fff">0</a>-->
<!-- </span>-->
<!-- </if>-->
</span>
<span class="fxui-tab-tit"><a href="#;">游戏活动</a>
<if condition="$zx_count gt 0">
<span style="width: 25px;height: 25px;float: left;position: relative;bottom:50px;left:83px;text-align: center;background: rgba(255, 0, 0, 1);border-radius:15px">
<a style="line-height: 25px;padding: 0px;color: #fff">{$zx_count}</a>
</span>
</if>
</span>
<span class="fxui-tab-tit"><a href="#;">资源号异常日志</a>
<if condition="$rz_count gt 0">
<span style="width: 25px;height: 25px;float: left;position: relative;bottom:50px;left:125px;text-align: center;background: rgba(255, 0, 0, 1);border-radius:15px">
<a style="line-height: 25px;padding: 0px;color: #fff">{$rz_count}</a>
</span>
</if>
</span>
<span class="fxui-tab-tit"><a href="#;">平台规则</a>
<if condition="$rules_count gt 0">
<!-- <span style="width: 25px;height: 25px;float: left;position: relative;bottom:50px;left:125px;text-align: center;background: rgba(255, 0, 0, 1);border-radius:15px">
<a style="line-height: 25px;padding: 0px;color: #fff">{$rules_count}</a>
</span> -->
</if>
</span>
<div id="u271_ann" class="annotation"></div>
<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 class="fxui-tab-nav">
<empty name="rz_list">
暂无异常日志
<else/>
<volist name="rz_list" id="zx">
<p>
<span class="title"><a href="index.php?s=/Home/TestResource/protectLogList/id/{$zx.id}.html">账号:{$zx.user_account},{$zx.detail}</a></span>
<span class="time">{$zx.update_time|date="Y/m/d",###}</span>
</p>
</volist>
</empty>
</div>
<div class="fxui-tab-nav">
<empty name="rules">
暂无平台规则
<else/>
<volist name="rules" id="rule">
<p onclick='pop_rulus_content({$rule.id}, 0)'>
<span class="title"><a >{$rule.title}</a></span>
<span class="time">{$rule.operate_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'}" style="width:80px"></td>
<td>{$data.game_name}</td>
<td><if condition="$data.server_version eq 0">安卓、iOS<elseif condition="$data.server_version 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>
<input type="hidden" id = "a" value="{$match_rules_route}">
<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>
var pop_ids = {$match_rules_id};
var match_rules_route ={$match_rules_route};
var pop_time = {$pop_time1};
var pop_time1 = pop_time[0]
if (pop_time1 < 8 ) {
var pop = false;
}else {
var pop = true;
}
console.log(pop_time)
function pop_rulus_content(id, force = false)
{
if (id instanceof Array) {
console.log(id)
var index = 0;
layer.open({
type: 2,
title: '平台规则',
area:['60%', '80%'],
btn:['下载文档'],
closeBtn: 0,
shadeClose: false,
skin: 'yourclass',
content: "{:U('Promote/popRuleDetail')}&id="+id+"&force="+force+"&pop="+pop,
yes:function(){window.location.href= match_rules_route[0]},
});
} else {
layer.open({
type: 2,
title: '平台规则',
area:['60%', '80%'],
closeBtn: 0,
shadeClose: false,
skin: 'yourclass',
btn:['下载文档'],
content: "{:U('Promote/popRuleDetail')}&id="+id+"&force="+force+"&pop="+pop,
end:function(){
return false;
},
yes:function(){window.location.href= match_rules_route[0]},
});
}
}
function pop_newrulus_content(id, force = false)
{
if (id instanceof Array) {
console.log(id)
var index = 0;
layer.open({
type: 2,
closeBtn: 0,
title: '平台规则',
area:['60%', '80%'],
shadeClose: false,
skin: 'yourclass',
btn:['下载文档'],
content: "{:U('Promote/popNewRuleDetail')}&id="+id+"&force="+force,
yes:function(){window.location.href= match_newrules_route},
});
} else {
layer.open({
type: 2,
title: '平台规则',
area:['60%', '80%'],
closeBtn: 0,
shadeClose: false,
skin: 'yourclass',
btn:['下载文档'],
content: "{:U('Promote/popNewRuleDetail')}&id="+id+"&force="+force,
end:function(){
return false;
}
});
}
}
if (pop_ids) {pop_rulus_content(pop_ids, true);}
function getCookie(name)
{
var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)");
if(arr=document.cookie.match(reg))
return unescape(arr[2]);
else
return null;
}
var tips = '{$tips}'
var message = '{$message}'
if(tips == 1) {
layer.open({
type: 1,
title: "提示",
area:['300px'],
closeBtn: 1,
shadeClose: true,
skin: 'yourclass',
btn:['确认','返回'],
content: '<div style="height:60px;display:flex;justify-content:center;align-content:center;align-items:center;">'+message+'</div>',
end:function(){window.location.href="{:U('Promote/index')}";},
yes:function(){window.location.href="{:U('Safe/modifyBaseInfo')}"},
});
}
$(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(page=1) {
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,
'page':page
},
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+"' style='width:80px'></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+"' style='width:80px'></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);
$(".pagenation").html(result._page);
}
}
});
}
</script>
</block>