recycle.html 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. {template 'common/header'}
  2. <div class="search-box we7-margin-bottom">
  3. <select name="" class="we7-margin-right">
  4. <option data-url="{php echo filter_url('account_type:');}" >帐号类型筛选</option>
  5. {loop $account_all_type_sign $type_sign $type_sign_info}
  6. <option data-url="{php echo filter_url('account_type:' . $type_sign);}" {if $_GPC['account_type'] == $type_sign} selected{/if}>{$type_sign_info['title']}</option>
  7. {/loop}
  8. </select>
  9. <form action="" class="search-form" method="get">
  10. <input type="hidden" name="c" value="account">
  11. <input type="hidden" name="a" value="recycle">
  12. <div class="input-group">
  13. <input type="text" name="keyword" value="{$_GPC['keyword']}" class="form-control" placeholder="搜索关键字"/>
  14. <span class="input-group-btn"><button class="btn btn-default"><i class="fa fa-search"></i></button></span>
  15. </div>
  16. </form>
  17. </div>
  18. <table class="table we7-table table-hover vertical-middle table-manage" id="js-system-account-recycle" ng-controller="SystemAccountRecycle" ng-cloak>
  19. <col width="85px" />
  20. <col />
  21. <col width="208px" />
  22. <col width="150px" />
  23. <tr>
  24. <th colspan="2" class="text-left">帐号</th>
  25. <th>有效期</th>
  26. <th class="text-right">操作</th>
  27. </tr>
  28. <tr class="color-gray" ng-repeat="list in del_accounts">
  29. <td class="text-left td-link">
  30. <img ng-src="{{ list.logo }}" class="img-responsive account-img icon" >
  31. </td>
  32. <td class="text-left">
  33. <p class="color-dark" ng-bind="list.name"></p>
  34. <div ng-if="list.type == account_types.wechat_normal || list.type == account_types.wechat_auth">
  35. <span class="color-gray" ng-if="list.level == 1">类型:普通订阅号</span>
  36. <span class="color-gray" ng-if="list.level == 2">类型:普通服务号</span>
  37. <span class="color-gray" ng-if="list.level == 3">类型:认证订阅号</span>
  38. <span class="color-gray" ng-if="list.level == 4" title="认证服务号/认证媒体/政府订阅号">类型:认证服务号</span>
  39. <span class="color-red" ng-if="list.isconnect == 0" ><i class="wi wi-error-sign"></i>未接入</span>
  40. <span class="color-green" ng-if="list.isconnect == 1"><i class="wi wi-right-sign"></i>已接入</span>
  41. </div>
  42. <div ng-if="list.type == account_types.wxapp_normal || list.type == account_types.wxapp_auth || list.type == account_types.aliapp || list.type == account_types.webapp || list.type == account_types.phoneapp || list.type == account_types.xzapp">
  43. <span class="color-gray">类型:{{ list.type_name }}</span>
  44. </div>
  45. </td>
  46. <td>
  47. <p ng-bind="list.setmeal.timelimit"></p>
  48. </td>
  49. <td class="vertical-middle">
  50. <div class="link-group">
  51. <a ng-href="{{links.postRecover}}&acid={{list.acid}}&uniacid={{list.uniacid}}">恢复</a>
  52. <a href="javascript:;" class="del" ng-click="delete(list.acid, list.uniacid)">删除</a>
  53. </div>
  54. </td>
  55. </tr>
  56. <tr ng-if="del_accounts | we7IsEmpty">
  57. <td colspan="100">
  58. <div class="we7-empty-block">暂无</div>
  59. </td>
  60. </tr>
  61. </table>
  62. <div class="text-right">
  63. {$pager}
  64. </div>
  65. <script>
  66. $(function(){
  67. $('[data-toggle="tooltip"]').tooltip();
  68. });
  69. angular.module('accountApp').value('config', {
  70. del_accounts: {php echo !empty($del_accounts) ? json_encode($del_accounts) : 'null'},
  71. account_types : {
  72. 'wechat_normal' : {ACCOUNT_TYPE_OFFCIAL_NORMAL},
  73. 'wechat_auth' : {ACCOUNT_TYPE_OFFCIAL_AUTH},
  74. 'wxapp_normal' : {ACCOUNT_TYPE_APP_NORMAL},
  75. 'wxapp_auth' : {ACCOUNT_TYPE_APP_AUTH},
  76. 'webapp' : {ACCOUNT_TYPE_WEBAPP_NORMAL},
  77. 'phoneapp' : {ACCOUNT_TYPE_PHONEAPP_NORMAL},
  78. 'xzapp' : {ACCOUNT_TYPE_XZAPP_NORMAL},
  79. 'aliapp' : {ACCOUNT_TYPE_ALIAPP_NORMAL},
  80. },
  81. links: {
  82. postRecover: "{php echo url('account/recycle/recover', array('account_type' => ACCOUNT_TYPE))}",
  83. postDel: "{php echo url('account/recycle/delete', array('account_type' => ACCOUNT_TYPE))}",
  84. }
  85. });
  86. angular.bootstrap($('#js-system-account-recycle'), ['accountApp']);
  87. </script>
  88. {template 'common/footer'}