index.html 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {extend name='admin@main'}
  2. {block name="content"}
  3. <div class="think-box-shadow">
  4. {include file='level_log/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-center nowrap">时间</th>
  14. </tr>
  15. </thead>
  16. {/notempty}
  17. <tbody>
  18. {foreach $list as $key=>$vo}
  19. <tr>
  20. <td class='list-table-check-td think-checkbox'>{notempty name='vo.headimg'}<img data-tips-image style="width:20px;height:20px;vertical-align:top" src="{$vo.headimg|default=''}" class="margin-right-5">{/notempty}</td>
  21. <td class='text-left nowrap'>{$vo.name|default='--'}</td>
  22. <td class='text-left nowrap'>{$vo.lev_name|default='--'}</td>
  23. <td class='text-left nowrap'>{$vo.desc|default='--'}</td>
  24. <td class='text-center nowrap'>{$vo.create_at}</td>
  25. </tr>
  26. {/foreach}
  27. </tbody>
  28. </table>
  29. {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
  30. </div>
  31. <script>
  32. function btn_confirm(msg,fun,id) {
  33. layer.confirm('请确定是否'+msg, {btn: ['确定', '取消'], title: "提示"}, function () {
  34. var url = "/store/integral/"+fun;
  35. layer.closeAll();
  36. $.ajax({
  37. type: "post",
  38. url: url,
  39. data: {id:id},
  40. dataType: "json",
  41. async: false,
  42. success: function (data) {
  43. layer.msg(data.info);
  44. setTimeout(function () {
  45. window.location.reload();
  46. },1000)
  47. }
  48. });
  49. });
  50. }
  51. </script>
  52. {/block}