| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180 |
- <include file="public@header"/>
- </head>
- <body>
- <div class="wrap js-check-wrap">
- <ul class="nav nav-tabs">
- <li class="active"><a>商家入驻列表</a></li>
- </ul>
- <form class="well form-inline margin-top-20" method="post" action="{:url('shop/apply')}">
- 状态
- <select name="status" id="status">
- <option value="0">全部</option>
- <option value="1" <if condition="$status == 1">selected</if>>待审核</option>
- <option value="2" <if condition="$status == 2">selected</if>>已通过</option>
- <option value="3" <if condition="$status == 3">selected</if>>已拒绝</option>
- </select>
- 关键字:
- <input class="form-control" type="text" name="keyword" style="width: 200px;" value="{:input('request.keyword')}"
- placeholder="用户名/商家名称/真实姓名/手机号">
- <input type="submit" class="btn btn-primary" value="搜索"/>
- <a class="btn btn-default" href="{:url('shop/apply')}">清空</a>
- <!--<a class="btn btn-warning" href="{:url('shop/export')}">导出</a>-->
- <a class="btn btn-danger" onclick="doDelete()">批量删除</a>
- </form>
- <form method="post" class="js-ajax-form">
- <table class="table table-hover table-bordered">
- <thead>
- <tr>
- <th><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x">全选</th>
- <th>ID</th>
- <th>账号</th>
- <th>LOGO</th>
- <th width="140">身份证</th>
- <th>营业执照</th>
- <th width="100">商家名称</th>
- <th width="80">分类</th>
- <th width="80">经营项目</th>
- <th>联系人</th>
- <th>手机号</th>
- <th width="100">省市区</th>
- <th width="60">账户余额</th>
- <th width="100">申请时间</th>
- <th width="100">审核时间</th>
- <th>{:lang('STATUS')}</th>
- <th>{:lang('ACTIONS')}</th>
- </tr>
- </thead>
- <tbody>
- <php>
- $user_statuses=array("0"=>lang('USER_STATUS_BLOCKED'),"1"=>lang('USER_STATUS_ACTIVATED'),"2"=>lang('USER_STATUS_UNVERIFIED'));
- </php>
- <foreach name="list" item="vo">
- <tr>
- <td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]"
- value="{$vo.id}" title="ID:{$vo.id}"></td>
- <td>{$vo.user_id}</td>
- <td>{$vo['user_login']?$vo['user_login']:($vo['mobile']?$vo['mobile']:lang('THIRD_PARTY_USER'))}
- </td>
- <td>
- <a title="点击放大" href="javascript:imagePreviewDialog('{:cmf_get_image_preview_url($vo.logo)}');">
- <img src="{:cmf_get_image_preview_url($vo.logo)}" alt="" width="48" height="48">
- </a>
- </td>
- <td>
- <a title="点击放大" href="javascript:imagePreviewDialog('{:cmf_get_image_preview_url($vo.idcard_front)}');">
- <img src="{:cmf_get_image_preview_url($vo.idcard_front)}" alt="" width="48" height="48">
- </a>
- <a title="点击放大" href="javascript:imagePreviewDialog('{:cmf_get_image_preview_url($vo.idcard_back)}');">
- <img src="{:cmf_get_image_preview_url($vo.idcard_back)}" alt="" width="48" height="48">
- </a>
- </td>
- <td>
- <a title="点击放大" href="javascript:imagePreviewDialog('{:cmf_get_image_preview_url($vo.business_img)}');">
- <img src="{:cmf_get_image_preview_url($vo.business_img)}" alt="" width="48" height="48">
- </a>
- </td>
- <td>{$vo['name']?$vo['name']:lang('NOT_FILLED')}</td>
- <td>{$vo['cate_name1']}-{$vo['cate_name2']}</td>
- <td>{$vo['business_project']?$vo['business_project']:lang('NOT_FILLED')}</td>
- <td>{$vo['contact_name']?$vo['contact_name']:lang('NOT_FILLED')}</td>
- <td>{$vo['mobile']?$vo['mobile']:lang('NOT_FILLED')}</td>
- <td>{$vo['province']} {$vo['city']} {$vo['district']}</td>
- <td>{$vo['balance']}</td>
- <td>{$vo['created_at']?$vo['created_at']:lang('NOT_FILLED')}</td>
- <td>{$vo['auth_at']?$vo['auth_at']:lang('NOT_FILLED')}</td>
- <td>
- <switch name="vo.status">
- <case value="1">
- <span class="label label-default">待审核</span>
- </case>
- <case value="2">
- <span class="label label-success">已通过</span>
- </case>
- <case value="3">
- <span class="label label-warning">已拒绝</span>
- </case>
- </switch>
- </td>
- <td>
- <if condition="$vo.status == 1">
- <a class="btn btn-xs btn-success js-ajax-dialog-btn"
- href="{:url('shop/confirm',array('id'=>$vo['id'],'status'=>2))}"
- data-msg="确认通过该申请?">通过</a>
- <a class="btn btn-xs btn-warning js-ajax-dialog-btn"
- href="{:url('shop/confirm',array('id'=>$vo['id'],'status'=>3))}"
- data-msg="确认拒绝该申请?">拒绝</a>
- </if>
- <if condition="$vo.status == 1 || $vo.status == 3">
- <a class="btn btn-xs btn-danger js-ajax-dialog-btn"
- href="{:url('shop/del',array('id'=>$vo['id']))}"
- data-msg="确认删除该申请?">删除</a>
- </if>
- </td>
- </tr>
- </foreach>
- </tbody>
- </table>
- <div class="pagination">{$page}</div>
- </form>
- </div>
- <script src="__STATIC__/js/admin.js"></script>
- <script>
- function reloadPage(win) {
- win.location.reload();
- }
- $(function () {
- setCookie("refersh_time", 3);
- Wind.use('ajaxForm', 'artDialog', 'iframeTools', function () {
- //批量冻结
- $('#js-batch-delete').click(function (e) {
- var ids = [];
- $("input[name='ids[]']").each(function () {
- if ($(this).is(':checked')) {
- ids.push($(this).val());
- }
- });
- if (ids.length == 0) {
- return false;
- }
- ids = ids.join(',');
- });
- //end
- });
- });
- </script>
- <script>
- function doDelete() {
- // Wind.use('artDialog', function () {
- var ids = [];
- $(".js-check:checked").each(function () {
- var id = $(this).val();
- if (id > 0) {
- ids.push(id);
- }
- });
- if (ids.length <= 0) {
- showMsg('请先选择操作项');
- return false;
- }
- if(confirm('确定批量删除选择项?不可恢复')){
- $.post('/admin/shop/applyDel',{id:ids},function(res){
- if(res.code == 1){
- showMsg(res.msg);
- setTimeout(function () {
- location.reload();
- }, 800)
- }else{
- showMsg(res.msg);
- }
- },"json")
- }
- }
- </script>
- </body>
- </html>
|