Нет описания
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

log_off_index.htm 9.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. {include file="public/layout" /}
  2. <body class="bodystyle" style="cursor: default; -moz-user-select: inherit;">
  3. <div id="append_parent"></div>
  4. <div id="ajaxwaitid"></div>
  5. {include file="member/left" /}
  6. <div class="page min-hg-c-10" style="min-width:auto;margin-left:100px;">
  7. <div class="fixed-bar">
  8. <div class="item-title">
  9. <ul class="tab-base nc-row">
  10. <li>
  11. <a {if condition="in_array($Request.action, ['log_off_index'])"}class="current"{/if} href='{:url("Member/log_off_index")}'><span>注销列表</span></a>
  12. </li>
  13. <li>
  14. <a {if condition="in_array($Request.action, ['log_off_set'])"}class="current"{/if} href='{:url("Member/log_off_set")}'><span>注销设置</span></a>
  15. </li>
  16. </ul>
  17. </div>
  18. </div>
  19. <div class="flexigrid">
  20. <div class="hDiv">
  21. <div class="hDivBox">
  22. <table cellspacing="0" cellpadding="0" style="width: 100%">
  23. <thead>
  24. <tr>
  25. <th abbr="username" axis="col5" class="w60">
  26. <div class="tc">序号</div>
  27. </th>
  28. <th abbr="username" axis="col5" class="w200">
  29. <div class="tc">会员账号</div>
  30. </th>
  31. <th abbr="nickname" axis="col3">
  32. <div class="tc">昵称</div>
  33. </th>
  34. <th abbr="mobile" axis="col4" class="w200">
  35. <div class="tc">手机</div>
  36. </th>
  37. <th abbr="status" axis="col6" class="w200">
  38. <div class="tc">状态</div>
  39. </th>
  40. <th abbr="add_time" axis="col6" class="w200">
  41. <div class="tc">申请时间</div>
  42. </th>
  43. <th axis="col1" class="w400">
  44. <div class="tc">操作</div>
  45. </th>
  46. </tr>
  47. </thead>
  48. </table>
  49. </div>
  50. </div>
  51. <div class="bDiv" style="height: auto;">
  52. <div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
  53. <table style="width: 100%">
  54. <tbody>
  55. {empty name="list"}
  56. <tr>
  57. <td class="no-data" align="center" axis="col0" colspan="50">
  58. <i class="fa fa-exclamation-circle"></i>没有符合条件的记录
  59. </td>
  60. </tr>
  61. {else/}
  62. {volist name="list" id="vo"}
  63. <tr>
  64. <td class="sort">
  65. <div class="w60 tc">
  66. {$cur_key-$key}
  67. </div>
  68. </td>
  69. <td class="sort">
  70. <div class="w200 tc">
  71. {$vo.username}
  72. </div>
  73. </td>
  74. <td style="width: 100%;" >
  75. <div class="tc">
  76. {$vo.nickname}
  77. </div>
  78. </td>
  79. <td>
  80. <div class="w200 tc">
  81. {empty name="$vo.mobile"}
  82. <span class="grey">未填写</span>
  83. {else/}
  84. {$vo.mobile}
  85. {/empty}
  86. </div>
  87. </td>
  88. <td>
  89. <div class="w200 tc">
  90. {if condition="0 == $vo.status"}
  91. <span style="color: #ff9900">待审核</span>
  92. {elseif condition="1 == $vo.status"}
  93. <span class="green">注销成功</span>
  94. {elseif condition="2 == $vo.status"}
  95. <span class="red">审核拒绝</span>
  96. {/if}
  97. </div>
  98. </td>
  99. <td>
  100. <div class="w200 tc">
  101. {$vo.add_time|date='Y-m-d H:i:s',###}
  102. </div>
  103. </td>
  104. <td>
  105. <div class="w400 tc">
  106. {eq name="$vo.status" value="0"}
  107. <a class="btn red" href="javascript:void(0)" data-href="{:url('Member/users_edit',array('id'=>$vo['users_id']))}" onclick="openFullframe(this, '会员信息', '100%', '100%');"><i class="fa fa-trash-o"></i>会员信息</a>
  108. <a class="btn red" href="javascript:void(0)" data-href="{:url('Member/handle_log_off',array('id'=>$vo['id'],'status'=>1))}" onclick="handle_log_off(this,1);"><i class="fa fa-trash-o"></i>审核通过</a>
  109. <a class="btn red" href="javascript:void(0)" data-href="{:url('Member/handle_log_off',array('id'=>$vo['id'],'status'=>2))}" onclick="handle_log_off(this,2);"><i class="fa fa-trash-o"></i>审核拒绝</a>
  110. {else /}
  111. {notempty name="$vo.admin_id"}
  112. <a class="btn red" href="javascript:void(0)" data-href="{:url('Member/log_off_see',array('id'=>$vo['id']))}" onclick="openFullframe(this, '详情', '600px', '210px');"><i class="fa fa-trash-o"></i>查看操作记录</a>
  113. {else /}
  114. <a class="btn grey" href="javascript:void(0)"><i class="fa fa-trash-o"></i>查看操作记录</a>
  115. {/notempty}
  116. {/eq}
  117. </div>
  118. </td>
  119. </tr>
  120. {/volist}
  121. {/empty}
  122. </tbody>
  123. </table>
  124. </div>
  125. <div class="iDiv" style="display: none;"></div>
  126. </div>
  127. {$pageStr}
  128. </div>
  129. </div>
  130. <script>
  131. $(document).ready(function(){
  132. // 表格行点击选中切换
  133. $('#flexigrid > table>tbody >tr').click(function(){
  134. $(this).toggleClass('trSelected');
  135. });
  136. // 点击刷新数据
  137. $('.fa-refresh').click(function(){
  138. location.href = location.href;
  139. });
  140. });
  141. function handle_log_off(obj,status) {
  142. if (1 == status){
  143. var title = '此操作不可恢复,确定注销账号?';
  144. var btn = ['确定', '取消']; //按钮
  145. // 删除按钮
  146. layer.confirm(title, {
  147. title: false,
  148. btn: btn //按钮
  149. }, function () {
  150. $.ajax({
  151. type: "POST",
  152. url: $(obj).data('href'),
  153. data: {_ajax:1},
  154. dataType: 'json',
  155. success: function (data) {
  156. layer.closeAll();
  157. if(data.code == 1){
  158. layer.msg(data.msg, {icon:1, time: 1000}, function(){
  159. window.location.reload();
  160. });
  161. }else{
  162. layer.alert(data.msg, {icon: 2, title:false});
  163. }
  164. },
  165. error:function(){
  166. layer.closeAll();
  167. }
  168. });
  169. }, function (index) {
  170. layer.closeAll(index);
  171. });
  172. } else{
  173. layer.prompt({
  174. formType: 2,
  175. placeholder: '请输入拒绝注销原因',
  176. title: '请输入拒绝注销原因',
  177. btnAlign:'r',
  178. closeBtn: 3,
  179. }, function(value, index, elem){
  180. layer.close(index);
  181. $.ajax({
  182. type : 'post',
  183. url : $(obj).data('href'),
  184. data : {refuse_reason:value, _ajax:1},
  185. dataType : 'json',
  186. success : function(res){
  187. layer.closeAll();
  188. if(res.code == 1){
  189. layer.msg(res.msg, {icon: 1, time:1000}, function(){
  190. window.location.reload();
  191. });
  192. }else{
  193. layer.msg(res.msg, {icon: 2, time:1000});
  194. }
  195. },
  196. error:function(){
  197. layer.closeAll();
  198. layer.alert('未知错误', {icon: 2, title:false});
  199. }
  200. })
  201. });
  202. }
  203. }
  204. </script>
  205. {include file="public/footer" /}