|
|
|
@ -58,7 +58,7 @@
|
|
|
|
|
<div id="tab1" class="tab-pane in tab1">
|
|
|
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
|
|
|
<tbody>
|
|
|
|
|
<tr>
|
|
|
|
|
<tr id="game_choosename">
|
|
|
|
|
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>游戏名称:</td>
|
|
|
|
|
<td class="r">
|
|
|
|
|
<select id="game_id" name="game_id">
|
|
|
|
@ -71,21 +71,31 @@
|
|
|
|
|
<input type="hidden" id="game_name" name="game_name" value="" />
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<tr id="gift_platform">
|
|
|
|
|
<td class="l">运营平台</td>
|
|
|
|
|
<td class="r table_radio">
|
|
|
|
|
<span class="form_radio">
|
|
|
|
|
<gt name="key" value="0">
|
|
|
|
|
<label id="type0">
|
|
|
|
|
<input type="radio" class="inp_radio js-typeradio" value="0" name="giftbag_version" > <span class="type{$key}">全部</span>
|
|
|
|
|
</label>
|
|
|
|
|
</gt>
|
|
|
|
|
<volist name=":get_systems_list()" id="vo">
|
|
|
|
|
<gt name="key" value="0">
|
|
|
|
|
<label id="type{$key}">
|
|
|
|
|
<input type="radio" class="inp_radio js-typeradio" value="{$key}" name="giftbag_version" disabled="true" > <span class="type{$key}">{$vo}</span>
|
|
|
|
|
<input type="radio" class="inp_radio js-typeradio" value="{$key}" name="giftbag_version" > <span class="type{$key}">{$vo}</span>
|
|
|
|
|
</label>
|
|
|
|
|
</gt>
|
|
|
|
|
</volist></span>
|
|
|
|
|
</volist>
|
|
|
|
|
<label id="type3">
|
|
|
|
|
<input type="radio" class="inp_radio js-typeradio" value="3" name="giftbag_version" > <span class="type{$key}">超级签</span>
|
|
|
|
|
</label>
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
<input type="hidden" id="giftbag_version" name="giftbag_version" value="">
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<tr id="gift_status">
|
|
|
|
|
<td class="l">礼包状态:</td>
|
|
|
|
|
<td class="r table_radio">
|
|
|
|
|
<span class="form_radio">
|
|
|
|
@ -97,7 +107,7 @@
|
|
|
|
|
</label></span>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<tr id="gift_type">
|
|
|
|
|
<td class="l">礼包类型:</td>
|
|
|
|
|
<td class="r table_radio">
|
|
|
|
|
<span class="form_radio">
|
|
|
|
@ -115,13 +125,13 @@
|
|
|
|
|
</label></span>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<tr id="gift_name">
|
|
|
|
|
<td class="l"><i class="mustmark" style="margin-left:-7px">*</i>礼包名称:</td>
|
|
|
|
|
<td class="r" >
|
|
|
|
|
<input type="text" class="txt" name="giftbag_name" value="" placeholder="输入礼包名称">
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<tr id="gift_server">
|
|
|
|
|
<td class="l">礼包区服:</td>
|
|
|
|
|
<td class="r">
|
|
|
|
|
<select id="server_id" name="server_id">
|
|
|
|
@ -130,26 +140,26 @@
|
|
|
|
|
<input type="hidden" id="server_name" name="server_name" value=""></input>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<tr id="gift_time">
|
|
|
|
|
<td class="l">开始周期:</td>
|
|
|
|
|
<td class="r table_time">
|
|
|
|
|
<input type="text" class="txtt time" name="start_time" value="{:date('Y-m-d H:i',time())}" placeholder="输入开启时间 不能空"> 至
|
|
|
|
|
<input type="text" class="txtt time" name="end_time" value="" placeholder="输入结束时间 不填表示 永久">
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<tr id="gift_cdkey">
|
|
|
|
|
<td class="l">激活码:</td>
|
|
|
|
|
<td class="r">
|
|
|
|
|
<textarea name="novice" class="txt_area2" placeholder="输入激活码,一行一个"></textarea>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<tr id="gift_show">
|
|
|
|
|
<td class="l">使用说明:</td>
|
|
|
|
|
<td class="r">
|
|
|
|
|
<textarea name="digest" class="txt_area2" placeholder="输入领取方式描述"></textarea>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<tr id="gift_content">
|
|
|
|
|
<td class="l">礼包内容:</td>
|
|
|
|
|
<td class="r">
|
|
|
|
|
<textarea name="desribe" class="txt_area1" placeholder="输入礼包内容描述"></textarea>
|
|
|
|
@ -199,7 +209,15 @@ $('#submit').click(function(){
|
|
|
|
|
if($("#game_id").val()){
|
|
|
|
|
fun_ajax($("#game_id").val());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$(function(){
|
|
|
|
|
$("#gift_platform").change(function() {
|
|
|
|
|
var radio = $("#gift_platform input[type='radio']:checked").val();
|
|
|
|
|
$('#giftbag_version').val(radio);
|
|
|
|
|
});
|
|
|
|
|
$(".inp_radio").change(function () {
|
|
|
|
|
changePage();
|
|
|
|
|
});
|
|
|
|
|
$("#game_name").val($("#game_id option:selected").text());
|
|
|
|
|
$('.date').datetimepicker({
|
|
|
|
|
format: 'yyyy-mm-dd',
|
|
|
|
@ -226,8 +244,9 @@ $("#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);
|
|
|
|
|
// $('#giftbag_version').val(ratio_type);
|
|
|
|
|
fun_ajax($("#game_id option:selected").val());
|
|
|
|
|
changePage();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
function fun_ajax(gid){
|
|
|
|
@ -258,5 +277,36 @@ function fun_html(data){
|
|
|
|
|
$("#server_id").html(area);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function changePage() {
|
|
|
|
|
console.log($(".inp_radio:checked").val())
|
|
|
|
|
var type = $(".inp_radio:checked").val();
|
|
|
|
|
if (type == 3) {
|
|
|
|
|
var ratio_type=$("#game_id").children('option:selected').attr('sdk_version');
|
|
|
|
|
if (ratio_type == 1) {
|
|
|
|
|
$("input[type='radio'][name='giftbag_version'][value='"+ratio_type+"']").prop("checked",true);
|
|
|
|
|
updateAlert('超级签只能是苹果运营平台!');
|
|
|
|
|
setTimeout(function() {
|
|
|
|
|
$("#tip").removeClass('block tip_right');
|
|
|
|
|
},1500);
|
|
|
|
|
} else {
|
|
|
|
|
$("#gift_status").hide();
|
|
|
|
|
$($("#gift_status input[type='radio']").eq(1)).prop('checked',true);
|
|
|
|
|
$("#gift_type").hide();
|
|
|
|
|
$($("#gift_type input[type='radio']").eq(1)).prop('checked',true);
|
|
|
|
|
$("#gift_server").hide();
|
|
|
|
|
$("#server_id").val("");
|
|
|
|
|
$("#gift_time").hide();
|
|
|
|
|
$("input[name='start_time']").val("");
|
|
|
|
|
$("input[name='end_time']").val("");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
$("#gift_status").show();
|
|
|
|
|
|
|
|
|
|
$("#gift_type").show();
|
|
|
|
|
$("#gift_server").show();
|
|
|
|
|
$("#gift_time").show();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
</block>
|