|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<title>游戏登陆列表|----软件管理平台</title>
|
|
|
|
<link href="http://admin.vlcms.com/Public/icon.ico" type="image/x-icon" rel="shortcut icon">
|
|
|
|
<link rel="stylesheet" type="text/css" href="__CSS__/base.css" media="all">
|
|
|
|
<link rel="stylesheet" type="text/css" href="__CSS__/common.css" media="all">
|
|
|
|
<link rel="stylesheet" type="text/css" href="__CSS__/module.css">
|
|
|
|
<link rel="stylesheet" type="text/css" href="__CSS__/style.css" media="all">
|
|
|
|
<link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css" />
|
|
|
|
<link rel="stylesheet" type="text/css" href="__CSS__/default_color.css" media="all">
|
|
|
|
<script type="text/javascript" src="__STATIC__/jquery-2.0.3.min.js"></script>
|
|
|
|
<script src="__STATIC__/layer/layer.js" type="text/javascript"></script>
|
|
|
|
<script type="text/javascript" src="__STATIC__/layer/extend/layer.ext.js"></script>
|
|
|
|
<script type="text/javascript" src="__JS__/select2.min.js"></script>
|
|
|
|
</head>
|
|
|
|
<style>
|
|
|
|
html {
|
|
|
|
min-width:100%;
|
|
|
|
height: 1000px;
|
|
|
|
}
|
|
|
|
body {
|
|
|
|
padding: 0px;
|
|
|
|
}
|
|
|
|
.trunk-search .form-group {
|
|
|
|
margin-left: 10px;
|
|
|
|
}
|
|
|
|
.normal_table input {
|
|
|
|
position: relative;
|
|
|
|
padding: 5px;
|
|
|
|
border: 1px solid #E5E5E5;
|
|
|
|
border-radius: 4px;
|
|
|
|
height: 25px;
|
|
|
|
}
|
|
|
|
.normal_table td {
|
|
|
|
padding: 5px;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
.normal_table td select {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
.normal_table td button {
|
|
|
|
width: 70px;
|
|
|
|
height: 35px;
|
|
|
|
display: block;
|
|
|
|
background: #409eff;
|
|
|
|
color: #fff;
|
|
|
|
border: none;
|
|
|
|
border-radius: 4px;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
.normal_table td button.delete-row {
|
|
|
|
background-color: rgb(249,104,104);
|
|
|
|
}
|
|
|
|
.btn-row {
|
|
|
|
position: relative;
|
|
|
|
font-size: 11px;
|
|
|
|
margin-top: 28px;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
.btn-row button {
|
|
|
|
width: 70px;
|
|
|
|
height: 35px;
|
|
|
|
background: #409eff;
|
|
|
|
color: #fff;
|
|
|
|
border: none;
|
|
|
|
border-radius: 4px;
|
|
|
|
cursor: pointer;
|
|
|
|
display: inline-block;
|
|
|
|
padding: 0px;
|
|
|
|
}
|
|
|
|
.btn-row button.close-btn {
|
|
|
|
background: #E5E5E5;
|
|
|
|
color: #535875;
|
|
|
|
}
|
|
|
|
.form-group .static-input {
|
|
|
|
line-height: 32px;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
.trunk-search button {
|
|
|
|
width: 70px;
|
|
|
|
height: 35px;
|
|
|
|
display: block;
|
|
|
|
background: #409eff;
|
|
|
|
color: #fff;
|
|
|
|
border: none;
|
|
|
|
border-radius: 4px;
|
|
|
|
cursor: pointer;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
.info-row {
|
|
|
|
margin-top: 10px;
|
|
|
|
}
|
|
|
|
.info-row button {
|
|
|
|
width: auto;
|
|
|
|
height: 25px;
|
|
|
|
display: block;
|
|
|
|
background: #E5E5E5;
|
|
|
|
color: #535875;
|
|
|
|
border: none;
|
|
|
|
border-radius: 3px;
|
|
|
|
cursor: pointer;
|
|
|
|
display: inline-block;
|
|
|
|
margin-left: 10px;
|
|
|
|
padding: 0px 10px;
|
|
|
|
}
|
|
|
|
.info-row button.bind-btn {
|
|
|
|
background: #409eff;
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
.form-group {
|
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
|
|
|
.form-group label {
|
|
|
|
width: 100px;
|
|
|
|
display: inline-block;
|
|
|
|
text-align: right;
|
|
|
|
margin-right: 10px;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
.form-group input {
|
|
|
|
padding: 5px;
|
|
|
|
border: 1px solid #E5E5E5;
|
|
|
|
border-radius: 4px;
|
|
|
|
height: 24px;
|
|
|
|
width: 280px;
|
|
|
|
}
|
|
|
|
.form-group .static-input {
|
|
|
|
width: 280px;
|
|
|
|
}
|
|
|
|
.form-group select {
|
|
|
|
width: 290px;
|
|
|
|
}
|
|
|
|
.form-group textarea {
|
|
|
|
padding: 5px;
|
|
|
|
border: 1px solid #E5E5E5;
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
|
|
|
.clearfix:after {
|
|
|
|
content: "\20";
|
|
|
|
display: block;
|
|
|
|
height: 0;
|
|
|
|
clear: both;
|
|
|
|
}
|
|
|
|
.clearfix {
|
|
|
|
*zoom: 1;
|
|
|
|
}
|
|
|
|
.select2-container--open {
|
|
|
|
z-index: 1001;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<body>
|
|
|
|
<div id="main" class="main" style="min-height: 342px;">
|
|
|
|
<div class="page-search normal_list promoteCoin-record-search" style="padding: 20px;">
|
|
|
|
<div class="trunk-content article">
|
|
|
|
<div class="trunk-search clearfix" style="margin-bottom: 10px;">
|
|
|
|
<form method="post" class="clearfix">
|
|
|
|
<div class="clearfix">
|
|
|
|
<div class="form-group">
|
|
|
|
<label>游戏名称</label>
|
|
|
|
<select id="game-select" name="" class="select_gallery" <?php if($role):?>disabled<?php endif;?>>
|
|
|
|
<option value="0">请选择游戏</option>
|
|
|
|
<?php foreach($baseGames as $game):?>
|
|
|
|
<option value="<?=$game['id']?>">
|
|
|
|
<?=$game['name']?>
|
|
|
|
</option>
|
|
|
|
<?php endforeach;?>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label>角色ID</label>
|
|
|
|
<input type="text" id="role-id" name="role_id" class="txt normal_txt" placeholder="请输入角色ID" value="" style="width: 205px;">
|
|
|
|
<button id="search-role-btn" class="add-row" type="button">查询</button>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label>角色区服</label>
|
|
|
|
<p id="server-name" class="static-input">--</p>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label>角色名称</label>
|
|
|
|
<p id="role-name" class="static-input">--</p>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label>当前累充</label>
|
|
|
|
<p id="pay-amount" class="static-input">--</p>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label>当前模拟累充</label>
|
|
|
|
<p id="simulate-amount" class="static-input">--</p>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label>模拟发放金额</label>
|
|
|
|
<input type="text" id="amount" name="amount" class="txt normal_txt" placeholder="请输入模拟发放金额" value="">
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label>备注</label>
|
|
|
|
<textarea id="remark" name="remark" class="txt normal_txt" style="width: 280px;" rows="10" placeholder="请输入备注"></textarea>
|
|
|
|
<!-- <input type="text" name="remark" class="txt normal_txt" placeholder="请输入备注" value=""> -->
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label></label>
|
|
|
|
<button id="submit-btn" class="add-row" type="button">增加</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(".select_gallery").select2()
|
|
|
|
|
|
|
|
function isFloat(num){
|
|
|
|
if(!num) {
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
var strPreg = /^\d+(\.\d+)?$/;
|
|
|
|
if(!strPreg.test(num)) {
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
|
|
|
try{
|
|
|
|
if(parseFloat(num) != num) {
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
} catch(ex) {
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
return true
|
|
|
|
}
|
|
|
|
|
|
|
|
function isNumber(num){
|
|
|
|
if(!num) {
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
var strPreg = /^\d+$/
|
|
|
|
if(!strPreg.test(num)) {
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
return true
|
|
|
|
}
|
|
|
|
|
|
|
|
$('#bind-btn').click(function () {
|
|
|
|
var box = $('#bind-box')
|
|
|
|
layer.open({
|
|
|
|
title: '绑定玩家角色',
|
|
|
|
type: 1,
|
|
|
|
content: box,
|
|
|
|
area: ['500px', '250px'],
|
|
|
|
zIndex: 250,
|
|
|
|
scrollbar: false
|
|
|
|
})
|
|
|
|
});
|
|
|
|
|
|
|
|
$('#search-role-btn').click(function () {
|
|
|
|
var gameId = $('#game-select').val()
|
|
|
|
if (gameId == 0) {
|
|
|
|
return layer.msg('请选择游戏')
|
|
|
|
}
|
|
|
|
var roleId = $('#role-id').val()
|
|
|
|
if (roleId == '') {
|
|
|
|
return layer.msg('请输入角色ID')
|
|
|
|
}
|
|
|
|
$.ajax({
|
|
|
|
url: "{:U('Ajax/searchRoleInfo')}",
|
|
|
|
type: "get",
|
|
|
|
data: { base_game_id: gameId, role_id: roleId},
|
|
|
|
dataType: 'json',
|
|
|
|
success: function(result){
|
|
|
|
if (result.status == 1) {
|
|
|
|
$('#role-name').html(result.data.role_name)
|
|
|
|
$('#server-name').html(result.data.server_name)
|
|
|
|
$('#pay-amount').html(result.data.pay_amount)
|
|
|
|
$('#simulate-amount').html(result.data.simulate_amount)
|
|
|
|
} else {
|
|
|
|
layer.msg(result.message)
|
|
|
|
$('#role-name').html('查询失败')
|
|
|
|
$('#server-name').html('查询失败')
|
|
|
|
$('#pay-amount').html('查询失败')
|
|
|
|
$('#simulate-amount').html('查询失败')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
$('#submit-btn').on({
|
|
|
|
click: function () {
|
|
|
|
|
|
|
|
var gameId = $('#game-select').val()
|
|
|
|
if (gameId == 0) {
|
|
|
|
return layer.msg('请选择游戏')
|
|
|
|
}
|
|
|
|
var roleId = $('#role-id').val()
|
|
|
|
if (roleId == '') {
|
|
|
|
return layer.msg('请输入角色ID')
|
|
|
|
}
|
|
|
|
var amount = $('#amount').val()
|
|
|
|
var remark = $('#remark').val()
|
|
|
|
|
|
|
|
if (gameId == 0) {
|
|
|
|
return layer.msg('请选择游戏')
|
|
|
|
}
|
|
|
|
if (roleId == '') {
|
|
|
|
return layer.msg('请输入角色ID')
|
|
|
|
}
|
|
|
|
if (amount == '') {
|
|
|
|
return layer.msg('请输入模拟发放金额')
|
|
|
|
}
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
url: "{:U('saveSimulateSpend')}",
|
|
|
|
type: "post",
|
|
|
|
data: { base_game_id: gameId, amount: amount, remark: remark, role_id: roleId},
|
|
|
|
dataType: 'json',
|
|
|
|
success: function(result){
|
|
|
|
if (result.status == 1) {
|
|
|
|
layer.msg(result.message, function(){
|
|
|
|
parent.window.location.href = parent.window.location.href
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
layer.msg(result.message)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
})
|
|
|
|
$('#close-btn').on({
|
|
|
|
click: function () {
|
|
|
|
var index = parent.layer.getFrameIndex(window.name)
|
|
|
|
parent.layer.close(index)
|
|
|
|
}
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|