detail.html 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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'>hash</th>
  9. <th class="text-left nowrap">铸造时间</th>
  10. </tr>
  11. </thead>
  12. {/notempty}
  13. <tbody>
  14. {foreach $list as $key=>$vo}
  15. <tr>
  16. <td class='text-left nowrap'>{$vo.hash|default=''}</td>
  17. <td class='text-left nowrap'>{$vo.create_at}</td>
  18. </tr>
  19. {/foreach}
  20. </tbody>
  21. </table>
  22. {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
  23. </div>
  24. <script>
  25. function btn_confirm(msg,fun,id) {
  26. layer.confirm('请确定是否'+msg, {btn: ['确定', '取消'], title: "提示"}, function () {
  27. var url = "/store/goods/"+fun;
  28. layer.closeAll();
  29. $.ajax({
  30. type: "post",
  31. url: url,
  32. data: {id:id},
  33. dataType: "json",
  34. async: false,
  35. success: function (data) {
  36. layer.msg(data.info);
  37. setTimeout(function () {
  38. window.location.reload();
  39. },1000)
  40. }
  41. });
  42. });
  43. }
  44. </script>
  45. {/block}