engage.html
7.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<!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>