|
|
|
@ -59,18 +59,18 @@
|
|
|
|
|
<input type="text" name="role_name" class="" value="{:I('role_name')}" placeholder="角色名称">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="input-list input-list-game search_label_rehab">
|
|
|
|
|
<select id="game_type" name="game_type" class="select_gallery" >
|
|
|
|
|
<option value="">设备类型</option>
|
|
|
|
|
<option value="1">安卓</option>
|
|
|
|
|
<option value="2">苹果</option>
|
|
|
|
|
<select id="game_name" name="game_name" class="select_gallery" >
|
|
|
|
|
<option value="">游戏名称</option>
|
|
|
|
|
<volist name=":getAllGame()" id="vo">
|
|
|
|
|
<option value="{$vo.game_name}" <?php echo $vo.relation_game_name == I('game_name') ? 'selected':''; ?> >{$vo.game_name}</option>
|
|
|
|
|
</volist>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="input-list input-list-game search_label_rehab">
|
|
|
|
|
<select id="game_name" name="game_name" class="select_gallery" >
|
|
|
|
|
<option value="">游戏名称</option>
|
|
|
|
|
<!-- <volist name=":get_game_list(null, $_GET['game_type'])" id="vo">
|
|
|
|
|
<option game-id="{$vo.id}" value="{$vo.id}">{$vo.game_name}</option>
|
|
|
|
|
</volist> -->
|
|
|
|
|
<select id="game_type" name="game_type" class="select_gallery" >
|
|
|
|
|
<option value="">设备类型</option>
|
|
|
|
|
<option value="1" <?php echo I('game_type') == 1 ? "selected" : ''?>>安卓</option>
|
|
|
|
|
<option value="2" <?php echo I('game_type') == 2 ? "selected" : ''?>>苹果</option>
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="input-list input-list-server search_label_rehab">
|
|
|
|
@ -279,34 +279,8 @@ $(".select_gallery").select2();
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
$("#promote_level").change();
|
|
|
|
|
var game_name = "{:I('game_name')}";
|
|
|
|
|
var game_server = "{:I('server_name')}";
|
|
|
|
|
$("#game_type").change(function(){
|
|
|
|
|
$.ajax({
|
|
|
|
|
url:"{:U('Ajax/getGameList')}",
|
|
|
|
|
type:"get",
|
|
|
|
|
data:{sdk_type:$("#game_type option:selected").val()},
|
|
|
|
|
dataType:'json',
|
|
|
|
|
success:function(response){
|
|
|
|
|
str = '<option value="">游戏名称</option>';
|
|
|
|
|
// $.each(response.data, function(index, item){
|
|
|
|
|
// console.log(item.id);
|
|
|
|
|
// str += '<option value="'+item.id+' '+(promote_id && item.id == promote_id?'selected':'')+'">'+item.nickname+'</option>';
|
|
|
|
|
// });
|
|
|
|
|
data = response.data;
|
|
|
|
|
for (var i in data){
|
|
|
|
|
str += "<option value='"+data[i].relation_game_name+"' "+(game_name && data[i].relation_game_name == game_name?'selected':'')+">"+data[i].relation_game_name+"</option>"
|
|
|
|
|
}
|
|
|
|
|
$("#game_name").empty();
|
|
|
|
|
$("#game_name").append(str);
|
|
|
|
|
$("#game_name").select2();
|
|
|
|
|
$("#game_name").change();
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
$("#game_type").change();
|
|
|
|
|
|
|
|
|
|
var game_server = "{:I('server_id')}";
|
|
|
|
|
$("#game_name").change(function(){
|
|
|
|
|
$.ajax({
|
|
|
|
|
url:"{:U('Ajax/getGmeServer')}",
|
|
|
|
|
type:"post",
|
|
|
|
@ -315,13 +289,18 @@ $(".select_gallery").select2();
|
|
|
|
|
success:function(data){
|
|
|
|
|
str = "<option value=''>请选择区服</option>";
|
|
|
|
|
for (var i in data){
|
|
|
|
|
str += "<option value='"+data[i].server_id+"' "+(game_server && data[i].server_id == game_server?'selected':'')+">"+data[i].server_name+"</option>"
|
|
|
|
|
str += "<option value='"+data[i].server_name+"' "+(game_server && data[i].server_name == game_server?'selected':'')+">"+data[i].server_name+"</option>"
|
|
|
|
|
}
|
|
|
|
|
$("#server_id").empty();
|
|
|
|
|
$("#server_id").append(str);
|
|
|
|
|
$("#server_id").select2();
|
|
|
|
|
$("#server_name").empty();
|
|
|
|
|
$("#server_name").append(str);
|
|
|
|
|
$("#server_name").select2();
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$("#game_name").change(function(){
|
|
|
|
|
$("#game_type").change();
|
|
|
|
|
});
|
|
|
|
|
$("#game_name").change();
|
|
|
|
|
</script>
|
|
|
|
|
</block>
|
|
|
|
|