apply.html 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. <include file="public@header"/>
  2. </head>
  3. <body>
  4. <div class="wrap js-check-wrap">
  5. <ul class="nav nav-tabs">
  6. <li class="active"><a>商家入驻列表</a></li>
  7. </ul>
  8. <form class="well form-inline margin-top-20" method="post" action="{:url('shop/apply')}">
  9. 状态
  10. <select name="status" id="status">
  11. <option value="0">全部</option>
  12. <option value="1" <if condition="$status == 1">selected</if>>待审核</option>
  13. <option value="2" <if condition="$status == 2">selected</if>>已通过</option>
  14. <option value="3" <if condition="$status == 3">selected</if>>已拒绝</option>
  15. </select>
  16. 关键字:
  17. <input class="form-control" type="text" name="keyword" style="width: 200px;" value="{:input('request.keyword')}"
  18. placeholder="用户名/商家名称/真实姓名/手机号">
  19. <input type="submit" class="btn btn-primary" value="搜索"/>
  20. <a class="btn btn-default" href="{:url('shop/apply')}">清空</a>
  21. <!--<a class="btn btn-warning" href="{:url('shop/export')}">导出</a>-->
  22. <a class="btn btn-danger" onclick="doDelete()">批量删除</a>
  23. </form>
  24. <form method="post" class="js-ajax-form">
  25. <table class="table table-hover table-bordered">
  26. <thead>
  27. <tr>
  28. <th><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x">全选</th>
  29. <th>ID</th>
  30. <th>账号</th>
  31. <th>LOGO</th>
  32. <th width="140">身份证</th>
  33. <th>营业执照</th>
  34. <th width="100">商家名称</th>
  35. <th width="80">分类</th>
  36. <th width="80">经营项目</th>
  37. <th>联系人</th>
  38. <th>手机号</th>
  39. <th width="100">省市区</th>
  40. <th width="60">账户余额</th>
  41. <th width="100">申请时间</th>
  42. <th width="100">审核时间</th>
  43. <th>{:lang('STATUS')}</th>
  44. <th>{:lang('ACTIONS')}</th>
  45. </tr>
  46. </thead>
  47. <tbody>
  48. <php>
  49. $user_statuses=array("0"=>lang('USER_STATUS_BLOCKED'),"1"=>lang('USER_STATUS_ACTIVATED'),"2"=>lang('USER_STATUS_UNVERIFIED'));
  50. </php>
  51. <foreach name="list" item="vo">
  52. <tr>
  53. <td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]"
  54. value="{$vo.id}" title="ID:{$vo.id}"></td>
  55. <td>{$vo.user_id}</td>
  56. <td>{$vo['user_login']?$vo['user_login']:($vo['mobile']?$vo['mobile']:lang('THIRD_PARTY_USER'))}
  57. </td>
  58. <td>
  59. <a title="点击放大" href="javascript:imagePreviewDialog('{:cmf_get_image_preview_url($vo.logo)}');">
  60. <img src="{:cmf_get_image_preview_url($vo.logo)}" alt="" width="48" height="48">
  61. </a>
  62. </td>
  63. <td>
  64. <a title="点击放大" href="javascript:imagePreviewDialog('{:cmf_get_image_preview_url($vo.idcard_front)}');">
  65. <img src="{:cmf_get_image_preview_url($vo.idcard_front)}" alt="" width="48" height="48">
  66. </a>
  67. <a title="点击放大" href="javascript:imagePreviewDialog('{:cmf_get_image_preview_url($vo.idcard_back)}');">
  68. <img src="{:cmf_get_image_preview_url($vo.idcard_back)}" alt="" width="48" height="48">
  69. </a>
  70. </td>
  71. <td>
  72. <a title="点击放大" href="javascript:imagePreviewDialog('{:cmf_get_image_preview_url($vo.business_img)}');">
  73. <img src="{:cmf_get_image_preview_url($vo.business_img)}" alt="" width="48" height="48">
  74. </a>
  75. </td>
  76. <td>{$vo['name']?$vo['name']:lang('NOT_FILLED')}</td>
  77. <td>{$vo['cate_name1']}-{$vo['cate_name2']}</td>
  78. <td>{$vo['business_project']?$vo['business_project']:lang('NOT_FILLED')}</td>
  79. <td>{$vo['contact_name']?$vo['contact_name']:lang('NOT_FILLED')}</td>
  80. <td>{$vo['mobile']?$vo['mobile']:lang('NOT_FILLED')}</td>
  81. <td>{$vo['province']} {$vo['city']} {$vo['district']}</td>
  82. <td>{$vo['balance']}</td>
  83. <td>{$vo['created_at']?$vo['created_at']:lang('NOT_FILLED')}</td>
  84. <td>{$vo['auth_at']?$vo['auth_at']:lang('NOT_FILLED')}</td>
  85. <td>
  86. <switch name="vo.status">
  87. <case value="1">
  88. <span class="label label-default">待审核</span>
  89. </case>
  90. <case value="2">
  91. <span class="label label-success">已通过</span>
  92. </case>
  93. <case value="3">
  94. <span class="label label-warning">已拒绝</span>
  95. </case>
  96. </switch>
  97. </td>
  98. <td>
  99. <if condition="$vo.status == 1">
  100. <a class="btn btn-xs btn-success js-ajax-dialog-btn"
  101. href="{:url('shop/confirm',array('id'=>$vo['id'],'status'=>2))}"
  102. data-msg="确认通过该申请?">通过</a>
  103. <a class="btn btn-xs btn-warning js-ajax-dialog-btn"
  104. href="{:url('shop/confirm',array('id'=>$vo['id'],'status'=>3))}"
  105. data-msg="确认拒绝该申请?">拒绝</a>
  106. </if>
  107. <if condition="$vo.status == 1 || $vo.status == 3">
  108. <a class="btn btn-xs btn-danger js-ajax-dialog-btn"
  109. href="{:url('shop/del',array('id'=>$vo['id']))}"
  110. data-msg="确认删除该申请?">删除</a>
  111. </if>
  112. </td>
  113. </tr>
  114. </foreach>
  115. </tbody>
  116. </table>
  117. <div class="pagination">{$page}</div>
  118. </form>
  119. </div>
  120. <script src="__STATIC__/js/admin.js"></script>
  121. <script>
  122. function reloadPage(win) {
  123. win.location.reload();
  124. }
  125. $(function () {
  126. setCookie("refersh_time", 3);
  127. Wind.use('ajaxForm', 'artDialog', 'iframeTools', function () {
  128. //批量冻结
  129. $('#js-batch-delete').click(function (e) {
  130. var ids = [];
  131. $("input[name='ids[]']").each(function () {
  132. if ($(this).is(':checked')) {
  133. ids.push($(this).val());
  134. }
  135. });
  136. if (ids.length == 0) {
  137. return false;
  138. }
  139. ids = ids.join(',');
  140. });
  141. //end
  142. });
  143. });
  144. </script>
  145. <script>
  146. function doDelete() {
  147. // Wind.use('artDialog', function () {
  148. var ids = [];
  149. $(".js-check:checked").each(function () {
  150. var id = $(this).val();
  151. if (id > 0) {
  152. ids.push(id);
  153. }
  154. });
  155. if (ids.length <= 0) {
  156. showMsg('请先选择操作项');
  157. return false;
  158. }
  159. if(confirm('确定批量删除选择项?不可恢复')){
  160. $.post('/admin/shop/applyDel',{id:ids},function(res){
  161. if(res.code == 1){
  162. showMsg(res.msg);
  163. setTimeout(function () {
  164. location.reload();
  165. }, 800)
  166. }else{
  167. showMsg(res.msg);
  168. }
  169. },"json")
  170. }
  171. }
  172. </script>
  173. </body>
  174. </html>