|
|
@ -25,15 +25,15 @@
|
|
|
|
<div class="trunk-search clearfix">
|
|
|
|
<div class="trunk-search clearfix">
|
|
|
|
<form action="{:U('Query/userRecharges',array('row'=>I('get.row')))}" method="post" enctype="multipart/form-data">
|
|
|
|
<form action="{:U('Query/userRecharges',array('row'=>I('get.row')))}" method="post" enctype="multipart/form-data">
|
|
|
|
<div class="form-group normal_space">
|
|
|
|
<div class="form-group normal_space">
|
|
|
|
<select name="game_id" class="reselect select_gallery" style="width: 220px;" >
|
|
|
|
<select id="game-select" name="game_id" class="reselect select_gallery" style="width: 220px;" >
|
|
|
|
<option value="0">请选择游戏</option>
|
|
|
|
<option value="0">请选择游戏</option>
|
|
|
|
<volist name="games" id="game">
|
|
|
|
<volist name="games" id="game">
|
|
|
|
<option value="{$game.game_id}">{$game.game_name}</option>
|
|
|
|
<option value="{$game.game_id}" <if condition="I('game_id') === $game['id']">selected</if>>{$game.game_name}</option>
|
|
|
|
</volist>
|
|
|
|
</volist>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group normal_space">
|
|
|
|
<div class="form-group normal_space">
|
|
|
|
<select name="headman_promote_id" class="reselect select_gallery" style="width: 220px;" >
|
|
|
|
<select id="server-select" name="server_id" class="reselect select_gallery" style="width: 220px;" >
|
|
|
|
<option value="0">请选择区服</option>
|
|
|
|
<option value="0">请选择区服</option>
|
|
|
|
<volist name="groupPromotes" id="promote">
|
|
|
|
<volist name="groupPromotes" id="promote">
|
|
|
|
<option ba-id="{$promote.id}" value="{$promote.id}">{$promote.account}</option>
|
|
|
|
<option ba-id="{$promote.id}" value="{$promote.id}">{$promote.account}</option>
|
|
|
@ -49,7 +49,7 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<if condition="$grand_id eq 0">
|
|
|
|
<if condition="$grand_id eq 0">
|
|
|
|
<div class="form-group normal_space">
|
|
|
|
<div class="form-group normal_space">
|
|
|
|
<select name="promote_id" class="reselect select_gallery" style="width: 220px;" >
|
|
|
|
<select id="group-select" name="promote_id" class="reselect select_gallery" style="width: 220px;" >
|
|
|
|
<option value="0">请选择推广员</option>
|
|
|
|
<option value="0">请选择推广员</option>
|
|
|
|
<volist name="promotes" id="promote">
|
|
|
|
<volist name="promotes" id="promote">
|
|
|
|
<option ba-id="{$promote.id}" value="{$promote.id}">{$promote.account}</option>
|
|
|
|
<option ba-id="{$promote.id}" value="{$promote.id}">{$promote.account}</option>
|
|
|
@ -59,7 +59,7 @@
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if condition="$parent_id eq 0">
|
|
|
|
<if condition="$parent_id eq 0">
|
|
|
|
<div class="form-group normal_space">
|
|
|
|
<div class="form-group normal_space">
|
|
|
|
<select name="headman_promote_id" class="reselect select_gallery" style="width: 220px;" >
|
|
|
|
<select id="promote-select" name="headman_promote_id" class="reselect select_gallery" style="width: 220px;" >
|
|
|
|
<option value="0">请选择组长</option>
|
|
|
|
<option value="0">请选择组长</option>
|
|
|
|
<volist name="groupPromotes" id="promote">
|
|
|
|
<volist name="groupPromotes" id="promote">
|
|
|
|
<option ba-id="{$promote.id}" value="{$promote.id}">{$promote.account}</option>
|
|
|
|
<option ba-id="{$promote.id}" value="{$promote.id}">{$promote.account}</option>
|
|
|
@ -151,76 +151,41 @@
|
|
|
|
<script type="text/javascript">
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(function(){
|
|
|
|
$(function(){
|
|
|
|
$(".select_gallery").select2();
|
|
|
|
$(".select_gallery").select2();
|
|
|
|
$('.reset-password-btn').on({
|
|
|
|
$('#game-select').on({
|
|
|
|
click: function() {
|
|
|
|
change: function name() {
|
|
|
|
var id = $(this).parents('tr').eq(0).attr('data-id')
|
|
|
|
var gameId = $('#game-select').val()
|
|
|
|
layer.confirm('是否确认重置密码?', {icon: 3, title:'提示'}, function(index){
|
|
|
|
$.ajax({
|
|
|
|
$.ajax({
|
|
|
|
url: "{:U('Query/getGameServers')}",
|
|
|
|
url: "{:U('Promote/resetPassword')}",
|
|
|
|
dataType: 'json',
|
|
|
|
data: {promote_id: id},
|
|
|
|
data: {game_id: gameId},
|
|
|
|
type: 'post',
|
|
|
|
success: function(response) {
|
|
|
|
dataType: 'json',
|
|
|
|
$("#server-select").val(0).trigger("change")
|
|
|
|
success: function(response) {
|
|
|
|
var options = '<option value="0">请选择区服</option>'
|
|
|
|
layer.close(index)
|
|
|
|
for (var i in response.data.servers) {
|
|
|
|
if (response.status == 1) {
|
|
|
|
var server = response.data.servers[i]
|
|
|
|
layer.open({
|
|
|
|
options += '<option value="' + server.id + '">' + server.server_name + '</option>'
|
|
|
|
content: '重置密码成功,您的新密码为:' + response.data.password
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
layer.msg(response.msg)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
$('#server-select').html(options)
|
|
|
|
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
$('#group-select').on({
|
|
|
|
$('.froze-btn').on({
|
|
|
|
change: function name() {
|
|
|
|
click: function() {
|
|
|
|
var groupId = $('#group-select').val()
|
|
|
|
var id = $(this).parents('tr').eq(0).attr('data-id')
|
|
|
|
$.ajax({
|
|
|
|
layer.confirm('是否确认冻结帐号?', {icon: 3, title:'提示'}, function(index){
|
|
|
|
url: "{:U('Query/getSubPromotes')}",
|
|
|
|
$.ajax({
|
|
|
|
dataType: 'json',
|
|
|
|
url: "{:U('Promote/froze')}",
|
|
|
|
data: {promote_id: groupId},
|
|
|
|
data: {promote_id: id},
|
|
|
|
success: function(response) {
|
|
|
|
type: 'post',
|
|
|
|
$("#promote-select").val(0).trigger("change")
|
|
|
|
dataType: 'json',
|
|
|
|
var options = '<option value="0">请选择推广员</option>'
|
|
|
|
success: function(response) {
|
|
|
|
for (var i in response.data.promotes) {
|
|
|
|
layer.msg(response.msg, {time: 1000}, function() {
|
|
|
|
var promote = response.data.promotes[i]
|
|
|
|
window.location.href = window.location.href
|
|
|
|
options += '<option value="' + promote.id + '">' + promote.account + '</option>'
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
$('#promote-select').html(options)
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('.unfreeze-btn').on({
|
|
|
|
|
|
|
|
click: function() {
|
|
|
|
|
|
|
|
var id = $(this).parents('tr').eq(0).attr('data-id')
|
|
|
|
|
|
|
|
layer.confirm('是否确认解冻帐号?', {icon: 3, title:'提示'}, function(index){
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
|
|
|
|
url: "{:U('Promote/unfreeze')}",
|
|
|
|
|
|
|
|
data: {promote_id: id},
|
|
|
|
|
|
|
|
type: 'post',
|
|
|
|
|
|
|
|
dataType: 'json',
|
|
|
|
|
|
|
|
success: function(response) {
|
|
|
|
|
|
|
|
layer.msg(response.msg, {time: 1000}, function() {
|
|
|
|
|
|
|
|
window.location.href = window.location.href
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$('.shift-btn').on({
|
|
|
|
|
|
|
|
click: function() {
|
|
|
|
|
|
|
|
var id = $(this).parents('tr').eq(0).attr('data-id')
|
|
|
|
|
|
|
|
layer.open({
|
|
|
|
|
|
|
|
title: '渠道迁移',
|
|
|
|
|
|
|
|
type: 1,
|
|
|
|
|
|
|
|
content: $('#shift-box'),
|
|
|
|
|
|
|
|
area: ['600px', '400px']
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|