You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
143 lines
5.4 KiB
143 lines
5.4 KiB
<!DOCTYPE html>
|
|
<html lang="zh-cn">
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<!--#include file="/widget/head.html"-->
|
|
<style>
|
|
.col-md-4, .col-md-1 {
|
|
display: inline !important;
|
|
float: left;
|
|
}
|
|
.inline {
|
|
display: inline !important;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body class="layui-layout-body" layadmin-themealias="default">
|
|
|
|
<div id="wrapper" class="layui-fluid">
|
|
<!--#include file="/widget/nav.html"-->
|
|
<div id="page-wrapper" class="layui-body layadmin-tabsbody-item layui-show layui-fluid layui-row layui-col-space15">
|
|
<div class="layui-card" id="card-page-wrapper">
|
|
<div class="">
|
|
|
|
<div class="layui-form row" >
|
|
<div class="col-md-1" style="width:80px;">
|
|
<p style="font-size: 18px;line-height: 35px;float: right">账号:</p>
|
|
</div>
|
|
<div class="col-md-4" style="width:300px;">
|
|
<input type="text" class="layui-input" id="Account" placeholder="输入账号">
|
|
</div>
|
|
<div class="col-md-2" style="width:80px;">
|
|
<p style="font-size: 18px;line-height: 35px;float: right">类型:</p>
|
|
</div>
|
|
<div class="col-md-2">
|
|
|
|
<select style="height: 30px;" id="AccountType" lay-search lay-filter>
|
|
<option value="0">Guest(0)</option>
|
|
<option value="1">Facebook(1)</option>
|
|
<option value="2">Google(2)</option>
|
|
<option value="3">Hero(3)</option>
|
|
<option value="4">HeroUSDK(4)</option>
|
|
<option value="5">QQ(5)</option>
|
|
<option value="6">WX(6)</option>
|
|
<option value="12">WXMini(12)</option>
|
|
</select>
|
|
</div>
|
|
<div class="col-md-1">
|
|
<button type="button" class="layui-btn pull-right" id="sele">查询</button>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<div id="Datatab" style="width:1100px;" class="row"></div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!--#include file="/widget/tail.html"-->
|
|
|
|
<script type="text/javascript">
|
|
|
|
$("#sele").click(function () {
|
|
var Accounttext = $("#Account").val();
|
|
var AccountType = $("#AccountType").val();
|
|
tableIns.reload({
|
|
url: Page.SvrIp +'/api/select_accountinfo', // 重新加载数据的 URL
|
|
where: {
|
|
token: cookie.get("token"),
|
|
Account: Accounttext,
|
|
AccountType: AccountType
|
|
}
|
|
});
|
|
});
|
|
|
|
var tableIns = layui.table.render({
|
|
elem: '#Datatab'
|
|
, url: Page.SvrIp +'/api/select_accountinfo' //数据接口
|
|
, where: {
|
|
token: cookie.get("token"),
|
|
Account:$("#Account").val(),
|
|
AccountType:$("#AccountType").val()
|
|
}
|
|
, page: true
|
|
, cols: [[
|
|
{ field: 'realmId', title: 'realmId', width: 100 },
|
|
{field: 'uid', title: 'uid', width: 100,},
|
|
{ field: 'nick', title: 'nick', width: 100 },
|
|
{ field: 'icon', title: 'icon', width: 80 },
|
|
{ field: 'level', title: 'level', width: 80 },
|
|
{ field: 'accountId', title: '账号', width: 100 },
|
|
{ field: 'IpAddr', title: 'IP地址', width: 100 },
|
|
{ field: 'CreateTime', title: '创建时间', width: 180 },
|
|
{ field: 'Gender', title: 'Gender', width: 100 },
|
|
{ field: 'Channel', title: 'Channel', width: 100 },
|
|
{ field: 'ChannelId', title: 'ChannelId', width: 50 },
|
|
{ field: 'LastLoginRealm', title: 'LastLoginRealm', width: 150 },
|
|
{ field: 'ExData', title: 'ExData', width: 150 },
|
|
{ field: 'CreateDeviceId', title: '创建设备', width: 180 },
|
|
|
|
]]
|
|
, parseData: function (res) { //res 即为原始返回的数据
|
|
if (res.ret !=0) {
|
|
if($("#Account").val()!=""){
|
|
layer.alert('找不到该账号!', { icon: 2 });
|
|
}
|
|
return {
|
|
"code": res.ret, //解析接口状态
|
|
"msg":"暂无", //解析提示文本
|
|
"count": 0, //解析数据长度
|
|
"data": null //解析数据列表};
|
|
}
|
|
}
|
|
return {
|
|
"code": res.ret, //解析接口状态
|
|
"msg": res.msg, //解析提示文本
|
|
"count": res.count, //解析数据长度
|
|
"data": res.data //解析数据列表
|
|
};
|
|
}
|
|
});
|
|
|
|
|
|
function getLocalTime(nS) {
|
|
return new Date(parseInt(nS) * 1000).toLocaleString().replace(/:\d{1,2}$/, ' ');
|
|
}
|
|
|
|
$(function () {
|
|
initPage('查询账号');
|
|
|
|
});
|
|
|
|
|
|
|
|
</script>
|
|
<script src="../js/coupon.js"></script>
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|