|
|
|
@ -25,15 +25,15 @@
|
|
|
|
|
<div class="trunk-search clearfix">
|
|
|
|
|
<form action="{:U('Query/userRecharges',array('row'=>I('get.row')))}" method="post" enctype="multipart/form-data">
|
|
|
|
|
<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>
|
|
|
|
|
<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>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<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>
|
|
|
|
|
<volist name="groupPromotes" id="promote">
|
|
|
|
|
<option ba-id="{$promote.id}" value="{$promote.id}">{$promote.account}</option>
|
|
|
|
@ -49,7 +49,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
<if condition="$grand_id eq 0">
|
|
|
|
|
<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>
|
|
|
|
|
<volist name="promotes" id="promote">
|
|
|
|
|
<option ba-id="{$promote.id}" value="{$promote.id}">{$promote.account}</option>
|
|
|
|
@ -59,7 +59,7 @@
|
|
|
|
|
</if>
|
|
|
|
|
<if condition="$parent_id eq 0">
|
|
|
|
|
<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>
|
|
|
|
|
<volist name="groupPromotes" id="promote">
|
|
|
|
|
<option ba-id="{$promote.id}" value="{$promote.id}">{$promote.account}</option>
|
|
|
|
@ -151,76 +151,41 @@
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
$(function(){
|
|
|
|
|
$(".select_gallery").select2();
|
|
|
|
|
$('.reset-password-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/resetPassword')}",
|
|
|
|
|
data: {promote_id: id},
|
|
|
|
|
type: 'post',
|
|
|
|
|
dataType: 'json',
|
|
|
|
|
success: function(response) {
|
|
|
|
|
layer.close(index)
|
|
|
|
|
if (response.status == 1) {
|
|
|
|
|
layer.open({
|
|
|
|
|
content: '重置密码成功,您的新密码为:' + response.data.password
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
layer.msg(response.msg)
|
|
|
|
|
}
|
|
|
|
|
$('#game-select').on({
|
|
|
|
|
change: function name() {
|
|
|
|
|
var gameId = $('#game-select').val()
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "{:U('Query/getGameServers')}",
|
|
|
|
|
dataType: 'json',
|
|
|
|
|
data: {game_id: gameId},
|
|
|
|
|
success: function(response) {
|
|
|
|
|
$("#server-select").val(0).trigger("change")
|
|
|
|
|
var options = '<option value="0">请选择区服</option>'
|
|
|
|
|
for (var i in response.data.servers) {
|
|
|
|
|
var server = response.data.servers[i]
|
|
|
|
|
options += '<option value="' + server.id + '">' + server.server_name + '</option>'
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
$('#server-select').html(options)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
$('.froze-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/froze')}",
|
|
|
|
|
data: {promote_id: id},
|
|
|
|
|
type: 'post',
|
|
|
|
|
dataType: 'json',
|
|
|
|
|
success: function(response) {
|
|
|
|
|
layer.msg(response.msg, {time: 1000}, function() {
|
|
|
|
|
window.location.href = window.location.href
|
|
|
|
|
})
|
|
|
|
|
$('#group-select').on({
|
|
|
|
|
change: function name() {
|
|
|
|
|
var groupId = $('#group-select').val()
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "{:U('Query/getSubPromotes')}",
|
|
|
|
|
dataType: 'json',
|
|
|
|
|
data: {promote_id: groupId},
|
|
|
|
|
success: function(response) {
|
|
|
|
|
$("#promote-select").val(0).trigger("change")
|
|
|
|
|
var options = '<option value="0">请选择推广员</option>'
|
|
|
|
|
for (var i in response.data.promotes) {
|
|
|
|
|
var promote = response.data.promotes[i]
|
|
|
|
|
options += '<option value="' + promote.id + '">' + promote.account + '</option>'
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
$('.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']
|
|
|
|
|
$('#promote-select').html(options)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|