商丘市柘城县——前端

Work-JieAn.html 4.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. <!doctype html>
  2. <html lang="en" class="feedback">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
  6. <title>结案</title>
  7. <link rel="stylesheet" type="text/css" href="../css/mui.min.css" />
  8. <link rel="stylesheet" type="text/css" href="../css/feedback.css" />
  9. <link rel="stylesheet" type="text/css" href="../css/mui.picker.min.css" />
  10. <style>
  11. p {
  12. font-size: 16px;
  13. color: #fe6604;
  14. }
  15. .mui-bar-nav {
  16. background-color: #00a1cb;
  17. color: #fff!important;
  18. }
  19. .mui-bar-popover {
  20. width: 30%;
  21. }
  22. .mui-popover.mui-bar-popover .mui-table-view {
  23. width: 100%;
  24. }
  25. .mui-table-view .mui-table-view-cell>a:not(.mui-btn) {
  26. text-align: center;
  27. }
  28. .mui-table-view-cell {
  29. padding: 1px 15px!important;
  30. }
  31. .san {
  32. font-size: 14px;
  33. margin-right: 5px
  34. }
  35. .nav_a {
  36. border-right: 1px solid #ccc;
  37. }
  38. .radio_box {
  39. display: inline-block;
  40. }
  41. .mui-radio input[type=radio]:before {
  42. font-size: 20px;
  43. vertical-align: middle;
  44. }
  45. .mui-radio.mui-left input[type=radio] {
  46. line-height: 24px!important;
  47. }
  48. .mui-radio.mui-left label {
  49. padding-right: 1px!important;
  50. padding-left: 51px!important;
  51. }
  52. .ztext {
  53. width: 100%;
  54. margin: 0;
  55. border: 0;
  56. }
  57. .action {
  58. padding: 5px 15px;
  59. }
  60. .type_down {
  61. float: right!important;
  62. display: inline-block!important;
  63. vertical-align: middle!important;
  64. line-height: 42px;
  65. }
  66. .type_con {
  67. width: 55%!important;
  68. float: left!important;
  69. vertical-align: middle!important;
  70. display: inline-block!important;
  71. padding: 10px 0!important;
  72. }
  73. .label {
  74. width: 30%!important;
  75. padding: 11px 0px!important;
  76. }
  77. .get_yzm {
  78. padding: 5px!important;
  79. width: auto!important;
  80. }
  81. .yzm_con {
  82. float: left!important;
  83. width: 40%!important;
  84. }
  85. .mui-bar-nav {
  86. background-color: #00a1cb;
  87. }
  88. .mui-input-row label {
  89. text-align: -webkit-right;
  90. }
  91. .mui-btn-block {
  92. padding: 10px;
  93. width: 100%;
  94. }
  95. .labels {
  96. color: #fe6604;
  97. }
  98. </style>
  99. </head>
  100. <body>
  101. <header class="mui-bar mui-bar-nav" style="">
  102. <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" style="color: #fff;"></a>
  103. <h1 class="mui-title" style="color: #fff;">结案</h1>
  104. </header>
  105. <div class="mui-content">
  106. <ul class="mui-table-view">
  107. <li class="mui-table-view-cell">
  108. <div class="mui-input-row">
  109. <label class="label labels">满意度:</label>
  110. <div class="mui-input-row mui-radio mui-left radio_box">
  111. <label>不满意</label>
  112. <input type="radio" type="radio" name="secret" value="0" />
  113. </div>
  114. <div class="mui-input-row mui-radio mui-left radio_box">
  115. <label>满意</label>
  116. <input type="radio" type="radio" name="secret" checked="checked" value="1" />
  117. </div>
  118. </div>
  119. </li>
  120. <li class="mui-table-view-cell">
  121. <div class="mui-input-row">
  122. <label class="label labels">结案意见:</label>
  123. <textarea class="ztext content" name="" id="finalopinion" rows="3" cols="" placeholder="请详细描述您的问题和建议..."></textarea>
  124. </div>
  125. </li>
  126. </ul>
  127. <div class="" style="padding: 10px;">
  128. <br />
  129. <button id="submit" type="button" class="mui-btn mui-btn-block mui-btn-primary submit">保存</button>
  130. </div>
  131. </div>
  132. <script src="../js/huayi.config.js"></script>
  133. <script src="../js/zepto.js"></script>
  134. <script src="../js/mui.min.js"></script>
  135. <script src="../js/mui.picker.min.js"></script>
  136. <script type="text/javascript">
  137. mui.init();
  138. mui.plusReady(function() {
  139. var wv = plus.webview.currentWebview();
  140. var vText = wv.name;
  141. var token = wv.token; 
  142. document.getElementById("submit").addEventListener('tap', function() {
  143. if(!$("#finalopinion").val()) {
  144. plus.nativeUI.toast('输入结案意见');
  145. } else {
  146. mui.ajax(huayi.config.callcenter_url + 'WorkOrder/FinishWorkOrder', {
  147. data: {
  148. workorderid: vText,
  149. finalopinion: $("#finalopinion").val(),
  150. result: $("#result").val(), //处理结果
  151. issatisfie: $('input[name="secret"]:checked').val(),
  152. token: token
  153. },
  154. dataType: 'json', //服务器返回json格式数据
  155. type: 'post', //HTTP请求类型
  156. timeout: 10000, //超时时间设置为10秒;
  157. success: function(data) {
  158. if(data.state == "success") {
  159. plus.nativeUI.toast('结案成功');
  160. $("#finalopinion").val('');
  161. $("#result").val('');
  162. var wobj = plus.webview.getWebviewById("Work-listDCL");
  163. wobj.reload(true);
  164. } else {
  165. mui.alert(data.message);
  166. }
  167. },
  168. error: function(xhr, type, errorThrown) {
  169. plus.nativeUI.toast('失败');
  170. }
  171. });
  172. }
  173. })
  174. })
  175. </script>
  176. </body>
  177. </html>