123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- {layout name="passport:layout" /}
- <div id="actionbar">
- <div class="fn-right">
- <form id="form" action="{:url('system/passport.user/index')}" method="get">
- <input type="hidden" name="types" value="{$types}" />
- <input placeholder="请输入手机号或用户昵称" class="input w200" type="text" name="keyword" value="{$keyword}" /><input type="submit" value="搜索" class="button button-blue" />
- </form>
- </div>
- <div class="fn-left">
- <a href="{:url('system/passport.user/index',['types'=>0])}" class="button{if $types == 0} button-green{/if}">正常</a>
- <a href="{:url('system/passport.user/index',['types'=>1])}" class="button{if $types == 1} button-green{/if}">锁定</a>
- </div>
- </div>
- <table class="table table-border">
- <thead>
- <tr>
- <th class="w160 fn-tac">操作</th>
- <th class="w80">邀请码</th>
- <th class="w100">手机号</th>
- <th class="w80 fn-tac">微信昵称</th>
- <th></th>
- <th class="w140">登录IP</th>
- <th class="w140">登录时间</th>
- <th class="w140">创建时间</th>
- <th class="w70 fn-tac">状态</th>
- {if $user->parent_id == 0}<th class="w220 fn-tac">管理</th>{/if}
- </tr>
- </thead>
- <tbody>
- {foreach $list as $vo}
- <tr>
- <td class="button-group">
- <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>
- <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>
- </td>
- <td>{$vo.invite_code}</td>
- <td>{$vo.phone_uid}</td>
- <td class="fn-tac"><img src="{$vo['face']}" class="w40" /></td>
- <td><a href="javascript:;" url="{:url('system/passport.user/review',['uid' => $vo.id])}" class="review">{$vo.nickname}</a></td>
- <td>{$vo.login_ip}</td>
- <td>{$vo->login_time|date='Y-m-d H:i'}</td>
- <td>{$vo->create_time|date='Y-m-d H:i'}</td>
- <td class="fn-tac li">{if $vo.is_lock}<span class="badge bg-red">锁定</span>{else}<span class="badge">正常</span>{/if}</td>
- {if $user->parent_id == 0}
- <td class="button-group">
- <a class="button" href="{:url('system/passport.user/edit',['id'=>$vo.id])}" title="编辑"><i class="iconfont icon-edit"></i>编辑</a>
- <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>
- <a class="button isDelete" url="{:url('system/passport.user/delete',['id'=>$vo.id])}" href="javascript:;" title="作废"><i class="iconfont icon-reduce_icon"></i>作废</a>
- </td>
- {/if}
- </tr>
- {/foreach}
- </tbody>
- </table>
- <div class="page">{$list|raw}</div>
- <script type="text/javascript">
- Do('base', 'layer', function () {
- $('.isDel').isDel();
- $('.isLock').click(function () {
- var url = $(this).attr("url");
- parent.layer.confirm('确认要锁定当前用户?',{ icon: 3,title: '友情提示' }, function (index) {
- $.getJSON(url, function (data) {window.location.reload();});
- parent.layer.close(index);
- });
- })
- $('.isDelete').click(function () {
- var url = $(this).attr("url");
- parent.layer.confirm('作废后,当前用户禁止登录/启用,旧数据用户看不到,将以全新用户来认证.',{ icon: 3,title: '友情提示' }, function (index) {
- $.getJSON(url, function (data) {window.location.reload();});
- parent.layer.close(index);
- });
- })
- $('.review').win()
- })
- </script>
|