12345市长热线标准版-前端

XGHF.html 2.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <script src="../Script/Common/huayi.load.js"></script>
  6. <script src="../Script/Common/huayi.config.js"></script>
  7. <link href="../css/layer/need/layer.css" />
  8. <link rel="stylesheet" href="../css/init.css" />
  9. <title>工单回访</title>
  10. </head>
  11. <body>
  12. <div class="Common">
  13. <table >
  14. <tr>
  15. <th class="Importent">
  16. 回访人:
  17. <td><input type="text" id="visituser"/></td>
  18. </th>
  19. <th>
  20. 回访方式:
  21. <td>
  22. <select class="select_" id="type">
  23. <option value="0">电话</option>
  24. <option value="1">微信</option>
  25. </select>
  26. </td>
  27. </th>
  28. </tr>
  29. <tr>
  30. <th class="Importent">回访结果:</th>
  31. <td>
  32. <select class="select_" id='issatisfie'>
  33. <option value="0">不满意</option>
  34. <option value="1">满意</option>
  35. </select>
  36. </td>
  37. </tr>
  38. <tr>
  39. <th class="Importent">回访内容:</th>
  40. <td colspan="7"><textarea data-adaptheight id="result" name="" rows="" cols=""></textarea></td>
  41. </tr>
  42. </table>
  43. <div class="btn_box">
  44. <button class="btns BC">保存</button>
  45. </div>
  46. </div>
  47. <script src="../js/adjustHeight.js"></script>
  48. <script>
  49. var wid = helper.request.queryString("wid");
  50. var visituser = unescape(decodeURI(helper.request.queryString("visituser")));
  51. var result = unescape(decodeURI(helper.request.queryString("result")));
  52. var type = helper.request.queryString("type");
  53. var issatisfie = helper.request.queryString("issatisfie");
  54. $(document).ready(function() {
  55. $("#visituser").val(visituser);
  56. $("#result").val(result);
  57. $("#type").val(type),
  58. $("#issatisfie").val(issatisfie);
  59. $('.BC').click(function() {
  60. JA();
  61. })
  62. });
  63. //回访
  64. function JA() {
  65. $.post(huayi.config.callcenter_url + 'WorkOrder/EditVisitInfoByAdmin', {
  66. id: wid,
  67. visituser:$("#visituser").val(),//回访人
  68. result:$("#result").val(),//回访内容
  69. type:$("#type").val(),
  70. issatisfie:$("#issatisfie").val(),
  71. token: $.cookie("token")
  72. }, function(result) {
  73. result = JSON.parse(result);
  74. if(result.state.toLowerCase() == "success") {
  75. var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
  76. console.log(index);
  77. parent.layer.close(index); //再执行关闭
  78. parent.layer.msg("操作成功");
  79. }
  80. })
  81. }
  82. </script>
  83. </body>
  84. </html>