<link rel="stylesheet" href="<?php echo base_url();?>public/js/date/datedropper.min.css">
<script src="<?php echo base_url();?>public/js/date/datedropper.min.js"></script>

<!-- Select2 -->
<link rel="stylesheet" href="<?php echo base_url();?>public/js/vendor/select2/select2.min.css">
<script src="<?php echo base_url();?>public/js/vendor/select2/select2.full.min.js"></script>

<div class="content_wrapper">
    <div class="container-fluid">
        <div class="row">
            <div class="col-sm-12">
                <aside>
                    <header><i class="fa fa-fw fa-file"></i>新手引导最后一步玩法配置
                    </header>
                    <section>
                        <form id="configForm">
                            <input name="id" type="hidden" value="<?php echo $config['id'] ?? 0;?>">
                            <div class="container-fluid">
                                <?php foreach ($columns as $key => $html){ ?>
                                    <?=$html?>
                                <?php }?>

                                <div class="row">
                                    <button type="button" class="btn btn-success btnSubmit">提交</button>
                                </div>
                            </div>
                        </form>
                    </section>
                </aside>
            </div>
        </div>
    </div>
</div>
<script>
    $('.btnSubmit').click(function(){
        var datas = $('#configForm').serializeArray();
        console.log(datas);
        $.post('/config/saveGuideLastStep/<?=$type?>', datas, function(res){
            if(typeof res == 'string')res = JSON.parse(res)
            alert(res.msg)
        })
    });
</script>