index.html 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. {extend name='main'}
  2. {block name="button"}
  3. <!--{if auth("add")}-->
  4. <!--<button data-modal='{:url("add")}' data-title="添加用户" class='layui-btn layui-btn-sm layui-btn-primary'>添加用户</button>-->
  5. <!--{/if}-->
  6. <!--{if auth("remove")}-->
  7. <!--<button data-action='{:url("remove")}' data-rule="id#{key}" data-csrf="{:systoken('remove')}" data-confirm="确定要删除这些用户吗?" class='layui-btn layui-btn-sm layui-btn-primary'>删除用户</button>-->
  8. <!--{/if}-->
  9. {/block}
  10. {block name="content"}
  11. <div class="think-box-shadow">
  12. {include file='uuser/index_search'}
  13. <table class="layui-table margin-top-10" lay-skin="line">
  14. {notempty name='list'}
  15. <thead>
  16. <tr>
  17. <th class='list-table-check-td think-checkbox'>
  18. <label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
  19. </th>
  20. <th class='text-left nowrap'>头像</th>
  21. <th class='text-left nowrap'>姓名</th>
  22. <th class='text-left nowrap'>联系手机</th>
  23. <th class='text-left nowrap'>身份</th>
  24. <th class='text-left nowrap'>积分</th>
  25. {if $level==0}
  26. <th class='text-left nowrap'>住址</th>
  27. {/if}
  28. <th class='text-left nowrap'>备注</th>
  29. <th class='text-left nowrap'>创建时间</th>
  30. <!-- <th class='text-left nowrap'>状态</th>-->
  31. <th class='text-left nowrap'></th>
  32. </tr>
  33. </thead>
  34. {/notempty}
  35. <tbody>
  36. {foreach $list as $key=>$vo}
  37. <tr data-dbclick>
  38. <td class='list-table-check-td think-checkbox'>
  39. <label><input class="list-check-box" value='{$vo.id}' type='checkbox'></label>
  40. </td>
  41. <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>
  42. <td class='text-left nowrap'>{$vo.username|default='-'}</td>
  43. <td class='text-left nowrap'>{$vo.mobile|default=0}</td>
  44. <td class='text-left nowrap'>{$vo.level}</td>
  45. <td class='text-left nowrap'>{$vo.integral}</td>
  46. {if $level==0}
  47. <td class='text-left nowrap'>{$vo.address}</td>
  48. {/if}
  49. <td width="200" style="word-break:break-all;" >{$vo.content|raw}</td>
  50. <td class='text-left nowrap'>{$vo.create_time}</td>
  51. <!-- <td class='text-left nowrap'>{eq name='vo.is_deleted' value='2'}<span class="color-red">已禁用</span>{else}<span class="color-green">使用中</span>{/eq}</td>-->
  52. <td class='text-left nowrap'>
  53. {eq name='vo.levels' value='1'}
  54. <a class="layui-btn layui-btn-sm" data-title="修改积分" data-modal='{:url("edit")}?id={$vo.id}&type=2'>修改积分</a>
  55. {/eq}
  56. {eq name='vo.levels' value='2'}
  57. <a class="layui-btn layui-btn-sm" data-title="修改积分" data-modal='{:url("edit")}?id={$vo.id}&type=2'>修改积分</a>
  58. {/eq}
  59. {eq name='vo.levels' value='1'}
  60. <a class="layui-btn layui-btn-normal layui-btn-sm" data-open='{:url("userorder/index")}?id={$vo.id}'>服务订单</a>
  61. {/eq}
  62. {eq name='vo.levels' value='2'}
  63. <a class="layui-btn layui-btn-normal layui-btn-sm" data-open='{:url("userorder/index")}?id={$vo.id}'>服务订单</a>
  64. {/eq}
  65. <!-- {if auth("pass")}-->
  66. <!-- <a class="layui-btn layui-btn-normal layui-btn-sm" data-title="施工照片" data-modal='{:url("pass")}?id={$vo.id}'>施工照片</a>-->
  67. <!-- {/if}-->
  68. {eq name='vo.levels' value='0'}
  69. <a class="layui-btn layui-btn-normal layui-btn-sm" data-open='{:url("userimage/index")}?id={$vo.id}'>施工照片管理</a>
  70. {/eq}
  71. {eq name='vo.levels' value='0'}
  72. <a class="layui-btn layui-btn-normal layui-btn-sm" data-open='{:url("userapp/index")}?id={$vo.id}'>线上预约</a>
  73. {/eq}
  74. {eq name='vo.levels' value='0'}
  75. <a class="layui-btn layui-btn-normal layui-btn-sm" data-open='{:url("userfeedback/index")}?id={$vo.id}'>跟进反馈</a>
  76. {/eq}
  77. {eq name='vo.levels' value='0'}
  78. <a class="layui-btn layui-btn-normal layui-btn-sm" data-open='{:url("userweixiu/index")}?id={$vo.id}&type=1'>维修</a>
  79. {/eq}
  80. {eq name='vo.levels' value='0'}
  81. <a class="layui-btn layui-btn-normal layui-btn-sm" data-open='{:url("userweixiu/index")}?id={$vo.id}&type=2'>报备</a>
  82. {/eq}
  83. <!-- {eq name='vo.levels' value='0'}-->
  84. <!-- <a data-dbclick class="layui-btn layui-btn-normal layui-btn-sm" data-open='{:url("userorder/index")}?id={$vo.id}'>服务订单</a>-->
  85. <!-- {/eq}-->
  86. <!-- <a class="layui-btn layui-btn-normal layui-btn-sm" data-title="施工照片管理" data-modal='{:url("userimage/index")}?id={$vo.id}'>施工照片管理</a>-->
  87. <!-- {if auth("edit")}-->
  88. <!-- <a data-dbclick class="layui-btn layui-btn-sm" data-title="编辑用户" data-modal='{:url("edit")}?id={$vo.id}&type=1'>增加集分</a>-->
  89. <!-- {/if}-->
  90. <!-- {if $vo.is_deleted eq 1 and auth("forbid")}-->
  91. <!-- <a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('forbid')}" data-value="id#{$vo.id};is_delete#0" data-csrf="{:systoken('forbid')}">禁 用</a>-->
  92. <!-- {elseif $vo.is_deleted eq 0 and auth("resume")}-->
  93. <!-- <a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('resume')}" data-value="id#{$vo.id};is_delete#1" data-csrf="{:systoken('resume')}">启 用</a>-->
  94. <!-- {/if}-->
  95. <a class="layui-btn layui-btn-sm" data-title="修改信息" data-modal='{:url("edits")}?id={$vo.id}&type=2'>修改信息</a>
  96. <a data-dbclick class="layui-btn layui-btn-sm" data-title="备注" data-modal='{:url("beizhu")}?id={$vo.id}&type=2'>备注</a>
  97. {if auth("remove")}
  98. <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>
  99. {/if}
  100. </td>
  101. </tr>
  102. {/foreach}
  103. </tbody>
  104. </table>
  105. {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
  106. </div>
  107. {/block}