|
|
|
@ -212,8 +212,7 @@ if($("#game_id").val()){
|
|
|
|
|
|
|
|
|
|
$(function(){
|
|
|
|
|
$("#gift_platform").change(function() {
|
|
|
|
|
var radio = $("#gift_platform input[type='radio']:checked").val();
|
|
|
|
|
$('#giftbag_version').val(radio);
|
|
|
|
|
setGiftbagVersion();
|
|
|
|
|
});
|
|
|
|
|
$(".inp_radio").change(function () {
|
|
|
|
|
changePage();
|
|
|
|
@ -242,11 +241,21 @@ $("#server_id").change(function() {
|
|
|
|
|
|
|
|
|
|
$("#game_id").change(function(){
|
|
|
|
|
$("#game_name").val($("#game_id option:selected").text());
|
|
|
|
|
|
|
|
|
|
var ratio_type=$("#game_id").children('option:selected').attr('sdk_version');
|
|
|
|
|
$("input[type='radio'][name='giftbag_version'][value='"+ratio_type+"']").prop("checked",true);
|
|
|
|
|
// $('#giftbag_version').val(ratio_type);
|
|
|
|
|
|
|
|
|
|
var radio = $("#gift_platform input[type='radio']:checked").val();
|
|
|
|
|
if (radio!=3) {
|
|
|
|
|
$("input[type='radio'][name='giftbag_version'][value='" + ratio_type + "']").prop("checked", true);
|
|
|
|
|
setGiftbagVersion();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// $('#giftbag_version').val(ratio_type);
|
|
|
|
|
fun_ajax($("#game_id option:selected").val());
|
|
|
|
|
changePage();
|
|
|
|
|
if (ratio_type!=2) {
|
|
|
|
|
changePage();
|
|
|
|
|
}
|
|
|
|
|
// changePage();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
function fun_ajax(gid){
|
|
|
|
@ -308,5 +317,10 @@ function changePage() {
|
|
|
|
|
$("#gift_time").show();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function setGiftbagVersion() {
|
|
|
|
|
var radio = $("#gift_platform input[type='radio']:checked").val();
|
|
|
|
|
$('#giftbag_version').val(radio);
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
</block>
|