index.html 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. {extend name='admin@main'}
  2. {block name="content"}
  3. <div class="think-box-shadow">
  4. {include file='delivery/index_search'}
  5. <table class="layui-table margin-top-10" lay-skin="line">
  6. {notempty name='list'}
  7. <thead>
  8. <tr>
  9. <th class='text-left nowrap' >用户信息</th>
  10. <th class='text-left nowrap' >收货人</th>
  11. <th class='text-left nowrap' >电话</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='text-left'>
  23. <img data-tips-image style="width:50px;height:50px" src="{$vo.headimg|default=''}" class="margin-right-5 text-top">
  24. <div class="inline-block">
  25. 记录ID:{$vo.id}<br>
  26. 用户ID:{$vo.user_id|default='--'}<br>
  27. 用户昵称:{$vo.user_name|default='--'}
  28. </div>
  29. </td>
  30. <td class='text-left nowrap'>{$vo.name}</td>
  31. <td class='text-left nowrap'>{$vo.phone}</td>
  32. <td class='text-left nowrap'>{$vo.pro_name}--{$vo.city_name}--{$vo.county_name}</td>
  33. <td class='text-left nowrap'>{$vo.street_name}-{$vo.detail}</td>
  34. <td class='text-left nowrap'>{$vo.create_at}</td>
  35. <td class='text-left nowrap'>
  36. <a class="layui-btn layui-btn-sm layui-btn-danger" onclick="btn_confirm('删除','del','{$vo.id}');">删 除</a>
  37. </td>
  38. </tr>
  39. {/foreach}
  40. </tbody>
  41. </table>
  42. {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
  43. </div>
  44. <script>
  45. function btn_confirm(msg,fun,id) {
  46. layer.confirm('请确定是否'+msg, {btn: ['确定', '取消'], title: "提示"}, function () {
  47. var url = "/user/delivery/"+fun;
  48. layer.closeAll();
  49. $.ajax({
  50. type: "post",
  51. url: url,
  52. data: {id:id},
  53. dataType: "json",
  54. async: false,
  55. success: function (data) {
  56. layer.msg(data.info);
  57. setTimeout(function () {
  58. window.location.reload();
  59. },1000)
  60. }
  61. });
  62. });
  63. }
  64. </script>
  65. {/block}