index.html 2.1 KB

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