123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173 |
- <%include ../layout/second_menu.html %>
- <div class="panel-content">
- <div class="panel-title">
- <div class="title-main">
- <h2><%= secondMenu[action].title %></h2>
- </div>
- </div>
- <div class="content-wrap">
- <div class="c-header">
- <form class="form-inline" method="get" action="">
- <!--最近使用定额-->
- <div class="btn-group">
- <button type="button" class="btn btn-default dropdown-toggle btn-sm" data-toggle="dropdown"
- aria-haspopup="true" aria-expanded="false">
- 最近使用费用定额:<lable><%= compilationMap[filter.latestUsed] === undefined ? '所有' : compilationMap[filter.latestUsed].name %></lable> <span class="caret"></span>
- </button>
- <ul class="dropdown-menu selector">
- <li><a data-value="">所有</a></li>
- <% for(let compilation of compilationList){ %>
- <li><a data-value="<%= compilation._id.toString()%>"><%= compilation.name %></a></li>
- <% } %>
- </ul>
- <input type="hidden" name="latestUsed" value="<%= filter.latestUsed%>" />
- </div>
- <!--已升级费用定额-->
- <div class="btn-group">
- <button type="button" class="btn btn-default dropdown-toggle btn-sm" data-toggle="dropdown"
- aria-haspopup="true" aria-expanded="false">
- 已升级费用定额:<lable><%= compilationMap[filter.upGrade] === undefined ? '所有' : compilationMap[filter.upGrade].name %></lable> <span class="caret"></span>
- </button>
- <ul class="dropdown-menu selector">
- <li><a data-value="">所有</a></li>
- <% for(let compilation of compilationList){ %>
- <li><a data-value="<%= compilation._id.toString()%>"><%= compilation.name %></a></li>
- <% } %>
- </ul>
- <input type="hidden" name="upGrade" value="<%= filter.upGrade%>" />
- </div>
- <!--最新注册-->
- <div class="btn-group">
- <button type="button" class="btn btn-default dropdown-toggle btn-sm" data-toggle="dropdown"
- aria-haspopup="true" aria-expanded="false">
- 最新注册:<lable><%= filter.regtimeMsg === undefined ? '所有' : filter.regtimeMsg %></lable><span class="caret"></span>
- </button>
- <ul class="dropdown-menu selector">
- <li><a data-value="0">所有</a></li>
- <li><a data-value="1">最近24小时</a></li>
- <li><a data-value="2">最近3天</a></li>
- <li><a data-value="3">最近7天</a></li>
- <li><a data-value="4">最近30天</a></li>
- </ul>
- <input type="hidden" name="regtime" value="<%= filter.regtime%>" />
- </div>
- <!--最近登录-->
- <div class="btn-group">
- <button type="button" class="btn btn-default dropdown-toggle btn-sm" data-toggle="dropdown"
- aria-haspopup="true" aria-expanded="false">
- 最近登录:<lable><%= filter.loginMsg === undefined ? '所有' : filter.loginMsg %></lable><span class="caret"></span>
- </button>
- <ul class="dropdown-menu selector">
- <li><a data-value="0">所有</a></li>
- <li><a data-value="1">最近24小时</a></li>
- <li><a data-value="2">最近3天</a></li>
- <li><a data-value="3">最近7天</a></li>
- <li><a data-value="4">最近30天</a></li>
- </ul>
- <input type="hidden" name="loginTime" value="<%= filter.loginTime%>" />
- </div>
- <!--结果-->
- <div class="btn-group">
- 共 <%= total %> 条结果
- </div>
- <!--搜索-->
- <div class="btn-group pull-right">
- <div class="input-group">
- <input type="text" name="keyword" class="form-control input-sm" value="<%= filter.keyword === undefined ? '' : filter.keyword %>" placeholder="手机/邮箱/姓名/公司">
- <span class="input-group-btn">
- <button class="btn btn-default btn-sm" type="submit">
- <i class="glyphicon glyphicon-search"></i>
- </button>
- </span>
- </div>
- </div>
- </form>
- </div>
- <div class="c-body">
- <table class="table">
- <thead>
- <tr>
- <th width="350">注册手机/邮箱</th>
- <th>姓名</th>
- <th>企业名称</th>
- <th>企业地区</th>
- <th>最近使用版本</th>
- <th width="180">最近登录</th>
- <th width="180">注册时间</th>
- <th>详细</th>
- <th>升级</th>
- </tr>
- </thead>
- <tbody>
- <% userList.forEach(function (user){ %>
- <tr>
- <td><%= user.mobile %> / <%= user.email %></td>
- <td><%= user.real_name %></td>
- <td><a tabindex="0" role="button" data-toggle="popover" data-trigger="focus" title="更多信息"
- data-content="企业类型:<%= model.companyType[user.company_type] %>,企业规模:<%= model.companyScale[user.company_scale] %>"><%= user.company %></a>
- </td>
- <td><%= model.province[user.province] %></td>
- <td><%= compilationMap[user.latest_used]?compilationMap[user.latest_used].name:""%></td>
- <td><%= user.latest_login?moment(user.latest_login).format('YYYY-MM-DD HH:mm:ss'):"" %></td>
- <td><%= moment(user.create_time).format('YYYY-MM-DD HH:mm:ss') %></td>
- <td><a role="button" data-toggle="modal" data-target="#view" onclick='getUserInfo("<%= user._id.toString()%>")'>详细</a></td>
- <td><a href="#update" data-toggle="modal" data-target="#update" onclick='getUserUpgradeInfo("<%= user._id.toString()%>")'>升级</a></td>
- </tr>
- <% }) %>
- </tbody>
- </table>
- <nav aria-label="Page navigation">
- <%include ../layout/page.html %>
- </nav>
- </div>
- </div>
- </div>
- <!-- 弹窗查看用户详情-->
- <div class="modal fade" id="view" tabindex="-1" role="dialog">
- <div class="modal-dialog" role="document">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
- <h4 class="modal-title" >用户信息</h4>
- </div>
- <div class="modal-body">
- <table class="table table-bordered">
- <tbody id="userInfoTable">
- </tbody>
- </table>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
- </div>
- </div>
- </div>
- </div>
- <!-- 用户升级弹窗-->
- <div class="modal fade" id="update" tabindex="-1" role="dialog">
- <div class="modal-dialog" role="document">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
- <h4 class="modal-title" >产品升级</h4>
- </div>
- <div class="modal-body">
- <table class="table table-bordered">
- <tbody id="upgrade_table">
- </tbody>
- </table>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
- </div>
- </div>
- </div>
- </div>
- <script type="text/javascript">
- let compilationList = JSON.parse('<%- compilationString %>');
- let adminName = '<%- adminName %>';
- </script>
- <script type="text/javascript" src="/web/users/js/user.js"></script>
|