feedback.html 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. {extend name="layout/content" /}
  2. {block name="header"}
  3. <title>渠道意见反馈管理</title>
  4. <link rel="stylesheet" href="__STATIC__/css/FuzzySearch.css?v={$Think.STATIC_VERSION}">
  5. <style>
  6. .clearfix:before,
  7. .clearfix:after {
  8. content: " ";
  9. display: table;
  10. }
  11. .clearfix:after {
  12. clear: both;
  13. }
  14. .clear{
  15. clear:both;
  16. height: 0;
  17. height: 0;
  18. overflow:hidden;
  19. }
  20. .over-flow{
  21. overflow: auto;
  22. zoom: 1;
  23. }
  24. </style>
  25. {/block}
  26. {block name="content"}
  27. <div class="x-body">
  28. <form class="layui-form" method="get" action="{:url('feedback')}">
  29. <div style="float: right;">
  30. <label class="">诉求编号:</label>
  31. <div class="layui-input-inline FuzzySearch_Container">
  32. <div>
  33. <input type="text" name="order_num" value="{:input('request.order_num', '')}" />
  34. </div>
  35. </div>
  36. <!-- 模糊搜索 -->
  37. <label class="">反馈标题:</label>
  38. <div class="layui-input-inline FuzzySearch_Container">
  39. <div>
  40. <input type="text" name="title" value="{:input('request.title', '')}" />
  41. </div>
  42. </div>
  43. <!-- 模糊搜索 -->
  44. <label class="">渠道名:</label>
  45. <div class="layui-input-inline FuzzySearch_Container">
  46. <div>
  47. <input type="hidden" id='J_channelid' name="channel_id" value="{:input('request.channel_id', '')}" />
  48. </div>
  49. </div>
  50. <label class="">状态:</label>
  51. <div class="layui-input-inline set_width">
  52. <select name="is_reply">
  53. <option value="">- 请选择状态 -</option>
  54. <option {if condition="input('is_reply') eq '0'" }selected="selected" {/if} value="0">未回复</option>
  55. <option {if condition="input('is_reply') eq '1'" }selected="selected" {/if} value="1">已回复</option>
  56. </select>
  57. </div>
  58. <div class="layui-inline">
  59. <label class="layui-form-label" style="width:90px;">诉求时间:</label>
  60. <input class="layui-input" placeholder="开始时间" name="start_time" id="J_start" value="{:input('request.start_time')}" autocomplete="off" style="width:130px;display:inline-block">
  61. <span>-</span>
  62. <input class="layui-input" placeholder="结束时间" name="end_time" id="J_end" value="{:input('request.end_time')}" autocomplete="off" style="width:130px;display:inline-block">
  63. </div>
  64. <div class="layui-inline" style="margin-left:10px;">
  65. <button class="layui-btn" lay-submit id="J_search_submit">搜索</button>
  66. <a class="layui-btn" href="{:url('feedback')}">清空</a>
  67. </div>
  68. </div>
  69. <div class="clear"></div>
  70. <table class="layui-table">
  71. <thead>
  72. <tr>
  73. <th>诉求编号</th>
  74. <th>反馈标题</th>
  75. <th>反馈渠道</th>
  76. <th>状态</th>
  77. <th>回复账号</th>
  78. <th>诉求时间</th>
  79. <th>回复时间</th>
  80. <th>操作</th>
  81. </tr>
  82. </thead>
  83. <tbody>
  84. {volist name="list" id="vo"}
  85. <tr>
  86. <td>{$vo.order_num}</td>
  87. <td>{$vo.title}</td>
  88. <td>
  89. {eq name="$vo.is_anonymous" value="1"}
  90. *****
  91. {else/}
  92. {$vo.channel_name}
  93. {/eq}
  94. </td>
  95. <td>
  96. {eq name="$vo.is_reply" value="1"}
  97. 已回复
  98. {else/}
  99. <span style="color: red">未回复</span>
  100. {/eq}
  101. </td>
  102. <td>{$vo.username}</td>
  103. <td>
  104. {$vo.create_time? date('Y-m-d H:i:s',$vo.create_time) : '' }
  105. </td>
  106. <td>
  107. {$vo.update_time? date('Y-m-d H:i:s',$vo.update_time) : '' }
  108. </td>
  109. <td>
  110. <a href="{:url('feedbackReply', array('id'=>$vo['id']))}" class="layui-btn {eq name='$vo.is_reply' value='0' } layui-btn-danger {/eq} "><i class="layui-icon">&#xe642;</i>{eq name='$vo.is_reply' value='1' } 编辑 {else/} 回复 {/eq}</a>
  111. </td>
  112. </tr>
  113. {/volist}
  114. {empty name="list"}
  115. <tr><td colspan="8">暂无数据</td></tr>
  116. {/empty}
  117. </tbody>
  118. </table>
  119. <div class="pager-container">
  120. <span>
  121. {$list->total()}条记录
  122. </span>
  123. {$page}
  124. <div class="layui-inline" style="margin-left:10px;width:80px;">
  125. <input type="text" style="height: 30px;" class="layui-input" placeholder="跳转至" name="page" onkeyup="value=value.replace(/^(0+)|[^\d]+/g,'')">
  126. </div>
  127. </div>
  128. </form>
  129. {/block}
  130. {block name="footer"}
  131. <script type="text/javascript" src="__STATIC__/js/FuzzySearch.js?v={$Think.STATIC_VERSION}"></script>
  132. <script>
  133. $("#J_channelid").FuzzySearch({
  134. inputID : 'J_channelid',
  135. title : '请输入渠道名称',
  136. searchBtn :'J_search_submit',
  137. ajaxUrl : '{:url("Pay/ajaxGetNoComplexChannel")}',
  138. });
  139. layui.use('laydate', function () {
  140. var laydate = layui.laydate;
  141. //执行一个laydate实例
  142. laydate.render({
  143. elem: '#J_start', //指定元素
  144. type: 'date'
  145. });
  146. //执行一个laydate实例
  147. laydate.render({
  148. elem: '#J_end', //指定元素
  149. type: 'date'
  150. });
  151. });
  152. </script>
  153. {/block}