<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <title>超级蚂蚁</title>
    <meta name="description" content="">
    <meta name="author" content="">

    <!--    <link rel="stylesheet" href="--><?php //echo base_url();?><!--public/js/bootstrap/bootstrap.min.css" >-->
    <link rel="stylesheet" href="<?php echo base_url();?>public/js/bootstrap/bootstrap.min.css">
    <link rel="stylesheet" href="<?php echo base_url();?>public/css/vendor/Animate.css">
    <link rel="stylesheet" href="<?php echo base_url();?>public/css/basic.css">
    <link rel="stylesheet" href="<?php echo base_url();?>public/css/vendor/font_awesome/css/font-awesome.css">
    <link rel="stylesheet" href="<?php echo base_url();?>public/css/vendor/bootstrap/dist/bootstrap-switch.min.css">
    <link rel="stylesheet" href="<?php echo base_url();?>public/js/vendor/bootstrap-datepicker/css/bootstrap-datepicker.standalone.min.css">
    <style type="text/css">
        .text-red {
            color:red;
        }

        .pack-style {
            position: absolute;
            white-space: nowrap;
            right: 213px;
            top: 10px;
            border: 1px solid #bfbfbf;
            line-height: 23px;
            padding: 3px 16px;
            font-size: 1px;
            border-radius: 5px;
        }

        .left_side{
            float:left;
        }
        .mid_side {
            display: inline-block;
            padding-left: 10px;
            padding-top: 9px;
            font-size: 20px;
            /*font-weight: bold;*/
        }

        .goto-hall {

        }
        .ui-jqdialog{
            display: none;
        }

        /*<!-- loading -->*/

        /*body {*/
        /*    margin-top: 10px;*/
        /*}*/

        /*.col-sm-2 {*/
        /*    padding: 10px;*/
        /*    border-radius: 4px;*/
        /*    height: 125px;*/
        /*    margin-bottom: 10px;*/
        /*}*/

        .sp {
            width: 32px;
            height: 32px;
            clear: both;
            margin: 20px auto;
        }

        /* Spinner Circle Rotation */
        .sp-circle {
            border: 4px rgba(0, 0, 0, 0.25) solid;
            border-top: 4px black solid;
            border-radius: 50%;
            -webkit-animation: spCircRot .6s infinite linear;
            animation: spCircRot .6s infinite linear;
        }

        @-webkit-keyframes spCircRot {
            from {
                -webkit-transform: rotate(0deg);
            }
            to {
                -webkit-transform: rotate(359deg);
            }
        }
        @keyframes spCircRot {
            from {
                transform: rotate(0deg);
            }
            to {
                transform: rotate(359deg);
            }
        }
        /* Spinner 3Balls Scale */
        .sp-3balls, .sp-3balls:before, .sp-3balls:after {
            border-radius: 50%;
            background-color: #000;
            width: 18px;
            height: 18px;
            transform-origin: center center;
            display: inline-block;
        }

        .sp-3balls {
            position: relative;
            background-color: black;
            opacity: 1;
            -webkit-animation: spScaleAlpha 1s infinite linear;
            animation: spScaleAlpha 1s infinite linear;
        }

        .sp-3balls:before, .sp-3balls:after {
            content: '';
            position: relative;
            opacity: 0.25;
        }

        .sp-3balls:before {
            left: 30px;
            top: 0px;
            -webkit-animation: spScaleAlphaBefore 1s infinite linear;
            animation: spScaleAlphaBefore 1s infinite linear;
        }

        .sp-3balls:after {
            left: -30px;
            top: -23px;
            -webkit-animation: spScaleAlphaAfter 1s infinite linear;
            animation: spScaleAlphaAfter 1s infinite linear;
        }

        @-webkit-keyframes spScaleAlpha {
            0% {
                opacity: 1;
            }
            33% {
                opacity: 0.25;
            }
            66% {
                opacity: 0.25;
            }
            100% {
                opacity: 1;
            }
        }
        @keyframes spScaleAlpha {
            0% {
                opacity: 1;
            }
            33% {
                opacity: 0.25;
            }
            66% {
                opacity: 0.25;
            }
            100% {
                opacity: 1;
            }
        }
        @-webkit-keyframes spScaleAlphaBefore {
            0% {
                opacity: 0.25;
            }
            33% {
                opacity: 1;
            }
            66% {
                opacity: 0.25;
            }
        }
        @keyframes spScaleAlphaBefore {
            0% {
                opacity: 0.25;
            }
            33% {
                opacity: 1;
            }
            66% {
                opacity: 0.25;
            }
        }
        @-webkit-keyframes spScaleAlphaAfter {
            33% {
                opacity: 0.25;
            }
            66% {
                opacity: 1;
            }
            100% {
                opacity: 0.25;
            }
        }
        @keyframes spScaleAlphaAfter {
            33% {
                opacity: 0.25;
            }
            66% {
                opacity: 1;
            }
            100% {
                opacity: 0.25;
            }
        }
        /* Spinner VolumeButton */
        .sp-volume {
            background-color: #000;
            border-radius: 50%;
            position: relative;
            -webkit-animation: spVolRot .6s infinite linear;
            animation: spVolRot .6s infinite linear;
        }

        .sp-volume:after {
            content: '';
            border-radius: 50%;
            position: absolute;
            display: block;
            width: 10px;
            height: 10px;
            left: 5px;
            top: 5px;
            background-color: white;
        }

        @-webkit-keyframes spVolRot {
            from {
                -webkit-transform: rotate(0deg);
            }
            to {
                -webkit-transform: rotate(359deg);
            }
        }
        @keyframes spVolRot {
            from {
                transform: rotate(0deg);
            }
            to {
                transform: rotate(359deg);
            }
        }
        /* Spinner Vortex */
        .sp-vortex {
            border: 1px #000 solid;
            border-radius: 4px;
            overflow: hidden;
            position: relative;
        }

        .sp-vortex:after, .sp-vortex:before {
            content: '';
            border-radius: 50%;
            position: absolute;
            width: inherit;
            height: inherit;
            -webkit-animation: spVortex 2s infinite linear;
            animation: spVortex 2s infinite linear;
        }

        .sp-vortex:before {
            border-top: 6px #000 solid;
            top: -3px;
            left: calc( -50% - 3px );
            transform-origin: right center;
        }

        .sp-vortex:after {
            border-bottom: 6px #000 solid;
            top: 3px;
            right: calc( -50% - 3px );
            transform-origin: left center;
        }

        @-webkit-keyframes spVortex {
            from {
                -webkit-transform: rotate(0deg);
            }
            to {
                -webkit-transform: rotate(359deg);
            }
        }
        @keyframes spVortex {
            from {
                transform: rotate(0deg);
            }
            to {
                transform: rotate(359deg);
            }
        }
        /* Spinner Slices */
        .sp.sp-slices {
            border-radius: 50%;
            border-top: 16px rgba(0, 0, 0, 0.75) solid;
            border-left: 16px rgba(0, 0, 0, 0.25) solid;
            border-bottom: 16px rgba(0, 0, 0, 0.25) solid;
            border-right: 16px rgba(0, 0, 0, 0.25) solid;
            -webkit-animation: spSlices 1s infinite linear;
            animation: spSlices 1s infinite linear;
        }

        @-webkit-keyframes spSlices {
            0% {
                border-top: 16px rgba(0, 0, 0, 0.75) solid;
                border-right: 16px rgba(0, 0, 0, 0.25) solid;
                border-bottom: 16px rgba(0, 0, 0, 0.25) solid;
                border-left: 16px rgba(0, 0, 0, 0.25) solid;
            }
            25% {
                border-top: 16px rgba(0, 0, 0, 0.25) solid;
                border-right: 16px rgba(0, 0, 0, 0.75) solid;
                border-bottom: 16px rgba(0, 0, 0, 0.25) solid;
                border-left: 16px rgba(0, 0, 0, 0.25) solid;
            }
            50% {
                border-top: 16px rgba(0, 0, 0, 0.25) solid;
                border-right: 16px rgba(0, 0, 0, 0.25) solid;
                border-bottom: 16px rgba(0, 0, 0, 0.75) solid;
                border-left: 16px rgba(0, 0, 0, 0.25) solid;
            }
            75% {
                border-top: 16px rgba(0, 0, 0, 0.25) solid;
                border-right: 16px rgba(0, 0, 0, 0.25) solid;
                border-bottom: 16px rgba(0, 0, 0, 0.25) solid;
                border-left: 16px rgba(0, 0, 0, 0.75) solid;
            }
            100% {
                border-top: 16px rgba(0, 0, 0, 0.75) solid;
                border-right: 16px rgba(0, 0, 0, 0.25) solid;
                border-bottom: 16px rgba(0, 0, 0, 0.25) solid;
                border-left: 16px rgba(0, 0, 0, 0.25) solid;
            }
        }
        @keyframes spSlices {
            0% {
                border-top: 16px rgba(0, 0, 0, 0.75) solid;
                border-right: 16px rgba(0, 0, 0, 0.25) solid;
                border-bottom: 16px rgba(0, 0, 0, 0.25) solid;
                border-left: 16px rgba(0, 0, 0, 0.25) solid;
            }
            25% {
                border-top: 16px rgba(0, 0, 0, 0.25) solid;
                border-right: 16px rgba(0, 0, 0, 0.75) solid;
                border-bottom: 16px rgba(0, 0, 0, 0.25) solid;
                border-left: 16px rgba(0, 0, 0, 0.25) solid;
            }
            50% {
                border-top: 16px rgba(0, 0, 0, 0.25) solid;
                border-right: 16px rgba(0, 0, 0, 0.25) solid;
                border-bottom: 16px rgba(0, 0, 0, 0.75) solid;
                border-left: 16px rgba(0, 0, 0, 0.25) solid;
            }
            75% {
                border-top: 16px rgba(0, 0, 0, 0.25) solid;
                border-right: 16px rgba(0, 0, 0, 0.25) solid;
                border-bottom: 16px rgba(0, 0, 0, 0.25) solid;
                border-left: 16px rgba(0, 0, 0, 0.75) solid;
            }
            100% {
                border-top: 16px rgba(0, 0, 0, 0.75) solid;
                border-right: 16px rgba(0, 0, 0, 0.25) solid;
                border-bottom: 16px rgba(0, 0, 0, 0.25) solid;
                border-left: 16px rgba(0, 0, 0, 0.25) solid;
            }
        }
        /* Spinner Sphere */
        .sp-sphere {
            border-radius: 50%;
            border-left: 0px #000 solid;
            border-right: 0px #000 solid;
            -webkit-animation: spSphere 1s infinite linear;
            animation: spSphere 1s infinite linear;
        }

        @-webkit-keyframes spSphere {
            0% {
                border-left: 0px #000 solid;
                border-right: 0px #000 solid;
            }
            33% {
                border-left: 32px #000 solid;
                border-right: 0px #000 solid;
            }
            34% {
                border-left: 0px #000 solid;
                border-right: 32px #000 solid;
            }
            66% {
                border-left: 0px #000 solid;
                border-right: 0px #000 solid;
            }
        }
        @keyframes spSphere {
            0% {
                border-left: 0px #000 solid;
                border-right: 0px #000 solid;
            }
            33% {
                border-left: 32px #000 solid;
                border-right: 0px #000 solid;
            }
            34% {
                border-left: 0px #000 solid;
                border-right: 32px #000 solid;
            }
            66% {
                border-left: 0px #000 solid;
                border-right: 0px #000 solid;
            }
        }
        /* Spinner Bars */
        .sp-bars {
            position: relative;
            width: 10px;
            border: 1px #000 solid;
            background-color: rgba(0, 0, 0, 0.25);
            -webkit-animation: spBars 1s infinite linear;
            animation: spBars 1s infinite linear;
        }

        .sp-bars:after, .sp-bars:before {
            content: '';
            position: absolute;
            width: inherit;
            height: inherit;
            border: inherit;
            background-color: inherit;
            top: -1px;
        }

        .sp-bars:before {
            left: -20px;
            -webkit-animation: spBarsBefore 1s infinite linear;
            animation: spBarsBefore 1s infinite linear;
        }

        .sp-bars:after {
            right: -20px;
            -webkit-animation: spBarsAfter 1s infinite linear;
            animation: spBarsAfter 1s infinite linear;
        }

        @keyframes spBarsBefore {
            0% {
                transform: scale(1, 1);
            }
            25% {
                transform: scale(1, 1.25);
            }
            50% {
                transform: scale(1, 0.75);
            }
            75% {
                transform: scale(1, 1);
            }
            100% {
                transform: scale(1, 1);
            }
        }
        @keyframes spBars {
            0% {
                transform: scale(1, 1);
            }
            25% {
                transform: scale(1, 1);
            }
            50% {
                transform: scale(1, 1.25);
            }
            75% {
                transform: scale(1, 1);
            }
            100% {
                transform: scale(1, 1);
            }
        }
        @keyframes spBarsAfter {
            0% {
                transform: scale(1, 1);
            }
            25% {
                transform: scale(1, 1);
            }
            50% {
                transform: scale(1, 0.75);
            }
            75% {
                transform: scale(1, 1.25);
            }
            100% {
                transform: scale(1, 1);
            }
        }
        /* Spinner Clock */
        .sp-clock {
            border: 1px #000 solid;
            border-radius: 50%;
            position: relative;
        }

        .sp-clock:before {
            content: '';
            border-left: 1px #000 solid;
            position: absolute;
            top: 2px;
            width: 1px;
            height: calc( 50% - 2px );
            -webkit-transform: rotate(0deg);
            transform: rotate(0deg);
            -ms-transform-origin: 0% 100%;
            -webkit-transform-origin: 0% 100%;
            transform-origin: 0% 100%;
            -webkit-animation: spClock 1s infinite linear;
            animation: spClock 1s infinite linear;
        }

        @-webkit-keyframes spClock {
            from {
                -webkit-transform: rotate(0deg);
            }
            to {
                -webkit-transform: rotate(359deg);
            }
        }
        @keyframes spClock {
            from {
                transform: rotate(0deg);
            }
            to {
                transform: rotate(359deg);
            }
        }
        /* Spinner Wave */
        .sp-wave {
            border-radius: 50%;
            position: relative;
            opacity: 1;
        }

        .sp-wave:before, .sp-wave:after {
            content: '';
            border: 1px #000 solid;
            border-radius: 50%;
            width: 100%;
            height: 100%;
            position: absolute;
            left: 0px;
        }

        .sp-wave:before {
            transform: scale(1, 1);
            opacity: 1;
            -webkit-animation: spWaveBe 0.6s infinite linear;
            animation: spWaveBe 0.6s infinite linear;
        }

        .sp-wave:after {
            transform: scale(0, 0);
            opacity: 0;
            -webkit-animation: spWaveAf 0.6s infinite linear;
            animation: spWaveAf 0.6s infinite linear;
        }

        @-webkit-keyframes spWaveAf {
            from {
                -webkit-transform: scale(0.5, 0.5);
                opacity: 0;
            }
            to {
                -webkit-transform: scale(1, 1);
                opacity: 1;
            }
        }
        @keyframes spWaveAf {
            from {
                transform: scale(0.5, 0.5);
                opacity: 0;
            }
            to {
                transform: scale(1, 1);
                opacity: 1;
            }
        }
        @-webkit-keyframes spWaveBe {
            from {
                -webkit-transform: scale(1, 1);
                opacity: 1;
            }
            to {
                -webkit-transform: scale(1.5, 1.5);
                opacity: 0;
            }
        }
        @keyframes spWaveBe {
            from {
                -webkit-transform: scale(1, 1);
                opacity: 1;
            }
            to {
                -webkit-transform: scale(1.5, 1.5);
                opacity: 0;
            }
        }
        /* Spinner Texture */
        .sp-texture {
            border: 1px #000 solid;
            border-radius: 4px;
            position: relative;
            background: linear-gradient(45deg, transparent 49%, #000 50%, #000 50%, transparent 51%, transparent), linear-gradient(-45deg, transparent 49%, #000 50%, #000 50%, transparent 51%, transparent);
            background-size: 16px 16px;
            background-position: 0% 0%;
            -webkit-animation: spTexture 1s infinite linear;
            animation: spTexture 1s infinite linear;
        }

        @-webkit-keyframes spTexture {
            from {
                background-position: 0px 0px;
            }
            to {
                background-position: -16px 0px;
            }
        }
        @keyframes spTexture {
            from {
                background-position: 0px 0px;
            }
            to {
                background-position: -16px 0px;
            }
        }
        /* Spinner LoadBar */
        .sp-loadbar {
            width: 50px;
            height: 18px;
            border: 1px #000 solid;
            border-radius: 4px;
            background: linear-gradient(-60deg, transparent 0%, transparent 50%, #000 50%, #000 75%, transparent 75%, transparent);
            background-size: 20px 30px;
            background-position: 0px 0px;
            -webkit-animation: spLoadBar 0.8s infinite linear;
            animation: spLoadBar 0.8s infinite linear;
        }

        @-webkit-keyframes spLoadBar {
            from {
                background-position: 0px 0px;
            }
            to {
                background-position: -20px 0px;
            }
        }
        @keyframes spLoadBar {
            from {
                background-position: 0px 0px;
            }
            to {
                background-position: -20px 0px;
            }
        }
        /* Spinner Hydrogen */
        .sp-hydrogen {
            position: relative;
            border: 1px #000 solid;
            border-radius: 50%;
            -webkit-animation: spHydro 0.6s infinite linear;
            animation: spHydro 0.6s infinite linear;
        }

        .sp-hydrogen:before, .sp-hydrogen:after {
            content: '';
            position: absolute;
            width: 10px;
            height: 10px;
            background-color: #000;
            border-radius: 50%;
        }

        .sp-hydrogen:before {
            top: calc( 50% - 5px );
            left: calc( 50% - 5px );
        }

        .sp-hydrogen:after {
            top: -1px;
            left: -1px;
        }

        @-webkit-keyframes spHydro {
            from {
                -webkit-transform: rotate(0deg);
            }
            to {
                -webkit-transform: rotate(359deg);
            }
        }
        @keyframes spHydro {
            from {
                transform: rotate(0deg);
            }
            to {
                transform: rotate(359deg);
            }
        }

        #loadingMask{
            position: fixed;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 1000000;
            background: white;
            opacity: 0.5;
            display: none;
        }
    </style>

    <script src="<?php echo base_url();?>public/h5/js/jquery.min.js"></script>
    <script src="<?php echo base_url();?>public/h5/js/bootstrap.min.js"></script>
    <script src="<?php echo base_url();?>public/h5/js/content.min.js"></script>

    <!--[if lt IE 9]>
    <script src="<?php echo base_url();?>public/js/vendor/html5shiv.min.js"></script>
    <script src="<?php echo base_url();?>public/js/vendor/respond.min.js"></script>
    <![endif]-->
    <script>
        window.common_conf = {
            defaultHash: 'welcome/main',
            baseURL: './',
            navJSON: '<?php echo base_url('welcome/getmenu');?>'
        };
    </script>
</head>

<body>
<header id="page_header" style="text-align: center">
    <div class="logow animated fadeInLeft left_side">SUPERANT</div>
    <div class="mid_side">
        <span >疯狂的金币后台管理系统</span>
    </div>
    <div class="right_side">
        <!--            <div class="pack-style">-->
        <!--                已选包 : --><?php //echo  $sidNameList ?? '无'?>
        <!--            </div>-->
        <!--            <span style="width:100px;" id="package">-->
        <!--                <i class="fa fa-user">选择包</i>-->
        <!--            </span>-->
        <!--            <span style="width:50px;" class="fullScreen_btn J_confirm_modal" data-target="welcome/switchenv" data-tip="切换内外网"><i class="fa fa-repeat">--><?php //echo $webenv;?><!--</i></span>-->

        <span class="logout_btn" onclick="window.location.href='/#user/index'" style="display:block;"><i class="fa fa-street-view"></i></span>
        <?php if($warning != 0)
            echo '<span class="logout_btn" onclick="window.location.href=\'#debug/warning\'" style="display:block;color: red;"><i class="fa fa-exclamation-triangle" aria-hidden="true"></i></span>';
        ?>
        <span class="logout_btn J_confirm_modal" data-target="login/logout" data-tip="确认退出吗？"><i class="fa fa-sign-out"></i></span>
        <span class="toggleMenu_btn"><i class="fa fa-bars"></i></span>
    </div>

</header>
<div id="loadingMask" >
    <div class="row" style="height: 100%;display: flex;align-items: center;">
        <div class="col-sm-2 col-lg-offset-6">
            <div class="sp sp-3balls"></div>
        </div>
    </div>
</div>
<aside id="left_panel">
    <div class="login_info">
            <span>
                <div>
                    <a href="#" data-toggle="dropdown">
                        <i class="fa fa-user"></i><span class="name"><?php echo get_cookie('username');?></span><span class="caret"></span>
                    </a>
                    <ul class="dropdown-menu">
                        <li><a tabindex="-1" href="<?php echo base_url('#sys/changepwd');?>">修改密码</a></li>
                        <li><a tabindex="-1" href="#" class="J_confirm_modal" data-target="login/logout" data-tip="确认退出吗？">退出</a></li>
                    </ul>
                </div>
            </span>
    </div>
    <script id="nav_tpl" type="text/html">
        <ul>
            {{foreach nav as bigMenu i}}
            <li><a href="#{{bigMenu.url}}"><i class="fa fa-lg fa-fw fa-file-text"></i><span {{if bigMenu.color}} style="color:{{bigMenu.color}}"{{/if}}>{{bigMenu.t}}</span>{{if bigMenu.child && bigMenu.child.length >= 1}}<b><i class="fa fa-plus-square-o"></i></b>{{/if}}</a>
                {{if bigMenu.child && bigMenu.child.length >= 1}}
                <ul>
                    {{foreach bigMenu.child as medMenu j}}
                    <li><a href="#{{medMenu.url}}"><i class="fa fa-fw fa-file"></i><span {{if medMenu.color}} style="color:{{medMenu.color}}"{{/if}}>{{medMenu.t}}</span>{{if medMenu.child && medMenu.child.length >= 1}}<b><i class="fa fa-plus-square-o"></i></b>{{/if}}</a>
                        {{if medMenu.child && medMenu.child.length >= 1}}
                        <ul>
                            {{foreach medMenu.child as minMenu k}}
                            <li><a href="#{{minMenu.url}}"><i class="fa fa-fw fa-file"></i><span {{if minMenu.color}} style="color:{{minMenu.color}}"{{/if}}>{{minMenu.t}}</span></a></li>
                            {{/foreach}}
                        </ul>
                        {{/if}}
                    </li>
                    {{/foreach}}
                </ul>
                {{/if}}
            </li>
            {{/foreach}}
        </ul>
    </script>
    <nav></nav>
    <span class="minifyBtn"><i class="fa fa-arrow-circle-left"></i></span>

</aside>
<div id="main">
    <div id="ribbon"><ol class="breadcrumb"></ol></div>
    <div id="content">



        <link href="<?php echo base_url();?>public/h5/css/bootstrap.min14ed.css" rel="stylesheet">
        <link href="<?php echo base_url();?>public/h5/css/font-awesome.min93e3.css" rel="stylesheet">
        <link href="<?php echo base_url();?>public/h5/css/animate.min.css" rel="stylesheet">
        <link href="<?php echo base_url();?>public/h5/css/style.min862f.css" rel="stylesheet">
        <style>
            #alertmod_activity_list {
                top: 900px !important;
                display: none;
            }
            #alertmod_table_list_2 {
                top: 900px !important;
                display: none;
            }
            .my-fcheck {
                position: absolute;
                top: 0%; left: 0%;
                display: block;
                width: 100%;
                height: 100%;
                margin: 0px;
                padding: 0px;
                background: rgb(255, 255, 255);
                border: 0px;
                opacity: 0;
            }
            .noshow{
                display: none;
            }
        </style>

        <div class="container-fluid" style="background-color: #f3f3f4;">
            <div class="row">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>运营后台/活动配置</h5>
                    </div>
                    <div class="ibox-content">
                        <h3 style="font-weight: bold">活动配置</h3>
                    </div>
                </div>
            </div>

        </div>
        <div class="row">
            <div class="col-sm-12">
                <div class="tabs-container">
                    <ul class="nav nav-tabs">
                        <li class="active"><a data-toggle="tab" href="#tab-1" aria-expanded="true"><?php echo $info['name'];?>配置</a></li>
                    </ul>
                    <div class="tab-content">
                        <div id="tab-1" class="tab-pane active">
                            <div class="panel-body">

                                <form method="post" class="form-horizontal" id="activityFrom" enctype="multipart/form-data" action="#">
                                    <input type="hidden" value="<?php echo $id?>" name="id">
                                    <div class="ibox float-e-margins">
                                        <div class="ibox-title" style="border-top: 0;">
                                            <h3 style="font-weight: bold">活动类型配置</h3>
                                        </div>
                                        <div class="ibox-content" style="padding:25px 0;">
                                            <div class="col-sm-8">
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">活动名称:</label>
                                                    <div class="col-sm-4">
                                                        <input type="text" placeholder="中文" name="name" value="<?php echo $info['name'];?>" class="form-control">
                                                    </div>
                                                </div>

                                                <div class="form-group ">
                                                    <label class="col-sm-2 control-label m-b">A/B类型：</label>
                                                    <div class="col-sm-4">
                                                        <select class="form-control m-b" name="abType">
                                                            <option value="0" <?php if($info['abType'] == 0) echo 'selected';?>>关闭</option>
                                                            <option value="1" <?php if($info['abType'] == 1) echo 'selected';?>>firebase分组</option>
                                                            <option value="2" <?php if($info['abType'] == 2) echo 'selected';?>>数数分群</option>
                                                        </select>
                                                    </div>
                                                    <label class="col-sm-2 control-label m-b">A/B 组：</label>
                                                    <div class="col-sm-4">
                                                        <select class="form-control m-b" name="abTest">
                                                            <?php if($info['abType'] != 2){?>
                                                                <option value="0" <?php if($info['abTest'] == 0) echo 'selected';?>>关闭</option>
                                                                <option value="1" <?php if($info['abTest'] == 1) echo 'selected';?>>基准组</option>
                                                                <option value="2" <?php if($info['abTest'] == 2) echo 'selected';?>>变量1</option>
                                                                <option value="3" <?php if($info['abTest'] == 3) echo 'selected';?>>变量2</option>
                                                                <option value="4" <?php if($info['abTest'] == 4) echo 'selected';?>>非变量1</option>
                                                                <option value="5" <?php if($info['abTest'] == 5) echo 'selected';?>>非变量1非变量2</option>
                                                                <option value="6" <?php if($info['abTest'] == 6) echo 'selected';?>>非基准非变量1</option>
                                                            <?php }else {?>
                                                                <option value="0" <?php if($info['abTest'] == 0) echo 'selected';?>>全部</option>
                                                                <option value="1" <?php if($info['abTest'] == 1) echo 'selected';?>>A组(双)</option>
                                                                <option value="2" <?php if($info['abTest'] == 2) echo 'selected';?>>B组(单)</option>
                                                            <?php }?>

                                                        </select>
                                                    </div>
                                                    <label class="col-sm-2 control-label m-b" id="taLabel" <?=($info['abType']!=2)?'style="display:none;"':''?>>数数分群：</label>
                                                    <div class="col-sm-4" id="taSel" <?=($info['abType']!=2)?'style="display:none;"':''?>>
                                                        <select class="form-control m-b" name="taTest">
                                                            <?php foreach ($userGroup5 as $k => $v) { ?>
                                                                <option value="<?php echo $k?>" <?php if($info['taTest'] == $k) echo 'selected';?>><?php echo $v?></option>
                                                            <?php }?>

                                                        </select>
                                                    </div>
                                                </div>
                                                <div class="form-group ">
                                                    <label class="col-sm-2 control-label m-b">是否推送：</label>
                                                    <div class="col-sm-2">
                                                        <select class="form-control m-b" name="openPush">
                                                            <option value="0" <?php if($info['openPush'] == 0) echo 'selected';?>>不推送</option>
                                                            <option value="1" <?php if($info['openPush'] == 1) echo 'selected';?>>推送</option>
                                                        </select>
                                                    </div>
                                                </div>

                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">活动模板：</label>
                                                    <input type="hidden" value="<?php echo $info['type']?>" name="old_type">
                                                    <div class="col-sm-4">
                                                        <select class="form-control m-b select2" name="type" id="select_type">
                                                            <?php  if(!empty($act_type)) foreach ($act_type as $k => $v) { ?>
                                                                <option value="<?php echo $k?>" <?php if($info['type'] == $k) echo 'selected';?>><?php echo $v['tips']?></option>
                                                            <?php }?>
                                                        </select>
                                                    </div>
                                                    <label class="col-sm-2 control-label">收集物品：</label>
                                                    <div class="col-sm-3">
                                                        <select class="form-control m-b select2" name="cid" id="select_cid">
                                                            <?php if(!empty($collect_type)) foreach ($collect_type as $k => $v) { ?>
                                                                <option value="<?php echo $v['id']?>" <?php if($info['cid'] == $v['id']) echo 'selected';?>><?php echo $v['name']?></option>
                                                            <?php }?>
                                                        </select>
                                                    </div>
                                                </div>

                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">开始结束时间：</label>
                                                    <div class="col-sm-5">
                                                        <input type="text" class="form-control" id="test" placeholder=" 时间选择 " name="sn_time" value="<?php echo date("Y-m-d H:i:s",$info['start_time'])." - ".date("Y-m-d H:i:s",$info['end_time']);?>">
                                                    </div>
                                                    <?php if(empty($id)){?>
                                                        <label class="col-sm-3 control-label">开始自动创建天数：</label>
                                                        <div class="col-sm-2">
                                                            <input type="text" class="form-control" value="0" name="authDays">
                                                        </div>
                                                    <?php }else{?>
                                                        <input type="hidden" class="form-control" value="0" name="authDays">
                                                    <?php } ?>
                                                </div>

                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">领奖时间：</label>
                                                    <div class="col-sm-4">
                                                        <input type="text" class="form-control" id="test1" placeholder="yyyy-mm-dd hh:ii:ss" name="reward_time" value="<?php echo date("Y-m-d H:i:s",$info['reward_time']);?>">
                                                    </div>
                                                    <!--                                            <label class="col-sm-2 control-label">关闭时间：</label>-->
                                                    <!--                                            <div class="col-sm-4">-->
                                                    <!--                                                <input type="text" class="form-control" id="test2" placeholder="yyyy-mm-dd hh:ii:ss" name="lock_time">-->
                                                    <!--                                            </div>-->
                                                </div>


                                                <div class="form-group ">
                                                    <label class="col-sm-2 control-label m-b">循环方式：</label>
                                                    <div class="col-sm-2">
                                                        <select class="form-control m-b" name="loop_type">
                                                            <option value="1" <?php if($info['loop_type'] == 1) echo 'selected';?>>单次</option>
                                                            <option value="2" <?php if($info['loop_type'] == 2) echo 'selected';?>>小时</option>
                                                            <option value="3" <?php if($info['loop_type'] == 3) echo 'selected';?>>天数</option>
                                                        </select>
                                                    </div>
                                                    <div class="col-sm-2 input-group" style="text-align: center">
                                                        <input type="text" style="text-align: center" class="form-control" name="loop_num" value="<?php echo $info['loop_num']?>"><span class="input-group-addon" id="unit">小时</span>
                                                    </div>
                                                </div>

                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label m-b">
                                                        客户端类型选择：
                                                    </label>
                                                    <div class="col-sm-2">
                                                        <select class="form-control m-b" name="client">
                                                            <option value="0" >全部</option>
                                                            <option value="1" <?php if($info['client'] == 1) echo 'selected';?>>安卓</option>
                                                            <option value="2" <?php if($info['client'] == 2) echo 'selected';?>>IOS</option>
                                                        </select>
                                                    </div>

                                                    <label class="col-sm-2 control-label m-b">
                                                        账户类型：
                                                    </label>
                                                    <div class="col-sm-2">
                                                        <select class="form-control m-b" name="user_type">
                                                            <option value="0" >全部</option>
                                                            <option value="1" <?php if($info['user_type'] == 1) echo 'selected';?>>FB</option>
                                                            <option value="2" <?php if($info['user_type'] == 2) echo 'selected';?>>游客</option>
                                                        </select>
                                                    </div>
                                                    <label class="col-sm-2 control-label m-b">
                                                        活动类型：
                                                    </label>
                                                    <div class="col-sm-2">
                                                        <select class="form-control m-b" name="uc_type">
                                                            <option value="0" >常规活动</option>
                                                            <option value="1" <?php if($info['uc_type'] == 1) echo 'selected';?>>道具活动</option>
                                                        </select>
                                                    </div>
                                                </div>

                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label m-b">
                                                        参与等级：
                                                    </label>
                                                    <div class="col-sm-3 input-group">
                                                        <input type="text" style="text-align: center" class="form-control" name="s_lv" value="<?php echo $info['s_lv']?>"><span class="input-group-addon">-</span><input type="text" style="text-align: center" class="form-control" name="e_lv" value="<?php echo $info['e_lv']?>">
                                                    </div>

                                                </div>

                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label m-b">
                                                        vip等级：
                                                    </label>
                                                    <div class="col-sm-3 input-group">
                                                        <input type="text" style="text-align: center" class="form-control" name="s_vip" value="<?php echo $info['s_vip']?>"><span class="input-group-addon">-</span><input type="text" style="text-align: center" class="form-control" name="e_vip" value="<?php echo $info['e_vip']?>">
                                                    </div>
                                                </div>

                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label m-b">
                                                        玩家积分：
                                                    </label>
                                                    <div class="col-sm-3 input-group">
                                                        <input type="text" style="text-align: center" class="form-control" name="s_score" value="<?php echo $info['s_score']?>"><span class="input-group-addon">-</span><input type="text" style="text-align: center" class="form-control" name="e_score" value="<?php echo $info['e_score']?>">
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">是否开启版本向下兼容:</label>
                                                    <div class="col-sm-3">
                                                        <select class="form-control m-b" name="isComVersion">
                                                            <option value="0" >是</option>
                                                            <option value="1" <?php if($info['isComVersion'] == 1) echo 'selected';?>>否</option>
                                                        </select>
                                                    </div>
                                                </div>
                                                <?php
                                                if($info['type'] == 'super_collect'){
                                                    ?>
                                                    <div class="form-group">
                                                        <label class="col-sm-2 control-label">是否有spine动画:</label>
                                                        <div class="col-sm-3">
                                                            <select class="form-control m-b" name="extraData[isShowSpine]">
                                                                <option value="0" >否</option>
                                                                <option value="1" <?php if($info['extraData']['isShowSpine'] == 1) echo 'selected';?>>是</option>
                                                            </select>
                                                        </div>
                                                    </div>
                                                    <?php
                                                }
                                                ?>
                                                <div class="form-group">
                                                    <label class="col-sm-2 control-label">活动版本(不勾选则默认大于1.6.3版本):</label>
                                                    <div class="col-sm-10">
                                                        <?php foreach ($versions as $v){?>
                                                            <input type="checkbox" class="form-check-input" name="act_version[]" value="<?php echo $v;?>" <?php if(in_array($v,$info['act_version']))echo " checked";?> ><spin><?php echo $v;?></spin>
                                                        <?php }?>
                                                    </div>
                                                </div>
                                                <!--                                        <div class="form-group">-->
                                                <!--                                            <label class="col-sm-2 control-label">参与国家(不勾选则默认所以国家):</label>-->
                                                <!--                                            <div class="col-sm-10">-->
                                                <?php //foreach ($country as $k=> $v){?>
                                                <!--                                                    <input type="checkbox" class="form-check-input" name="country[]" value="--><?php ////echo $k;?><!--" --><?php ////if(in_array($k,$info['country']))echo " checked";?><!-- ><spin>--><?php ////echo $v;?><!--</spin>-->
                                                <?php //}?>
                                                <!--                                            </div>-->
                                                <!--                                        </div>-->
                                            </div>
                                        </div>
                                    </div>

                                    <div class="ibox float-e-margins">
                                        <div class="ibox-title" style="border-top: 0;">
                                            <h3 style="font-weight: bold">活动资源配置</h3>
                                        </div>
                                        <div class="ibox-content" style="padding:25px 0;">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">资源文件夹名:</label>
                                                <div class="col-sm-4">
                                                    <input type="text" id="imgName" placeholder="public/game/image/activity_2/..." name="imgName" value="<?php echo $info['imgName'];?>" class="form-control">
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">标题显示文字：</label>
                                                <?php foreach ($langs as $k=>$v){?>
                                                    <div class="col-sm-1" style="text-align: center"><span><?php echo $v;?></span><input type="text" style="text-align: center" class="form-control" name="show_title[<?php echo $k;?>]" value="<?php echo $info['show_title'][$k];?>"></div>
                                                <?php }?>
                                            </div>
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">按钮显示文字：</label>
                                                <?php foreach ($langs as $k=>$v){?>
                                                    <div class="col-sm-1" style="text-align: center"><span><?php echo $v;?></span><input type="text" style="text-align: center" class="form-control" name="bname[<?php echo $k;?>]" value="<?php echo $info['bname'][$k]?$info['bname'][$k]:$langsBtn[$k];?>"></div>
                                                <?php }?>
                                            </div>
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">按钮/进度条 颜色：</label>
                                                <div class="col-sm-4">
                                                    <select class="form-control m-b" name="bcolor">
                                                        <option value="1" <?php if($info['bcolor'] == 1) echo 'selected'; ?>>蓝色</option>
                                                        <option value="2" <?php if($info['bcolor'] == 2) echo 'selected'; ?>>红色</option>
                                                        <option value="3" <?php if($info['bcolor'] == 3) echo 'selected'; ?>>绿色</option>
                                                        <option value="4" <?php if($info['bcolor'] == 4) echo 'selected'; ?>>灰色</option>
                                                        <option value="5" <?php if($info['bcolor'] == 5) echo 'selected'; ?>>橙色</option>
                                                    </select>
                                                </div>
                                            </div>
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">跳转位置：</label>
                                                <div class="col-sm-4">
                                                    <select class="form-control m-b select2" name="bskip">
                                                        <?php foreach ($skips as $k=>$v){?>
                                                            <option value="<?php echo $k;?>" <?php if($info['bskip'] == $k) echo 'selected'; ?>><?php echo $v;?></option>
                                                        <?php }?>
                                                    </select>
                                                </div>
                                                <div class="col-sm-4">
                                                    <input type="text" placeholder="https:// or http://" name="burl" value="<?php echo $info['burl'];?>" class="form-control">
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="ibox float-e-margins">
                                        <div class="ibox-title" style="border-top: 0;">
                                            <h3 style="font-weight: bold">活动奖励配置<span style="color: #ff0000;">(*任意活动只能配置一张固定金卡)</span></h3>
                                        </div>
                                        <div class="ibox-content" style="padding:25px 0;" id="reward_info">

                                        </div>
                                    </div>

                                    <div class="col-sm-12" style="margin-top: 3rem">
                                        <div class="form-group">
                                            <div class="col-sm-4 col-sm-offset-2">
                                                <button class="btn btn-primary" id="submitBtn" type="button">保存内容</button>
                                                <a href="#activity/h5"><button class="btn btn-white" type="button">返回</button></a>
                                            </div>
                                        </div>
                                    </div>
                                </form>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="modal inmodal fade" id="myModal5" tabindex="-1" role="dialog"  aria-hidden="true">
        <div class="modal-dialog modal-lg" style="width:1000px">
            <div class="modal-content" style="width: 100%;left: -15%;">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" onclick="closePrize()"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <h4 class="modal-title">奖励配置</h4>
                </div>
                <div class="modal-body" style="height: 600px;">
                    <!--                <from id="prize_from">-->
                    <table class="table table-bordered" id="prize_table">
                        <thead><tr class="ths"><th>阶段</th><th>阶段值</th><th>奖励</th></tr></thead>

                        <tbody id="prize_body">

                        </tbody>

                        <tr><td colspan="3" id="tds"><div class="text-center"><botton class="btn btn-primary" id="addPrize" onclick="addPrize()">添加</botton><botton class="btn btn-danger del-tr" onclick="delPrize()">删除</botton></div></td></tr>
                    </table>
                    <!--                </from>-->
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-white" data-dismiss="modal" onclick="closePrize()">关闭</button>
                    <button type="button" class="btn btn-primary" onclick="scheduleSubmit()">保存</button>
                </div>
            </div>
        </div>
    </div>

    <style>
        .prizesSpan{
            text-align: center;
        }
    </style>

    </div>
</div>
<!--    <footer id="page_footer">-->
<!--        <div class="inside"><i class="fa fa-copyright"></i>超级蚂蚁SuperAnt-->
<!--<!--            <a href="http://hallth.superant.cc/login/index" style="color:#337ab7"> --  跳转至大厅</a>-->-->
<!--        </div>-->
<!--    </footer>-->

<!--Common Modal -->
<div class="modal fade" id="modal_ajax_content" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog"><div class="modal-content"></div></div>
</div>
<div class="modal fade" id="modal_confirm" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-sm">
        <div class="modal-content">
            <div class="modal-body"></div>
            <div class="modal-footer" style="text-align:center;">
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                <button type="button" class="btn btn-danger J_confirm_btn"><i class="fa fa-refresh fa-spin"></i> 确定</button>
            </div>
        </div>
    </div>
</div>

<!--包选择-->
<div class="modal" id="packageSelect" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                <h4 class="modal-title" id="myModalLabel">选择包</h4>
            </div>
            <div class="moday-body" style="margin:15px 0;">
                <form class="form-horizontal J_ajaxForm"  role="form" method="post" action="welcome/actionSid">
                    <div class="form-group" style="margin:0 0 15px;">
                        <label class="col-sm-2 control-label" style="line-height: 7px;">包:</label>
                        <div class="an-checkbox-div col-sm-10 android-package">
                            <label>
                                <input type="checkbox"  <?php if($allCheck){echo 'checked';}?> id="android-checkall"> 【全选】
                            </label>
                            <?php foreach ($packageList as $k => $v) { ?>
                                <label>
                                    <input type="checkbox" class="android-check" name="package[]" <?php if(in_array($k, $sidList)){echo 'checked';}?>  value="<?php echo $k;?>"> <?php echo $v;?>
                                </label>
                            <?php }?>
                            <!--                                <br/>-->
                            <!--                                --><?php //foreach ($iosPackageList as $k => $v) { ?>
                            <!--                                    <label>-->
                            <!--                                        <input type="checkbox" class="android-check" name="package[]" --><?php //if(in_array($k, $sidList)){echo 'checked';}?><!--  value="--><?php //echo $k;?><!--"> --><?php //echo '苹果'.$v;?>
                            <!--                                    </label>-->
                            <!--                                --><?php //}?>

                        </div>
                    </div>


                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                        <button type="button" class="btn btn-primary J_ajaxSubmitBtn">提交</button>
                    </div>
                </form>
            </div>
        </div>
    </div>

    <script src="<?php echo base_url();?>public/js/vendor/jquery.min.js"></script>
    <script src="<?php echo base_url();?>public/js/bootstrap/bootstrap.min.js" ></script>
    <script src="<?php echo base_url();?>public/js/vendor/catpl.js"></script>
    <script src="<?php echo base_url();?>public/js/vendor/ie10-viewport-bug-workaround.js"></script>
    <script src="<?php echo base_url();?>public/js/ajaxForm.js"></script>
<!--    <script src="--><?php //echo base_url();?><!--public/js/basic.js"></script>-->
    <script src="<?php echo base_url();?>public/js/vendor/bootstrap-datepicker/js/bootstrap-datepicker.min.js"></script>
    <script src="<?php echo base_url();?>public/js/vendor/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"></script>
    <script src="<?php echo base_url();?>public/js/vendor/bootstrap-switch.min.js"></script>
    <!--    <script type="text/javascript" src="--><?php //echo base_url();?><!--public/js/highcharts/highcharts.js"></script>-->
    <script src="https://code.highcharts.com.cn/highstock/highstock.js"></script>
    <script src="https://code.highcharts.com/modules/data.js"></script>
    <script src="https://code.highcharts.com/modules/heatmap.js"></script>
    <script src="<?php echo base_url();?>public/js/laydate/laydate.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>
    <script src="<?php echo base_url();?>static/activity/js/jigsaw.js?v=<?php echo time();?>"></script>
    <script src="<?php echo base_url();?>static/activity/js/treasure.js?v=<?php echo time();?>"></script>
    <script src="<?php echo base_url();?>static/activity/js/mayaWheel.js?v=<?php echo time();?>"></script>
    <script src="<?php echo base_url();?>static/activity/js/chooseYouWant.js?v=<?php echo time();?>"></script>
    <script src="<?php echo base_url();?>static/activity/js/foxHammer.js?v=<?php echo time();?>"></script>
    <script src="<?php echo base_url();?>static/activity/js/easterEgg.js?v=<?php echo time();?>"></script>
</body>
<script>
    var typeGrout = ["architecture","accumulated_pay"];
    var spansTypeGrout =["collect","steal","attack","collect_only","super_collect","rank","rank2"];
    var act_type ='';//当前活动类型
    var reward_limit= 0;
    var reward_limit2= 0; //阶段奖励2
    var reward_limit3= 0; //阶段奖励3
    var rank_limit=[];
    var treasure_limit=0;
    var trafficPermit_limit=-1;
    var callbackTask_limit =0;
    var trafficPermitTask_limit =0;
    var trafficPermitTask_limit2=0;
    var bet_limit=0;
    var betSpinsRange_limit=0;
    var reward_type=[];//奖品道具分类
    var reward_type_arr =[];//奖品分类数组
    var reward_conf=[];//收集进度值获取配置
    var reward_pro=[];//收集触发概率配置
    var reward_info=[];//奖励详情
    var reward_info_new =[];
    var extra_reward =[];//额外奖励配置 ，包括排行榜排行奖励配置
    var activity_extra_data =[];//额外奖励配置 ，包括排行榜排行奖励配置
    var actProps =[];
    var rootPath = '<?php echo site_url();?>';
    var aid = '<?php echo intval($id);?>';
    var imgNames=[];//资源类型
    var chain_gift_conf=[];//连环礼包配置
    var chain_gift=[];
    var spinStage=0;//体力限制收集奖励阶段
    var rankSpinStage=0;//体力限制排行排名奖励
    var spin_reward_limit =[];
    var this_index =0; //当前的spin奖励项id
    var golden_card = [];
    var shop_promotion_limit = 0;
    var steel_safelimit_limit = 0;
    var steel_safelimit_tr = 1;
    var premium_limit = 0;
    var goodSku =[];//礼包商品sku列表
    var coins_list =["coins01","coins02","coins03","coins04","coins05","coins06"];
    var actPropArr = <?php echo json_encode($actPropsIds);?>;//活动道具id
    var actTypeProp =["chain_gift","super_serial_pack","super_serial_pack2","traffic_permit","super_collect","choose_one","fund","one_plus_gift","safe_surprise"];//允许活动道具的活动类型
    var scoreCGType = 1;//超级连环礼包模式
    var scoreCGGidArr  = [];//超级连环礼包模式
    var timeLimit = 0;//当前限时次数
    var timeLimitBet=0;//当前限时bet次数
    var balloon_bet_limit=[];
    var betStage=0;
    var spinsProLimit=0;//体力影响概率系数行次
    var chestArr = JSON.parse('<?php echo json_encode($chestSkin) ?>');
    var easterEggSkin = JSON.parse('<?php echo json_encode($easterEggSkin) ?>');
    var treasureSkin = JSON.parse('<?php echo json_encode($treasureSkin) ?>');
    var crazyCardGroup = JSON.parse('<?php echo json_encode($crazyCardGroup) ?>');
    var jigsawSkin = JSON.parse('<?php echo json_encode($jigsawSkin) ?>');
    var chestPropsArr = [19];
    var chooseOne=0;
    var selGroupId=0;//当前选中super_collect的活动子类型
    var child_groups ={"1":"常规收集","2":"特殊收集","3":"特殊收集+偷","4":"特殊收集+打","5":"偷","6":"打","7":"特殊收集偷打(暂不支持)","8":"偷特殊","9":"打特殊"};
    var shushuGroups = JSON.parse('<?php echo json_encode($hideSSGroup);?>');
    var jigsawSourceList = JSON.parse('<?php echo json_encode($jigsawSources);?>');
    var priceSkuMap = JSON.parse('<?php echo $priceSkuMap; ?>');
    var actTypes = JSON.parse('<?php echo json_encode($act_type); ?>');

    var $imgNames = '<?php echo $imgNames;?>';
    var $reward_type = '<?php echo $reward_type;?>';
    var $goodSku = '<?php echo $goodSku;?>';
    var $actProps = '<?php echo $actProps;?>';
    var $info = {};
    <?php foreach($info as $k => $v){?>
        $info['<?=$k?>'] = <?=json_encode($v)?>;
    <?php }?>
    var $reward_conf = '<?php echo $info["reward_conf"];?>';
    var $reward_pro = '<?php echo $info["reward_pro"];?>';
    var $reward_info = '<?php echo $info["reward_info"];?>';
    var extra_reward = '<?php echo $info["extra_reward"];?>';
    var reward_info_new = '<?php echo $info["reward_info_new"];?>';
    var extraData = '<?php echo json_encode($info['extraData']);?>';
    var $userGroup2 = '<?php echo json_encode($userGroup2);?>';
    var $hideSSGroup = '<?php echo json_encode($hideSSGroup);?>';
    var $userGroup5 = '<?php echo json_encode($userGroup5);?>';
    var $userGroup3 = '<?php echo json_encode($userGroup3);?>';
    var $curDate = '<?php echo date('Y-m-d H:i',time());?>';

    var date1 = new Date(parseInt('<?php echo $info['start_time']??time();?>')*1000);
    var date2 = new Date(parseInt('<?php echo $info['end_time']??time();?>')*1000);
    var date3 = new Date(parseInt('<?php echo $info['reward_time']??time();?>')*1000);
    var date4 = new Date(parseInt('<?php echo $info['lock_time']??time();?>')*1000);
    console.log(1381)
</script>
<script src="<?php echo base_url();?>static/activity/js/common.js?v=<?php echo time();?>"></script>
<script type="text/javascript">

    //主导航
    (function () {
        var $nav = $('#left_panel nav');

        var invoke_nav = function () {
            var $a = $nav.find('a');
            $a.each(function (i,o) {
                var $btn = $(this);
                var $parent_li = $btn.parent();
                var $ul = $btn.next('ul');
                var $i = $btn.find('b i');
                if ($ul.length >= 1) {
                    $btn.on('click', function (i1, o1) {
                        // window.location.href='/#'
                        var ul_orgH = $ul.innerHeight();
                        if (!$parent_li.hasClass('open')) {
                            $parent_li.addClass('open');
                            $ul.css({'height': 0}).css('display', 'block');
                            $i.removeClass('fa-plus-square-o').addClass('fa-minus-square-o');
                            $ul.animate({"height": ul_orgH}, {
                                    queue: false, duration: 200, complete: function () {
                                        $ul.css('height', 'auto');
                                    }
                                }
                            );
                        } else {
                            $parent_li.removeClass('open');
                            $i.removeClass('fa-minus-square-o').addClass('fa-plus-square-o');
                            $ul.animate({"height": 0}, {
                                    queue: false, duration: 200, complete: function () {
                                        $ul.css({'height': "auto"}).css('display', 'none');
                                    }
                                }
                            );
                        }
                        $others_li = $btn.parent().siblings('.open');
                        $others_li.each(function () {
                            var $parent_li = $(this);
                            var $btn = $parent_li.find('a:first');
                            var $ul = $btn.next('ul');
                            var $i = $btn.find('b i');
                            $parent_li.removeClass('open');
                            $i.removeClass('fa-minus-square-o').addClass('fa-plus-square-o');
                            $ul.animate({"height": 0}, {
                                    queue: false, duration: 200, complete: function () {
                                        $ul.css({'height': "auto"}).css('display', 'none');
                                    }
                                }
                            );
                        });
                    });
                }else{
                    $btn.on('click', function (i1, o1) {
                        var url = '/'+$(o).attr('href')
                        window.location.href = url
                        // console.log(6402, $(o).attr('href'))
                    })
                }
            });
        };

        $.ajax({
            type: 'get',
            url: common_conf.navJSON,
            cache: false,
            data: '',
            dataType: 'json',
            beforeSend: function () {
            },
            success: function (returnData) {
                var data = {};
                data.nav = returnData;
                var render = catpl('nav_tpl');
                var html = render(data);
                $nav.html(html);
                invoke_nav();
            },
            error: function () {

            }
        });

        //导航下面的收起按钮
        var $minifyBtn = $('#left_panel .minifyBtn');
        var $body = $('body');
        $minifyBtn.on('click', function () {
            $('#left_panel nav li.open').each(function () {
                var $parent_li = $(this);
                var $btn = $parent_li.find('a:first');
                var $ul = $btn.next('ul');
                var $i = $btn.find('b i');
                $parent_li.removeClass('open');
                $i.removeClass('fa-minus-square-o').addClass('fa-plus-square-o');
                $ul.css({'height': "auto"}).css('display', 'none');
            });
            if (!$body.hasClass('minified')) {
                $body.addClass('minified');
                $(this).find('i').addClass('fa-flip-horizontal');
            } else {
                $body.removeClass('minified');
                $(this).find('i').removeClass('fa-flip-horizontal');
            }
        });
    })();

    var rootPath = '<?php echo site_url();?>';
    $('#package').click(function () {
        $('#packageSelect').modal();
    });

    //全选/全不选
    $('#android-checkall').change(function () {
        if($(this).is(':checked')) {//已经是全选的状态
            $('.android-check').prop('checked', true);
        }else {
            $('.android-check').prop('checked', false);
        }
    });


    //格式化成千分符
    function thoundsFormat(num, str=',') {
        var reg=/\d{1,3}(?=(\d{3})+$)/g;
        return (num + '').replace(reg, '$&'+str);
    }

    function uptoTop(){
        $('html,body').animate({scrollTop: '0px'}, 800);
    }

    function showLoading() {
        $('#loadingMask').show();
        console.log('showLoading')
    }
    function hideLoading() {
        $('#loadingMask').hide();
        console.log('hideLoading')
    }
</script>
</html>

