index.html 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. {layout name="passport:layout" /}
  2. <div id="actionbar">
  3. <div class="fn-right">
  4. <form id="form" action="{:url('system/passport.user/index')}" method="get">
  5. <input type="hidden" name="types" value="{$types}" />
  6. <input placeholder="请输入手机号或用户昵称" class="input w200" type="text" name="keyword" value="{$keyword}" /><input type="submit" value="搜索" class="button button-blue" />
  7. </form>
  8. </div>
  9. <div class="fn-left">
  10. <a href="{:url('system/passport.user/index',['types'=>0])}" class="button{if $types == 0} button-green{/if}">正常</a>
  11. <a href="{:url('system/passport.user/index',['types'=>1])}" class="button{if $types == 1} button-green{/if}">锁定</a>
  12. </div>
  13. </div>
  14. <table class="table table-border">
  15. <thead>
  16. <tr>
  17. <th class="w160 fn-tac">操作</th>
  18. <th class="w80">邀请码</th>
  19. <th class="w100">手机号</th>
  20. <th class="w80 fn-tac">微信昵称</th>
  21. <th></th>
  22. <th class="w140">登录IP</th>
  23. <th class="w140">登录时间</th>
  24. <th class="w140">创建时间</th>
  25. <th class="w70 fn-tac">状态</th>
  26. {if $user->parent_id == 0}<th class="w220 fn-tac">管理</th>{/if}
  27. </tr>
  28. </thead>
  29. <tbody>
  30. {foreach $list as $vo}
  31. <tr>
  32. <td class="button-group">
  33. <a class="button button-green review" href="javascript:;" url="{:url('system/passport.user/pyramid',['id'=>$vo.id])}" title="伞下"><i class="iconfont icon-iconset0280"></i>伞下</a>
  34. <a class="button button-red review" href="javascript:;" url="{:url('system/passport.user/level',['id'=>$vo.id])}" title="溯源"><i class="iconfont icon-lianjie"></i>溯源</a>
  35. </td>
  36. <td>{$vo.invite_code}</td>
  37. <td>{$vo.phone_uid}</td>
  38. <td class="fn-tac"><img src="{$vo['face']}" class="w40" /></td>
  39. <td><a href="javascript:;" url="{:url('system/passport.user/review',['uid' => $vo.id])}" class="review">{$vo.nickname}</a></td>
  40. <td>{$vo.login_ip}</td>
  41. <td>{$vo->login_time|date='Y-m-d H:i'}</td>
  42. <td>{$vo->create_time|date='Y-m-d H:i'}</td>
  43. <td class="fn-tac li">{if $vo.is_lock}<span class="badge bg-red">锁定</span>{else}<span class="badge">正常</span>{/if}</td>
  44. {if $user->parent_id == 0}
  45. <td class="button-group">
  46. <a class="button" href="{:url('system/passport.user/edit',['id'=>$vo.id])}" title="编辑"><i class="iconfont icon-edit"></i>编辑</a>
  47. <a class="button isLock" url="{:url('system/passport.user/islock',['id'=>$vo.id])}" href="javascript:;" title="锁定/解锁">{if $vo.is_lock}<i class="iconfont icon-xiugaidenglumima"></i>解锁{else}<i class="iconfont icon-password_icon"></i>锁定{/if}</a>
  48. <a class="button isDelete" url="{:url('system/passport.user/delete',['id'=>$vo.id])}" href="javascript:;" title="作废"><i class="iconfont icon-reduce_icon"></i>作废</a>
  49. </td>
  50. {/if}
  51. </tr>
  52. {/foreach}
  53. </tbody>
  54. </table>
  55. <div class="page">{$list|raw}</div>
  56. <script type="text/javascript">
  57. Do('base', 'layer', function () {
  58. $('.isDel').isDel();
  59. $('.isLock').click(function () {
  60. var url = $(this).attr("url");
  61. parent.layer.confirm('确认要锁定当前用户?',{ icon: 3,title: '友情提示' }, function (index) {
  62. $.getJSON(url, function (data) {window.location.reload();});
  63. parent.layer.close(index);
  64. });
  65. })
  66. $('.isDelete').click(function () {
  67. var url = $(this).attr("url");
  68. parent.layer.confirm('作废后,当前用户禁止登录/启用,旧数据用户看不到,将以全新用户来认证.',{ icon: 3,title: '友情提示' }, function (index) {
  69. $.getJSON(url, function (data) {window.location.reload();});
  70. parent.layer.close(index);
  71. });
  72. })
  73. $('.review').win()
  74. })
  75. </script>