customer_detail.ftl 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="renderer" content="webkit|ie-comp|ie-stand">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  7. <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
  8. <meta http-equiv="Cache-Control" content="no-siteapp" />
  9. <#include "/base/add_base.ftl">
  10. <link href="${path}/common/static/h-ui/css/H-ui.min.css" rel="stylesheet" type="text/css" />
  11. <link href="${path}/common/static/h-ui.admin/css/H-ui.admin.css" rel="stylesheet" type="text/css" />
  12. <!--<link href="lib/icheck/icheck.css" rel="stylesheet" type="text/css" />-->
  13. <link href="${path}/common/lib/Hui-iconfont/1.0.8/iconfont.css" rel="stylesheet" type="text/css" />
  14. <!--<link href="lib/webuploader/0.1.5/webuploader.css" rel="stylesheet" type="text/css" />-->
  15. <title></title>
  16. <style>
  17. .my-btn-submit{padding: 10px 20px;width: 120px; background-color: #32a3d8;color: #fff;border: 1px solid #32a3d8;cursor:pointer;margin: 10px 10px 0 10px;}
  18. </style>
  19. </head>
  20. <body>
  21. <article class="cl pd-20">
  22. <form action="" method="post" class="form form-horizontal" id="form-article-add">
  23. <div class="row cl">
  24. <div class="formControls col-2 col-sm-2 text-r" style="margin-top: 10px;">
  25. <strong>客诉编号:</strong>
  26. </div>
  27. <div class="formControls col-8 col-sm-8">
  28. <input type="text" style="width: 400px;" class="input-text" placeholder="客诉编号" id="signclosedCustomerId" name="signclosedCustomerId">
  29. <button type="button" style="margin-top: 4px;" class="my-btn-submit" onclick="select();">查询</button>
  30. </div>
  31. </div>
  32. <div id="noCustomerDiv" style="display: none;margin-left: -110px;">
  33. <h3><strong style="color: #93da67">?没有搜索到客诉哦</strong></h3>
  34. </div>
  35. <div id="customerDiv" style="display: none;margin-left: -110px;">
  36. <div class="formControls col-2 col-sm-2 text-r">
  37. <strong></strong>
  38. </div>
  39. <table class="table table-border table-bg table-bordered" style="margin-top: 10px;width: 500px;">
  40. <thead>
  41. <tr>
  42. <th width="5" style="text-align: center">客诉标题</th>
  43. <td width="50" style="font-weight: normal;"><span id="txtDescribeTitle"></span></td>
  44. </tr>
  45. <tr>
  46. <th width="5" style="text-align: center">客诉回复</th>
  47. <td width="50" style="font-weight: normal;"><span id="txtDescribeContent"></span></td>
  48. </tr>
  49. <tr>
  50. <th width="5" style="text-align: center">客诉人姓名</th>
  51. <td width="50" style="font-weight: normal;"><span id="customerName"></span></td>
  52. </tr>
  53. <tr>
  54. <th width="5" style="text-align: center">客诉人手机号</th>
  55. <td width="50" style="font-weight: normal;"><span id="customerTel"></span></td>
  56. </tr>
  57. <tr>
  58. <th width="5" style="text-align: center">客诉时间</th>
  59. <td width="50" style="font-weight: normal;"><span id="customerCreateTime"></span></td>
  60. </tr>
  61. </thead>
  62. </table>
  63. </div>
  64. <#--<div class="row cl">
  65. <div class="formControls col-2 col-sm-2">
  66. </div>
  67. <div class="formControls col-10 col-sm-10">
  68. <img src="images/image-1.jpg" />
  69. </div>
  70. </div>-->
  71. </form>
  72. </div>
  73. </article>
  74. <#--<script type="text/javascript" src="${path}/common/lib/jquery/1.9.1/jquery.min.js"></script>
  75. <script type="text/javascript" src="${path}/common/lib/layer/2.4/layer.js"></script>
  76. <script type="text/javascript" src="${path}/common/static/h-ui/js/H-ui.js"></script>
  77. <script type="text/javascript" src="${path}/common/static/h-ui.admin/js/H-ui.admin.js"></script>-->
  78. <script type="text/javascript">
  79. function select() {
  80. var signclosedCustomerId = $("#signclosedCustomerId").val();
  81. $.ajax({
  82. cache: true,
  83. type: "POST",
  84. data: {"customerId":signclosedCustomerId},
  85. url: "${path}/admin/customer/get_describe_info",
  86. async: false,
  87. success: function(data){
  88. if (data.returnCode == 200) {
  89. var describe = data.returnMsg.describe;
  90. var customer = data.returnMsg.customerInfo;
  91. $('#customerCreateTime').html(formatDate(describe.customerCreateTime,"yyyy年MM月dd日"));
  92. $('#txtDescribeTitle').html(describe.describeTitle);
  93. $('#txtDescribeContent').html(describe.describeContent);
  94. $('#customerName').html(customer.customerName);
  95. $('#customerTel').html(customer.customerTel);
  96. $("#noCustomerDiv").hide();
  97. $("#customerDiv").show();
  98. $("#associatedId").show();
  99. }else {
  100. $("#customerDiv").hide();
  101. $("#associatedId").hide();
  102. $("#noCustomerDiv").show();
  103. }
  104. },
  105. error: function(XmlHttpRequest, textStatus, errorThrown){
  106. }
  107. })
  108. }
  109. </script>
  110. </body>
  111. </html>