engage.html 7.5 KB
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
    <title>我要进修</title>
    <script src="__TMPL__/public/assets/js/fontsize.js"></script>
    <link rel="stylesheet" href="__TMPL__/public/assets/css/init.css">
    <link rel="stylesheet" href="__TMPL__/public/assets/css/swiper-3.4.2.min.css">
    <link rel="stylesheet" href="http://at.alicdn.com/t/font_793738_tlxymah92x.css">
    <link rel="stylesheet" href="__TMPL__/public/assets/css/weui.css">
    <link rel="stylesheet" href="__TMPL__/public/assets/css/myweui.css">
    <link rel="stylesheet" href="__TMPL__/public/assets/css/referralModule.css">
    <link rel="stylesheet" href="__TMPL__/public/assets/css/comment.css">
</head>
<body>
<div class="container">
    <div class="inquary_box">
        <form id="apply_link_form">
        <div class="content_item">
            <div class="tab_title">进修培训基本资料</div>
            <div class="info_box">
                <div class="info_item unit_type1">
                    <div class="title">
                        <text>单位</text>
                    </div>
                    <div class="info_input"><input class="unit_value" type="text" placeholder="请选择单位" readonly
                       name="hospital_name" onfocus="this.focus()" id="unit">
                        <text class="iconfont icon-xiala"></text>
                        <input type="hidden" class="hospital_id" name="hospital_id">
                    </div>
                </div>
                <div class="info_item">
                    <div class="title">
                        <text>姓名</text>
                    </div>
                    <div class="info_input"><input class="" type="text" placeholder="请填写姓名" id="user_name" name="user_name"></div>
                </div>
                <div class="info_item">
                    <div class="title">
                        <text>进修专业</text>
                    </div>
                    <div class="info_input"><input class="" type="text" placeholder="请填写进修专业" id="profession" name="profession"></div>
                </div>
                <div class="info_item">
                    <div class="title">
                        <text>进修时长(月)</text>
                    </div>
                    <div class="info_input"><input class="" type="text" placeholder="请填写进修时长(月)" id="duration" name="duration"></div>
                </div>
                <div class="info_item">
                    <div class="title">
                        <text>文化程度</text>
                    </div>
                    <div class="info_input"><input class="" type="text" placeholder="请填写文化程度" id="level" name="level"></div>
                </div>
                <div class="info_item">
                    <div class="title">
                        <text>医师资格证号</text>
                    </div>
                    <div class="info_input"><input class="" type="text" placeholder="请填写医师资格证号" id="card_num" name="card_num"></div>
                </div>
                <div class="info_item">
                    <div class="title">
                        <text>身份证号</text>
                    </div>
                    <div class="info_input"><input class="" type="text" placeholder="请填写身份证号" id="id_card" name="id_card"></div>
                </div>
                <div class="info_item">
                    <div class="title">
                        <text>民族</text>
                    </div>
                    <div class="info_input"><input class="" type="text" placeholder="请填写民族" id="nation" name="nation"></div>
                </div>
                <div class="info_item">
                    <div class="title">
                        <text>毕业学校</text>
                    </div>
                    <div class="info_input"><input class="" type="text" placeholder="请填写毕业学校" id="school" name="school"></div>
                </div>
                <div class="info_item">
                    <div class="title">
                        <text>科室负责人</text>
                    </div>
                    <div class="info_input"><input class="" type="text" placeholder="请填写科室负责人" id="principal" name="pricipal"></div>
                </div>
                <div class="info_item">
                    <div class="title">
                        <text>科室电话</text>
                    </div>
                    <div class="info_input"><input class="" type="text" placeholder="请填写科室电话" id="phone_num" name="phone_num"></div>
                </div>
                <div class="info_item">
                    <div class="title">
                        <text>单位地址</text>
                    </div>
                    <div class="info_input"><input class="" type="text" placeholder="请填写单位地址" id="unit_address" name="unit_address"></div>
                </div>
                <div class="info_item">
                    <div class="title">
                        <text>当前职称</text>
                    </div>
                    <div class="info_input"><input class="" type="text" placeholder="请填写当前职称" id="job_title" name="job_title"></div>
                </div>
                <div class="info_item">
                    <div class="title">
                        <text>进修要求</text>
                    </div>
                    <div class="info_input"><input class="" type="text" placeholder="请填写进修要求" id="need_info" name="need_info"></div>
                </div>
            </div>
        </div>
        <div class="agree_btn submit train_btn">提交</div>
        </form>
    </div>
</div>
<!--表单判断弹窗-->
<div class="form_popup_box" hidden>
    <text></text>
</div>

<!--弹窗-->
<div class="box" hidden>
    <div class="public_popup_box">
        <text>您已提交成功!</text>
        <text>恭喜您获得10个积分</text>
    </div>
</div>

<!--录音弹窗-->

<script src="__TMPL__/public/assets/js/jquery-2.1.0.js"></script>
<script src="__TMPL__/public/assets/js/weui.js"></script>
<script src="__TMPL__/public/assets/js/myweui.js"></script>
<script src="__TMPL__/public/assets/js/referral.js"></script>

<script>
    $('.unit_type1').click(function () {
        weui.picker([
            <volist name='hospital' id='vo'>
                {label:'{$vo.name}', value:{$vo.id}},
            </volist>
            ], {
                onChange: function (res) {
                },
                onConfirm: function (res) {
                    $('.unit_value').val(res[0].label)
                    $('.hospital_id').val(res[0].value)
                }
            }
        )
    })

    $('.submit').click(function (res) {
        console.log($('#apply_link_form').serialize());
        $.ajax({
            type: "POST",//方法类型
            dataType: "json",//预期服务器返回的数据类型
            url: "{:url('user/Eagage/engagePost')}" ,//url
            data: $('#apply_link_form').serialize(),
            success: function (result) {

                $('.box').show().delay(2000).hide(2)
                setTimeout( reloadPage,2000);
                console.log(result);//打印服务端返回的数据(调试用)
            },
        })
    })
    
    function reloadPage() {
        window.location.href='{:url()}';
    }
</script>
</body>
</html>