民权县12345_前端

personalInfo.html 10KB

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