民权县12345_前端

personalInfo.html 10.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title></title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
  7. <meta name="apple-mobile-web-app-capable" content="yes">
  8. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  9. <link href="../css/mui.min.css" rel="stylesheet" />
  10. <link rel="stylesheet" href="../css/app.css" />
  11. <link rel="stylesheet" href="../layui/css/layui.mobile.css" />
  12. <link href="../css/mui.picker.css" rel="stylesheet" />
  13. <link href="../css/mui.poppicker.css" rel="stylesheet" />
  14. <link href="../css/feedback-page.css" rel="stylesheet" />
  15. <link rel="stylesheet" href="../css/iconfont.css" />
  16. <link rel="stylesheet" href="../css/inits.css" />
  17. <style>
  18. .mui-bar-popover {
  19. width: 30%;
  20. }
  21. .mui-popover.mui-bar-popover .mui-table-view {
  22. width: 100%;
  23. }
  24. .mui-table-view .mui-table-view-cell>a:not(.mui-btn) {
  25. text-align: center;
  26. }
  27. .mui-table-view-cell {
  28. padding: 1px 15px!important;
  29. }
  30. .mui-table-view {
  31. margin-top: 0!important;
  32. }
  33. .san {
  34. font-size: 14px;
  35. margin-right: 5px
  36. }
  37. .nav_a {
  38. border-right: 1px solid #ccc;
  39. }
  40. .radio_box {
  41. display: inline-block;
  42. }
  43. .mui-radio input[type=radio]:before {
  44. font-size: 20px;
  45. vertical-align: middle;
  46. }
  47. .mui-radio.mui-left input[type=radio] {
  48. line-height: 24px!important;
  49. }
  50. .mui-radio.mui-left label {
  51. padding-right: 1px!important;
  52. padding-left: 51px!important;
  53. }
  54. .ztext {
  55. width: 100%;
  56. margin: 0;
  57. border: 0;
  58. }
  59. .action {
  60. padding: 11px 15px;
  61. }
  62. .type_down {
  63. float: right!important;
  64. display: inline-block!important;
  65. vertical-align: middle!important;
  66. line-height: 42px;
  67. }
  68. .type_con {
  69. width: 55%!important;
  70. float: left!important;
  71. vertical-align: middle!important;
  72. display: inline-block!important;
  73. padding: 10px 0!important;
  74. }
  75. .label {
  76. width: 30%!important;
  77. padding: 11px 0px!important;
  78. }
  79. .get_yzm {
  80. padding: 5px!important;
  81. width: auto!important;
  82. }
  83. .yzm_con {
  84. float: left!important;
  85. width: 40%!important;
  86. }
  87. h4,h5{
  88. text-align: center;
  89. padding-top:20px ;
  90. }
  91. h5{
  92. margin-bottom: 10px;
  93. }
  94. .mui-content{
  95. background-color: #fff;
  96. }
  97. #serve{
  98. height: 70px;
  99. }
  100. .required{
  101. color: lightcoral;
  102. }
  103. </style>
  104. </head>
  105. <body>
  106. <div class="mui-content">
  107. <h4>民权县12345政府热线志愿者申请表</h3>
  108. <h5>个人信息</h4>
  109. <ul class="mui-table-view">
  110. <li class="mui-table-view-cell" id="showUserPicker">
  111. <div class="mui-input-row">
  112. <label class="label"><i class="required">*</i>姓名:</label>
  113. <input type="text" id='Name' class="ui-alert" placeholder="请填写您的姓名" />
  114. </div>
  115. </li>
  116. <li class="mui-table-view-cell" id="">
  117. <div class="mui-input-row">
  118. <label class="label">性别:</label>
  119. <div class="mui-input-row mui-radio mui-left radio_box">
  120. <label>男</label>
  121. <input type="radio" name="gender" value="1" checked/>
  122. </div>
  123. <div class="mui-input-row mui-radio mui-left radio_box">
  124. <label>女</label>
  125. <input type="radio" name="gender" value="0" />
  126. </div>
  127. </div>
  128. </li>
  129. <li class="mui-table-view-cell" id="">
  130. <div class="mui-input-row">
  131. <label class="label">民族:</label>
  132. <input type="text" id='Nation' class="ui-alert " placeholder="请填写您的民族" />
  133. </div>
  134. </li>
  135. <li class="mui-table-view-cell" id="">
  136. <div class="mui-input-row">
  137. <label class="label"><i class="required">*</i>电话:</label>
  138. <input type="text" id='Tel' class="ui-alert " placeholder="请填写您的电话"/>
  139. </div>
  140. </li>
  141. <li class="mui-table-view-cell" id="">
  142. <div class="mui-input-row">
  143. <label class="label">身份证号码:</label>
  144. <input type="text" id='IDcardNo' class="ui-alert " placeholder="请填写您的身份证号码"/>
  145. </div>
  146. </li>
  147. <li class="mui-table-view-cell" id="">
  148. <div class="mui-input-row">
  149. <label class="label">政治面貌:</label>
  150. <input type="text" id='Politicaloutlook' class="ui-alert " />
  151. </div>
  152. </li>
  153. <li class="mui-table-view-cell" id="">
  154. <div class="mui-input-row">
  155. <label class="label">专业特长:</label>
  156. <input type="text" id='Specialty' class="ui-alert " />
  157. </div>
  158. </li>
  159. <li class="mui-table-view-cell" id="">
  160. <div class="mui-input-row">
  161. <label class="label">目前工作单位或职务:</label>
  162. <input type="text" id='Post' class="ui-alert " />
  163. </div>
  164. </li>
  165. <li class="mui-table-view-cell" id="">
  166. <div class="mui-input-row">
  167. <label class="label">现居地址:</label>
  168. <input type="text" id='Placeofresidence' class="ui-alert " />
  169. </div>
  170. </li>
  171. <li class="mui-table-view-cell" id="serve">
  172. <div class="mui-input-row" style="height: 100%;">
  173. <label class="label" style="height: 100%;">服务意向:</label>
  174. <span id="severList">
  175. <!--<span><input type="checkbox" name="" id="" value="" />参与问题反馈</span>
  176. <span><input type="checkbox" name="" id="" value="" />参与办理结果核实</span>
  177. <span><input type="checkbox" name="" id="" value="" />参与矛盾化解</span>
  178. <span><input type="checkbox" name="" id="" value="" />参与办理过程监督</span>
  179. <span><input type="checkbox" name="" id="" value="" />提供专业咨询服务</span>-->
  180. </span>
  181. </div>
  182. </li>
  183. <li class="mui-table-view-cell baoMi">
  184. <div class="mui-input-row">
  185. <label class="label">是否有兴趣参与团队管理和组织建设:</label>
  186. <div class="mui-input-row mui-radio mui-left radio_box">
  187. <label>是</label>
  188. <input type="radio" name="secret" value="1" checked/>
  189. </div>
  190. <div class="mui-input-row mui-radio mui-left radio_box">
  191. <label>否</label>
  192. <input type="radio" name="secret" value="0" />
  193. </div>
  194. </li>
  195. <li class="mui-table-view-cell">
  196. <div class="mui-input-row">
  197. <label class="label">您的意见和建议:</label>
  198. <textarea class="ztext content" name="" id="textarea" rows="3" cols="" placeholder="请输入您的意见 和建议..."></textarea>
  199. </div>
  200. </li>
  201. </ul>
  202. <button type="button" data-loading-text="提交中" class="mui-btn mui-btn-primary mui-btn-block block_button submit">提交</button>
  203. <p class="action">
  204. <span>感谢您向“民权县12345政府服务热线”提出志愿者加入申请,请您在填写表格前注意以下几点:<br/></span>
  205. <span id="">
  206. 1、在提交申请之前,请务必详细阅读志愿者申请条件,志愿者服务内容,并真实详细的填写您的个人信息;<br/>
  207. </span>
  208. <span id="">
  209. 2、您的个人资料我们将严格保密,不会对热线志愿者工作站组织内部的其他无关人员公开;<br/>
  210. </span>
  211. <span id="">
  212. 3、热线在收到您的申请表后,会审核您的资料;<br/>
  213. </span>
  214. <span id="">
  215. 4、与申请有关的问题或者建议,可致电0370-8518369或通过关注公众号“民权12345政府服务热线”与我们交流。
  216. </span>
  217. </p>
  218. </div>
  219. <script src="../layui/layui.js"></script>
  220. <script src="../js/mui.min.js"></script>
  221. <script src="../js/mui.picker.js"></script>
  222. <script src="../js/mui.poppicker.js"></script>
  223. <script src="../js/zepto.js"></script>
  224. <script src="../Script/Common/huayi.config.js"></script>
  225. <script src="../Script/Common/huayi.http.js"></script>
  226. <script type="text/javascript">
  227. $(function(){
  228. var openid = helper.cookies.get("openid");
  229. getServe();
  230. $('.submit').on('click',function(){
  231. var chk_value =[];//定义一个数组
  232. $('input[name="serve"]:checked').each(function(){//遍历每一个名字为serve的复选框,其中选中的执行函数
  233. chk_value.push($(this).val());//将选中的值添加到数组chk_value中
  234. });
  235. if(chk_value.length>0){
  236. chk_value=chk_value.toString()
  237. }else{
  238. chk_value=''
  239. }
  240. $.ajax({
  241. type:"post",
  242. url:huayi.config.callcenter_url + "Volunteer/Add",
  243. async:true,
  244. data:{
  245. openid: openid,
  246. Name:$('#Name').val(),//姓名
  247. Gender:$('input[name="gender"]:checked').val(),//性别
  248. Nation:$('#Nation').val(),//民族
  249. Tel:$('#Tel').val(),//电话
  250. IDcardNo:$('#IDcardNo').val(),//身份证号码
  251. Politicaloutlook:$('#Politicaloutlook').val(),//政治面貌
  252. Specialty:$('#Specialty').val(),//专业特长
  253. Post:$('#Post').val(),//工作单位
  254. Placeofresidence:$('#Placeofresidence').val(),//现居地址
  255. Serviceintention:chk_value,//服务意向
  256. Participatein:$('input[name="secret"]:checked').val(),//组织管理
  257. Opinion:$('#textarea').val(),//意见和建议
  258. },
  259. success:function(res){
  260. var res=JSON.parse(res)
  261. if(res.state=='success'){
  262. mui.toast('提交成功')
  263. setTimeout(function () {
  264. window.location.reload()
  265. }, 1000);
  266. }
  267. }
  268. });
  269. })
  270. })
  271. function getServe(){
  272. $.ajax({
  273. type:"get",
  274. url:huayi.config.callcenter_url + "Dictionary/GetDicValueListByParentId",
  275. async:true,
  276. data:{
  277. openid: openid,
  278. pid:62
  279. },
  280. success:function(res){
  281. var res=JSON.parse(res)
  282. if(res.state=='success'){
  283. var severData=res.data;
  284. $.each(severData, function(index,item) {
  285. var html=''
  286. html += '<span><input type="checkbox" name="serve" id="" value="'+item.F_ValueId+'" />'+item.F_Value+'</span>'
  287. $('#severList').append(html)
  288. });
  289. }
  290. }
  291. });
  292. }
  293. </script>
  294. </body>
  295. </html>