Nenhuma Descrição

addWorkOrder.html 9.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
  6. <meta name="apple-mobile-web-app-capable" content="yes">
  7. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  8. <link rel="stylesheet" href="../layui/css/layui.mobile.css" />
  9. <link href="../css/mui.min.css" rel="stylesheet" />
  10. <link href="../css/mui.picker.css" rel="stylesheet" />
  11. <link href="../css/mui.poppicker.css" rel="stylesheet" />
  12. <link href="../css/feedback-page.css" rel="stylesheet" />
  13. <link rel="stylesheet" href="../css/iconfont.css" />
  14. <link rel="stylesheet" href="../css/inits.css" />
  15. <title>添加工单</title>
  16. <style>
  17. .mui-input-row {
  18. border-bottom: 1px solid #c9c9c9;
  19. }
  20. .mui-card{
  21. margin: 0;
  22. }
  23. .mui-card-content {
  24. padding: 0 20px;
  25. }
  26. .mui-input-row {
  27. height: 75px;
  28. }
  29. #phone,
  30. #code {
  31. height: 50%;
  32. }
  33. label,
  34. input,textarea {
  35. float: none !important;
  36. }
  37. .mui-input-row input,textarea {
  38. padding: 0 15px !important;
  39. }
  40. .mui-input-row label , .reaction{
  41. display: block;
  42. font-weight: 600;
  43. padding: 13px 15px 8px ;
  44. }
  45. .mui-radio{
  46. display: inline-block;
  47. }
  48. .line {
  49. display: inline-block;
  50. border-left: 1px solid #1ba3c9;
  51. padding-left: 10px;
  52. height: 25px;
  53. position: absolute;
  54. right: 10px;
  55. color: #1ba3c9;
  56. font-size: 16px;
  57. font-weight: 600;
  58. }
  59. .btns{
  60. width: 90%;
  61. margin: 20px auto ;
  62. text-align: center;
  63. }
  64. .btn {
  65. /* width: 90%; */
  66. background-color: #1ba3c9;
  67. outline: none;
  68. border: none;
  69. padding: 5px 45px;
  70. /* display: block; */
  71. border-radius: 10px;
  72. font-size: 16px;
  73. color: #fff;
  74. }
  75. .titleW{
  76. padding: 5px 0px;
  77. margin-bottom: 5px;
  78. }
  79. .mui-icon-info-filled{
  80. color: rgb(253,193,30);
  81. }
  82. .warning{
  83. font-size: 15px;
  84. margin-bottom: 5px;
  85. font-weight: 600;
  86. }
  87. .mui-radio input[type=radio]:before {
  88. font-size: 20px;
  89. vertical-align: middle;
  90. }
  91. .mui-checkbox input[type=checkbox], .mui-radio input[type=radio]{
  92. top: 0 !important;
  93. }
  94. .mui-checkbox.mui-left label, .mui-radio.mui-left label {
  95. padding: 0 0 0 45px;
  96. vertical-align: middle;
  97. }
  98. .content{
  99. height: 125px;
  100. border-bottom: none;
  101. }
  102. .mui-input-row label~textarea{
  103. float: none;
  104. width: 100% !important;
  105. height: 70%;
  106. background-color: rgb(246,246,246);
  107. }
  108. .ztext{
  109. padding: 10px 15px !important;
  110. }
  111. .feedback{
  112. height: 125px;
  113. border: none;
  114. }
  115. .space{
  116. background-color: rgb(246,246,246);
  117. }
  118. .btnLeft{
  119. background-color: rgb(254,150,3);
  120. margin-right: 40px;
  121. }
  122. .btnRight{
  123. background-color: #1ba3c9;
  124. }
  125. .result{
  126. position: absolute;
  127. right: -4px;
  128. top: 18px;
  129. display: inline-block;
  130. width: 85px;
  131. padding: 5px 0;
  132. color: #fff;
  133. text-align: center;
  134. border-radius: 20px 0 0 20px;
  135. background-color: rgb(17,211,169);
  136. }
  137. i{
  138. color: #FF0000;
  139. }
  140. </style>
  141. </head>
  142. <body>
  143. <header class="mui-bar mui-bar-nav">
  144. <h1 class="mui-title">添加工单</h1>
  145. </header>
  146. <div class="mui-content">
  147. <div class="mui-card">
  148. <div class="mui-card-content">
  149. <div class="titleW">
  150. <span class="mui-icon mui-icon-info-filled"></span>
  151. <span class="warning">请填写真实信息,带 “ <i>*</i> ” 为必填项</span>
  152. <span class="result">查看结果</span>
  153. </div>
  154. <div style="margin: 10px 0;">
  155. <label class="label reaction" style="display: block;"><i>*</i> 反应类别:</label>
  156. <div class="mui-radio mui-left radio_box">
  157. <input type="radio" type="radio" name="" value="咨询" />
  158. <label>咨询</label>
  159. </div>
  160. <div class="mui-radio mui-left radio_box">
  161. <input type="radio" type="radio" name="" value="求助" />
  162. <label>求助</label>
  163. </div>
  164. <div class="mui-radio mui-left radio_box">
  165. <input type="radio" type="radio" name="" value="投诉" />
  166. <label>投诉</label>
  167. </div>
  168. <div class="mui-radio mui-left radio_box">
  169. <input type="radio" type="radio" name="" value="建议" />
  170. <label>建议</label>
  171. </div>
  172. <div class="mui-radio mui-left radio_box">
  173. <input type="radio" type="radio" name="" value="表扬" />
  174. <label>表扬</label>
  175. </div>
  176. <div class="mui-radio mui-left radio_box">
  177. <input type="radio" type="radio" name="" value="其他" />
  178. <label>其他</label>
  179. </div>
  180. </div>
  181. <div class="mui-input-row phone">
  182. <label>姓名</label>
  183. <input type="text" placeholder="请输入姓名" id="phone">
  184. </div>
  185. <div class="mui-input-row phone">
  186. <label><i>*</i> 手机号</label>
  187. <input type="text" placeholder="请输入手机号" id="phone">
  188. </div>
  189. <div class="mui-input-row">
  190. <label><i>*</i> 验证码</label>
  191. <input type="text" class="mui-input-clear" placeholder="请输入验证码" id="code">
  192. <span class="line">获取验证码</span>
  193. </div>
  194. <div class="mui-input-row phone">
  195. <label><i>*</i> 反映标题</label>
  196. <input type="text" placeholder="请输入标题" id="phone">
  197. </div>
  198. <div class="mui-input-row content">
  199. <label><i>*</i> 反映内容</label>
  200. <textarea class="ztext" name="" id="textarea" placeholder="请输入您的反应内容..."></textarea>
  201. </div>
  202. <li class="mui-input-row" id="showCityPicker3">
  203. <label><i>*</i> 事发区域</label>
  204. <input type="text" id='cityResult3' data-index="" class="ui-alert type_con" placeholder="请选择市县" readonly="readonly" />
  205. <a href="javascript:void(0)"><span class="type_down mui-icon mui-icon-arrowdown mui-pull-right"></span></a>
  206. </li>
  207. <li class="mui-input-row" id="showCityPicker2">
  208. <label>乡镇</label>
  209. <input type="text" id='cityResult2' data-index="" class="ui-alert type_con" placeholder="请选择市县" readonly="readonly" />
  210. <a href="javascript:void(0)"><span class="type_down mui-icon mui-icon-arrowdown mui-pull-right"></span></a>
  211. </li>
  212. <div class="mui-input-row content">
  213. <label>详细地址</label>
  214. <textarea class="ztext" name="" id="textarea" placeholder="请输入详细地址..."></textarea>
  215. </div>
  216. <div class="mui-input-row feedback">
  217. <label>添加附件</label>
  218. <div id='image-list' class="row image-list"></div>
  219. </div>
  220. <div style="margin: 10px 0;border-bottom: 1px solid #c9c9c9;padding-bottom: 20px;">
  221. <div style="font-weight: 600; padding: 13px 15px 8px;">您是否同意把您的姓名告知承办单位,以便承办单位调查审核?</div>
  222. <div class="mui-radio mui-left radio_box">
  223. <input type="radio" type="radio" name="" value="是" />
  224. <label>是</label>
  225. </div>
  226. <div class="mui-radio mui-left radio_box">
  227. <input type="radio" type="radio" name="" value="否" />
  228. <label>否</label>
  229. </div>
  230. </div>
  231. <div class="btns">
  232. <button type="button" class="btn btnLeft">重置</button>
  233. <button type="button" class="btn btnRight">提交</button>
  234. </div>
  235. </div>
  236. </div>
  237. </div>
  238. <script src="../js/jquery.min.js"></script>
  239. <script src="../js/mui.min.js"></script>
  240. <script src="../js/mui.picker.js"></script>
  241. <script src="../js/mui.poppicker.js"></script>
  242. <script src="../layui/layui.js"></script>
  243. <script src="../js/zepto.js"></script>
  244. <script src="../js/feedback-page.js"></script>
  245. <script src="../Script/Common/huayi.config.js"></script>
  246. <script src="../Script/Common/huayi.http.js"></script>
  247. <script>
  248. var openid = "obwtK6JT-bTCeSbtqu4lkw4lIz0o";
  249. var areaList = []
  250. // var openid = helper.cookies.get("openid");
  251. if (!openid) {
  252. window.location.replace("../html/error.html");
  253. }
  254. (function ($, doc) {
  255. $.init();
  256. $.ready(function () {
  257. var cityPicker3 = new $.PopPicker({
  258. layer: 1
  259. });
  260. cityPicker3.setData(areaList);
  261. var showCityPickerButton = doc.getElementById('showCityPicker3');
  262. var cityResult3 = doc.getElementById('cityResult3');
  263. showCityPickerButton.addEventListener('tap', function (event) {
  264. // if (areaList.length > 0) {
  265. cityPicker3.show(function (items) {
  266. cityResult3.value = (items[0].text ? items[0].text : "");
  267. cityResult3.setAttribute("data-index", items[0].value);
  268. //返回 false 可以阻止选择框的关闭
  269. //return false;
  270. getArea(2, items[0].value);
  271. if (townList.length == 0) {
  272. // doc.getElementById('town').value = "暂无数据";
  273. } else {
  274. // doc.getElementById('town').value = "";
  275. // doc.getElementById('town').setAttribute("placeholder", "请选择街道");
  276. doc.getElementById('village').value = "";
  277. doc.getElementById('village').setAttribute("placeholder",
  278. "请选择村庄");
  279. }
  280. });
  281. // }
  282. }, false);
  283. //街道
  284. townPicker = new $.PopPicker({
  285. layer: 1
  286. });
  287. })
  288. })(mui, document);
  289. </script>
  290. </body>
  291. </html>