index.html 4.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. {extend name='main'}
  2. {block name="button"}
  3. {/block}
  4. {block name="content"}
  5. <div class="think-box-shadow">
  6. {include file='wechat_user/index_search'}
  7. <table class="layui-table margin-top-10" lay-skin="line">
  8. {notempty name='list'}
  9. <thead>
  10. <tr>
  11. <th class='list-table-check-td think-checkbox'>
  12. <label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
  13. </th>
  14. <th class='text-left nowrap'>头像</th>
  15. <th class='text-left nowrap'>姓名</th>
  16. <th class='text-left nowrap'>联系手机</th>
  17. <th class='text-left nowrap'>身份</th>
  18. <th class='text-left nowrap'>分销积分</th>
  19. <th class='text-left nowrap'>创建时间</th>
  20. <!-- <th class='text-left nowrap'>状态</th>-->
  21. <th class='text-left nowrap'></th>
  22. </tr>
  23. </thead>
  24. {/notempty}
  25. <tbody>
  26. {foreach $list as $key=>$vo}
  27. <tr data-dbclick>
  28. <td class='list-table-check-td think-checkbox'>
  29. <label><input class="list-check-box" value='{$vo.id}' type='checkbox'></label>
  30. </td>
  31. <td class='text-left nowrap'> <img data-tips-image style="width:60px;height:60px" src="{$vo.avatar|default=''}" class="margin-right-5 text-top"></td>
  32. <td class='text-left nowrap'>{$vo.nickname|default='-'}</td>
  33. <td class='text-left nowrap'>{$vo.mobile|default=0}</td>
  34. <td class='text-left nowrap'>{$vo.level}</td>
  35. <td class='text-left nowrap'>{$vo.price}</td>
  36. <td class='text-left nowrap'>{$vo.create_time}</td>
  37. <td class='text-left nowrap'>
  38. {eq name='vo.levels' value='1'}
  39. <a class="layui-btn layui-btn-sm" data-title="修改积分" data-modal='{:url("edit")}?id={$vo.id}&type=2'>修改积分</a>
  40. {/eq}
  41. {eq name='vo.levels' value='2'}
  42. <a class="layui-btn layui-btn-sm" data-title="修改积分" data-modal='{:url("edit")}?id={$vo.id}&type=2'>修改积分</a>
  43. {/eq}
  44. {eq name='vo.levels' value='1'}
  45. <a class="layui-btn layui-btn-normal layui-btn-sm" data-open='{:url("userorder/index")}?id={$vo.id}'>服务订单</a>
  46. {/eq}
  47. {eq name='vo.levels' value='2'}
  48. <a class="layui-btn layui-btn-normal layui-btn-sm" data-open='{:url("userorder/index")}?id={$vo.id}'>服务订单</a>
  49. {/eq}
  50. <!-- {if auth("pass")}-->
  51. <!-- <a class="layui-btn layui-btn-normal layui-btn-sm" data-title="施工照片" data-modal='{:url("pass")}?id={$vo.id}'>施工照片</a>-->
  52. <!-- {/if}-->
  53. {eq name='vo.levels' value='0'}
  54. <a class="layui-btn layui-btn-normal layui-btn-sm" data-open='{:url("userimage/index")}?id={$vo.id}'>施工照片管理</a>
  55. {/eq}
  56. {eq name='vo.levels' value='0'}
  57. <a class="layui-btn layui-btn-normal layui-btn-sm" data-open='{:url("userapp/index")}?id={$vo.id}'>线上预约</a>
  58. {/eq}
  59. {eq name='vo.levels' value='0'}
  60. <a class="layui-btn layui-btn-normal layui-btn-sm" data-open='{:url("userfeedback/index")}?id={$vo.id}'>跟进反馈</a>
  61. {/eq}
  62. {eq name='vo.levels' value='0'}
  63. <a class="layui-btn layui-btn-normal layui-btn-sm" data-open='{:url("userweixiu/index")}?id={$vo.id}&type=1'>维修</a>
  64. {/eq}
  65. {eq name='vo.levels' value='0'}
  66. <a class="layui-btn layui-btn-normal layui-btn-sm" data-open='{:url("userweixiu/index")}?id={$vo.id}&type=2'>报备</a>
  67. {/eq}
  68. <a class="layui-btn layui-btn-sm" data-title="修改信息" data-modal='{:url("edits")}?id={$vo.id}&type=2'>修改信息</a>
  69. <a data-dbclick class="layui-btn layui-btn-sm" data-title="备注" data-modal='{:url("beizhu")}?id={$vo.id}&type=2'>备注</a>
  70. {if auth("remove")}
  71. <a class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定要删除该用户吗?" data-action="{:url('remove')}" data-value="id#{$vo.id}" data-csrf="{:systoken('remove')}">删 除</a>
  72. {/if}
  73. </td>
  74. </tr>
  75. {/foreach}
  76. </tbody>
  77. </table>
  78. {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
  79. </div>
  80. {/block}