|
|
|
@ -68,6 +68,8 @@
|
|
|
|
|
<div class="input-list input-list-game search_label_rehab">
|
|
|
|
|
<select id="sdk_version" name="sdk_version" 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">
|
|
|
|
@ -428,27 +430,7 @@
|
|
|
|
|
});
|
|
|
|
|
$("#promote_level").change();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var game_server = "{:I('game_version')}";
|
|
|
|
|
var sdk_version = "{:I('sdk_version')}";
|
|
|
|
|
$("#game_name").change(function(){
|
|
|
|
|
$.ajax({
|
|
|
|
|
url:"{:U('Ajax/getGameVersion')}",
|
|
|
|
|
type:"post",
|
|
|
|
|
data:{game_name:$("#game_name option:selected").val()},
|
|
|
|
|
dataType:'json',
|
|
|
|
|
success:function(data){
|
|
|
|
|
str = "<option value=''>请选择设备</option>";
|
|
|
|
|
for (var i in data){
|
|
|
|
|
var version_name = data[i].sdk_version == "1" ? '安卓' : '苹果'
|
|
|
|
|
str += "<option value='"+data[i].sdk_version+"' "+(data[i].sdk_version == sdk_version?'selected':'')+">"+version_name+"</option>"
|
|
|
|
|
}
|
|
|
|
|
$("#sdk_version").empty();
|
|
|
|
|
$("#sdk_version").append(str);
|
|
|
|
|
$("#sdk_version").select2();
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
var game_server = "{:I('server_name')}";
|
|
|
|
|
$("#sdk_version").change(function(){
|
|
|
|
|
$.ajax({
|
|
|
|
|
url:"{:U('Ajax/getGmeServer')}",
|
|
|
|
|