shoucang.html 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. {extend name='admin@main'}
  2. {block name="content"}
  3. <div class="think-box-shadow">
  4. <table class="layui-table margin-top-10" lay-skin="line">
  5. {notempty name='list'}
  6. <thead>
  7. <tr>
  8. <th class='text-left nowrap'>订单编号</th>
  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'>收藏hash</th>
  14. <th class="text-left nowrap">发放时间</th>
  15. <th class="text-left nowrap">可转增时间</th>
  16. <th class="text-left nowrap">类型</th>
  17. </tr>
  18. </thead>
  19. {/notempty}
  20. <tbody>
  21. {foreach $list as $key=>$vo}
  22. <tr>
  23. <td class='text-left nowrap'>{$vo.order_no|default=''}</td>
  24. <td class='text-left nowrap'>{$vo.pro_info.name|default=''}</td>
  25. <td class='text-left nowrap'>{$vo.pro_info.price|default=''}</td>
  26. <td class='text-left nowrap'>{$vo.tag|default=''}</td>
  27. <td class='text-left nowrap'>{$vo.scz|default=''}</td>
  28. <td class='text-left nowrap'>{$vo.collectors_hash|default='发放中'}</td>
  29. <td class='text-left nowrap'>{$vo.create_at|default=''}</td>
  30. <td class='text-left nowrap'>{$vo.exam_time|default=''}</td>
  31. <td class='text-left nowrap'>
  32. <!-- {if $vo.order_id eq 0}-->
  33. <!-- 后台赠送-->
  34. <!-- {/else}-->
  35. <!-- {eq name='vo.status' value='1'}正常购买{/eq}-->
  36. <!-- {eq name='vo.status' value='3'}获赠{/eq}-->
  37. <!-- {/if}-->
  38. {eq name='vo.order_id' value='0'}后台赠送{else/}
  39. {eq name='vo.status' value='1'}正常购买{/eq}
  40. {eq name='vo.status' value='3'}获赠{/eq}
  41. {/eq}
  42. </td>
  43. </tr>
  44. {/foreach}
  45. </tbody>
  46. </table>
  47. {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
  48. </div>
  49. <script>
  50. function btn_confirm(msg,fun,id) {
  51. layer.confirm('请确定是否'+msg, {btn: ['确定', '取消'], title: "提示"}, function () {
  52. var url = "/store/goods/"+fun;
  53. layer.closeAll();
  54. $.ajax({
  55. type: "post",
  56. url: url,
  57. data: {id:id},
  58. dataType: "json",
  59. async: false,
  60. success: function (data) {
  61. layer.msg(data.info);
  62. setTimeout(function () {
  63. window.location.reload();
  64. },1000)
  65. }
  66. });
  67. });
  68. }
  69. </script>
  70. {/block}