reserve.html 12.4 KB
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>参展申请</title>
    <!--<meta name="viewport" content="width=device-width, initial-scale=1" />-->
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

    <link rel="stylesheet" type="text/css" href="https://at.alicdn.com/t/font_1043230_wamnx6np1vc.css">
    <link rel="stylesheet" type="text/css" href="__TMPL__/public/assets/css/czsq.css">
    <script src="__TMPL__/public/assets/js/base.js"></script>
    <style>
        .iconfont{
            font-size: 0.38rem;
        }
        .icon-zuo{
            color: #959595;
            font-size: 0.38rem;
        }
        .icon-iconfont-edu12{
            color: #959595;
            font-size: 0.5rem;
        }
        .mid_item{
            font-size: 0.24rem;
        }
    </style>
</head>
<body>
<div class="container">
    <!--头部信息-->
    <div class="head">
        <!--左图标-->
        <div class="iconfont icon-zuo">

        </div>
        <!--参展申请-->
        <div class="head_new">
            参展申请
        </div>
        <!--右菜单-->
        <div>

        </div>

    </div>
    <!--头部图片-->
    <div class="head_pic">
        <img src="__TMPL__/public/assets/images/888.png">
    </div>
    <!--顶部文字-->
    <div class="top">
        请预留您的参展信息,组委会稍后跟您联系
    </div>
    <!--中部信息-->
    <div class="mid">
        <form class="form" role="form" id="myForm">
        <!--企业名称-->
            <div class="mid_item">
                <div class="mid_item_left">
                    企业名称<span class="color_red">*</span>:
                </div>
                <div class="mid_item_right">
                    <input type="text" id="firmname" name="enterprise_name">
                </div>
            </div>
            <!--展位要求-->
            <div class="mid_item">
                <div class="mid_item_left">
                    展位要求<span class="color_red">*</span>:
                </div>
                <div class="mid_item_zw">
                    <!--特装展位-->
                    <div class="mid_item_zw_a">
                        <input type="checkbox" id="inlineCheckbox1" value="1" name="booth[]">
                        <p>特装展位</p>
                    </div>
                    <!--标准展位-->
                    <div class="mid_item_zw_a">
                        <input type="checkbox" id="inlineCheckbox2" value="2" name="booth[]">
                        <p>标准展位</p>
                        <div class="mid_num">
                            <input type="number" name="booth_data[1]">
                        </div>
                        <p></p>
                    </div>
                    <!--空地-->
                    <div class="mid_item_zw_a">
                        <input type="checkbox" id="inlineCheckbox3" value="3" name="booth[]">
                        <p>空地</p>
                        <div class="mid_num">
                            <input type="number" name="booth_data[2]">
                        </div>
                        <p></p>
                    </div>
                </div>
            </div>
            <!--展区要求-->
            <div class="mid_item">
                <div class="mid_item_left">
                    展区要求<span class="color_red">*</span>:
                </div>
                <div class="mid_item_zq">
                    <div class="mid_item_zq_c">
                        <input type="checkbox" value="1" name="area[]">
                        <p>机床展示区</p>
                    </div>
                    <div class="mid_item_zq_c">
                        <input type="checkbox" value="2" name="area[]">
                        <p>机器人展示区</p>
                    </div>
                    <div class="mid_item_zq_c">
                        <input type="checkbox" value="4" name="area[]">
                        <p>激光加工展区</p>
                    </div>
                    <div class="mid_item_zq_c">
                        <input type="checkbox" value="5" name="area[]">
                        <p>智能制造展区</p>
                    </div>
                    <div class="mid_item_zq_c">
                        <input type="checkbox" value="3" name="area[]">
                        <p>汽车装备展区</p>
                    </div>
                    <div class="mid_item_zq_c">
                        <input type="checkbox" value="6" name="area[]">
                        <p>工业装配及自动展区</p>
                    </div>
                    <div class="mid_item_zq_c">
                        <input type="checkbox" value="7" name="area[]">
                        <p>零部件展区</p>
                    </div>
                    <div class="mid_item_zq_c">
                        <input type="checkbox" value="8" name="area[]">
                        <p>其他</p>
                        <div class="mid_item_zq_c_input">
                            <input type="text" name="area_data">
                        </div>
                    </div>
                </div>
            </div>
            <!--展品信息-->
            <div class="mid_item">
                <div class="mid_item_left">
                    展品信息<span class="color_red">*</span>:
                </div>
                <div class="mid_item_zp">
                    <!--展品名称-->
                    <div class="mid_item_zp_a">
                        <p>展品名称</p>
                        <div class="zp_input">
                            <input type="text" name="exhibits_name">
                        </div>
                    </div>
                    <!--应用行业-->
                    <div class="mid_item_zp_a">
                        <p>应用行业</p>
                        <div class="zp_input">
                            <input type="text" name="application">
                        </div>
                    </div>

                </div>
            </div>
            <!--新品发布-->
            <div class="mid_item">
                <div class="mid_item_left">
                    新品发布:
                </div>
                <div class="mid_item_new">
                    <div class="mid_item_new_input">
                        <input type="radio" name="release"  value="1" checked>
                        <p></p>
                    </div>
                    <div class="mid_item_new_input mar_lef">
                        <input type="radio" name="release" value="0">
                        <p></p>
                    </div>
                </div>
            </div>
            <!--同期活动/论坛-->
            <div class="mid_item j_bet">
                <div class="mid_item_left l_adv">
                    同期活动/论坛:
                </div>
                <div class="mid_item_adv">
                    <div class="mid_item_new_input">
                        <input type="radio" name="activities" value="1" checked>
                        <p></p>
                    </div>
                    <div class="mid_item_new_input mar_lef">
                        <input type="radio" name="activities" value="0">
                        <p></p>
                    </div>
                </div>
            </div>
            <!--现场投放广告-->
            <div class="mid_item j_bet">
                <div class="mid_item_left l_adv">
                    现场投放广告:
                </div>
                <div class="mid_item_adv">
                    <div class="mid_item_new_input ">
                        <input type="radio" name="advertisement" value="1" checked>
                        <p></p>
                    </div>
                    <div class="mid_item_new_input mar_lef">
                        <input type="radio" name="advertisement" value="0">
                        <p></p>
                    </div>
                </div>
            </div>
            <!--联系方式-->
            <div class="mid_item contact_a">
                <div class="mid_item_left">
                    联系方式<span class="color_red">*</span>:
                </div>
                <!--右边-->
                <div class="contact_box" >
                    <div class="mid_item_contact">
                        <div class="mid_item_contact_left">
                            联系人<span class="color_red">*</span>
                        </div>
                        <!--输入框-->
                        <div class="mid_item_contact_right">
                            <input type="text" id="name" name="name">
                        </div>
                    </div>
                    <div class="mid_item_contact">
                        <div class="mid_item_contact_left">
                            手机号<span class="color_red">*</span>
                        </div>
                        <!--输入框-->
                        <div class="mid_item_contact_right">
                            <input type="text" id="tel" name="mobile">
                        </div>
                    </div>
                    <div class="mid_item_contact">
                        <div class="mid_item_contact_left">
                            邮箱<span class="color_red">*</span>
                        </div>
                        <!--输入框-->
                        <div class="mid_item_contact_right">
                            <input type="email" name="email">
                        </div>
                    </div>
                    <div class="mid_item_contact">
                        <div class="mid_item_contact_left">
                            座机
                        </div>
                        <!--输入框-->
                        <div class="mid_item_contact_right">
                            <input type="text" name="phone">
                        </div>
                    </div>
                    <div class="mid_item_contact">
                        <div class="mid_item_contact_left">
                            公司<span class="color_red">*</span>
                        </div>
                        <!--输入框-->
                        <div class="mid_item_contact_right">
                            <input type="text" name="company">
                        </div>
                    </div>
                </div>
            </div>

            <!--提交-->
            <div class="mid_sub submit_btn">
                确认提交
            </div>
        </form>




    </div>
    <!--底部菜单-->
    <include file="public@footer"/>
</div>
<script src="__TMPL__/public/assets/js/jquery.min.js"></script>
<script src="__TMPL__/public/assets/js/footer.js"></script>
<script>
    // 数据验证
    $('.submit_btn').click(function () {
        var data = $('#myForm').serializeArray();
        $.ajax({
            type : 'POST',
            url : "{:url('businessman/ajax_reserve_add')}",
            data : data,
            dataType : 'json',
            success :function(data){
                if(data.code == 1){
                    alert('提交成功');
                    location.href = '/portal/index/homePage';
                }else if(data.code == -1){
                    alert(data.msg);
                    location.href = '/portal/login/login.html';
                }else{
                    alert(data.msg);
                }
            }
        })
    })

    $("input").blur(function(){
        setTimeout(function() {
            var scrollHeight = document.documentElement.scrollTop || document.body.scrollTop || 0;
            window.scrollTo(0, Math.max(scrollHeight - 1, 0));
        }, 300);
    })
    //聚焦监听
    $('input').focus(function() {
        if((/Android/gi).test(navigator.userAgent)) {
            window.addEventListener('resize', function() {
                if(document.activeElement.tagName == 'INPUT' ||
                    document.activeElement.tagName == 'TEXTAREA') {
                    window.setTimeout(function() {
                        document.activeElement.scrollIntoViewIfNeeded();
                    }, 0);
                }
            });
        }
    })
    //返回功能
    $('.icon-zuo').click(function () {
        window.history.back();
    })
</script>
</body>
</html>