|
|
|
@ -1,10 +1,10 @@
|
|
|
|
|
<extend name="Public/base" />
|
|
|
|
|
|
|
|
|
|
<block name="body">
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="__CSS__/admin_table.css" media="all">
|
|
|
|
|
<script type="text/javascript" src="__STATIC__/layer/layer.js"></script>
|
|
|
|
|
<script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
|
|
|
|
|
<link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css" />
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="__CSS__/admin_table.css" media="all">
|
|
|
|
|
<script type="text/javascript" src="__STATIC__/layer/layer.js"></script>
|
|
|
|
|
<script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
|
|
|
|
|
<link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css" />
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
.select2-container--default .select2-selection--single .select2-selection__rendered {
|
|
|
|
@ -49,7 +49,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 标签页导航 -->
|
|
|
|
|
<div class="tab-wrap">
|
|
|
|
|
<div class="tab-wrap">
|
|
|
|
|
|
|
|
|
|
<div class="tab-content tabcon1711">
|
|
|
|
|
<!-- 表单 -->
|
|
|
|
@ -179,9 +179,9 @@
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="common_settings">
|
|
|
|
|
<div class="common_settings">
|
|
|
|
|
<span class="plus_icon"><span><img src="__IMG__/zwmimages/icon_jia.png"></span></span>
|
|
|
|
|
<form class="addShortcutIcon">
|
|
|
|
|
<input type="hidden" name="title" value="{$m_title}">
|
|
|
|
@ -193,27 +193,26 @@
|
|
|
|
|
</block>
|
|
|
|
|
|
|
|
|
|
<block name="script">
|
|
|
|
|
<link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
|
|
|
|
|
<php>if(C('COLOR_STYLE')=='blue_color') echo '<link href="__STATIC__/datetimepicker/css/datetimepicker_blue.css" rel="stylesheet" type="text/css">';</php>
|
|
|
|
|
<link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
|
|
|
|
|
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
|
|
|
|
|
<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
|
|
|
|
|
<link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
|
|
|
|
|
<php>if(C('COLOR_STYLE')=='blue_color') echo '<link href="__STATIC__/datetimepicker/css/datetimepicker_blue.css" rel="stylesheet" type="text/css">';</php>
|
|
|
|
|
<link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
|
|
|
|
|
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
|
|
|
|
|
<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
|
|
|
|
|
<script type="text/javascript" src="__JS__/select2.min.js"></script>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
//导航高亮
|
|
|
|
|
Think.setValue("game_id", {$Think.get.game_id|default = 0});
|
|
|
|
|
highlight_subnav('{:U('Giftbag/lists')}');
|
|
|
|
|
$('#submit').click(function(){
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
//导航高亮
|
|
|
|
|
Think.setValue("game_id", {$Think.get.game_id|default = 0});
|
|
|
|
|
highlight_subnav('{:U('Giftbag/lists')}');
|
|
|
|
|
$('#submit').click(function(){
|
|
|
|
|
$('#form').submit();
|
|
|
|
|
});
|
|
|
|
|
if($("#game_id").val()){
|
|
|
|
|
});
|
|
|
|
|
if($("#game_id").val()){
|
|
|
|
|
fun_ajax($("#game_id").val());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$(function(){
|
|
|
|
|
$(function(){
|
|
|
|
|
$("#gift_platform").change(function() {
|
|
|
|
|
var radio = $("#gift_platform input[type='radio']:checked").val();
|
|
|
|
|
$('#giftbag_version').val(radio);
|
|
|
|
|
setGiftbagVersion();
|
|
|
|
|
});
|
|
|
|
|
$(".inp_radio").change(function () {
|
|
|
|
|
changePage();
|
|
|
|
@ -234,22 +233,32 @@ $(function(){
|
|
|
|
|
|
|
|
|
|
$("#game_id").select2();
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
/*获取区服名称*/
|
|
|
|
|
$("#server_id").change(function() {
|
|
|
|
|
});
|
|
|
|
|
/*获取区服名称*/
|
|
|
|
|
$("#server_id").change(function() {
|
|
|
|
|
$("#server_name").val($("#server_id option:selected").text());
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$("#game_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);
|
|
|
|
|
|
|
|
|
|
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());
|
|
|
|
|
if (ratio_type!=2) {
|
|
|
|
|
changePage();
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
// changePage();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
function fun_ajax(gid){
|
|
|
|
|
function fun_ajax(gid){
|
|
|
|
|
var url = "{:U('Giftbag/get_ajax_area_list')}";
|
|
|
|
|
$.ajax({
|
|
|
|
|
type:"post",
|
|
|
|
@ -264,8 +273,8 @@ function fun_ajax(gid){
|
|
|
|
|
layer.msg('服务器异常',{icon:5});
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
function fun_html(data){
|
|
|
|
|
}
|
|
|
|
|
function fun_html(data){
|
|
|
|
|
var area='';
|
|
|
|
|
if(data == null){
|
|
|
|
|
$("#server_id").html('<option value="">请选择区服</option>');
|
|
|
|
@ -276,8 +285,8 @@ function fun_html(data){
|
|
|
|
|
}
|
|
|
|
|
$("#server_id").html(area);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
function changePage() {
|
|
|
|
|
}
|
|
|
|
|
function changePage() {
|
|
|
|
|
console.log($(".inp_radio:checked").val())
|
|
|
|
|
var type = $(".inp_radio:checked").val();
|
|
|
|
|
if (type == 3) {
|
|
|
|
@ -288,6 +297,13 @@ function changePage() {
|
|
|
|
|
setTimeout(function() {
|
|
|
|
|
$("#tip").removeClass('block tip_right');
|
|
|
|
|
},1500);
|
|
|
|
|
|
|
|
|
|
$("#gift_status").show();
|
|
|
|
|
|
|
|
|
|
$("#gift_type").show();
|
|
|
|
|
$("#gift_server").show();
|
|
|
|
|
$("#gift_time").show();
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
$("#gift_status").hide();
|
|
|
|
|
$($("#gift_status input[type='radio']").eq(1)).prop('checked',true);
|
|
|
|
@ -307,6 +323,11 @@ function changePage() {
|
|
|
|
|
$("#gift_server").show();
|
|
|
|
|
$("#gift_time").show();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function setGiftbagVersion() {
|
|
|
|
|
var radio = $("#gift_platform input[type='radio']:checked").val();
|
|
|
|
|
$('#giftbag_version').val(radio);
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
</block>
|