index.html 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {extend name='admin@main'}
  2. {block name="content"}
  3. <div class="think-box-shadow">
  4. {include file='consult/index_search'}
  5. <table class="layui-table margin-top-10" lay-skin="line">
  6. {notempty name='list'}
  7. <thead>
  8. <tr>
  9. <th class='list-table-check-td think-checkbox'>
  10. <input data-auto-none data-check-target='.list-check-box' type='checkbox'>
  11. </th>
  12. <th class="text-left nowrap">会员信息</th>
  13. <th class='text-left nowrap'>问题内容</th>
  14. <th class='text-left nowrap'>时间</th>
  15. <th class='text-left nowrap'>操作</th>
  16. </tr>
  17. </thead>
  18. {/notempty}
  19. <tbody>
  20. {foreach $list as $key=>$vo}
  21. <tr>
  22. <td class='list-table-check-td think-checkbox'><input class="list-check-box" value='{$vo.id}' type='checkbox'></td>
  23. <td class="text-left nowrap relative">
  24. {notempty name='vo.member.headimg'}
  25. <img data-tips-image style="width:40px;height:40px" src="{$vo.member.headimg|default=''}" class="margin-right-5 text-top">
  26. {/notempty}
  27. <div class="inline-block">
  28. 姓名:{$vo.member.name|default='--'}<br>
  29. 手机号:{$vo.member.phone|default='--'}<br>
  30. </div>
  31. </td>
  32. <td class='text-left nowrap'>
  33. {$vo.content}
  34. </td>
  35. <td class='text-left nowrap'>
  36. {$vo.create_time}
  37. </td>
  38. <td class="text-center nowrap">
  39. <a data-title="全部解答" class="layui-btn layui-btn-sm" data-open='{:url("store/consult_detail/index")}?consult_id={$vo.id}'>全部解答</a>
  40. {if $engineer_id > 0 && $vo.is_answer == 0}
  41. <a data-title="立即解答" class="layui-btn layui-btn-sm layui-bg-orange" data-modal='{:url("answer")}?id={$vo.id}'>立即解答</a>
  42. {/if}
  43. <a class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定要删除该咨询吗?" data-action="{:url('remove')}" data-value="id#{$vo.id}">删 除</a>
  44. </td>
  45. </tr>
  46. {/foreach}
  47. </tbody>
  48. </table>
  49. {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
  50. </div>
  51. {/block}