manage-display-wxapp.html 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. {template 'common/header'}
  2. <div class="we7-page-title">小程序管理</div>
  3. <ul class="we7-page-tab">
  4. <li class="active"><a href="{php echo url ('account/manage', array('account_type' => ACCOUNT_TYPE_APP_NORMAL))}">小程序列表</a></li>
  5. {if $_W['role'] == ACCOUNT_MANAGE_NAME_OWNER || $_W['role'] == ACCOUNT_MANAGE_NAME_FOUNDER || $_W['role'] == ACCOUNT_MANAGE_NAME_VICE_FOUNDER}
  6. <li><a href="{php echo url ('account/recycle', array('account_type' => ACCOUNT_TYPE_APP_NORMAL))}">小程序回收站</a></li>
  7. {/if}
  8. </ul>
  9. <div class="clearfix we7-margin-bottom">
  10. {if !$_W['isfounder'] && !empty($account_info['wxapp_limit']) || user_is_vice_founder()}
  11. <div class="alert alert-warning hidden">
  12. 温馨提示:
  13. <i class="fa fa-info-circle"></i>
  14. Hi,<span class="text-strong">{$_W['username']}</span>,您所在的会员组: <span class="text-strong">{$account_info['group_name']}</span>,{if !user_is_vice_founder() && !empty($account_info['vice_group_name'])} <span class="text-strong">{$account_info['vice_group_name']},</span>{/if}
  15. 账号有效期限:<span class="text-strong">{php echo date('Y-m-d', $_W['user']['starttime'])} ~~ {if empty($_W['user']['endtime'])}无限制{else}{php echo date('Y-m-d', $_W['user']['endtime'])}{/if}</span>,
  16. 可创建 <span class="text-strong">{$account_info['maxwxapp']} </span>个小程序,已创建<span class="text-strong"> {$account_info['wxapp_num']} </span>个,还可创建 <span class="text-strong">{$account_info['wxapp_limit']} </span>个小程序。
  17. </div>
  18. {/if}
  19. <form action="" class="form-inline pull-left" method="get">
  20. <input type="hidden" name="c" value="account">
  21. <input type="hidden" name="a" value="manage">
  22. <input type="hidden" name="account_type" value="4">
  23. <div class="input-group form-group" style="width: 400px;">
  24. <input type="text" name="keyword" value="{$_GPC['keyword']}" class="form-control" placeholder="搜索关键字"/>
  25. <span class="input-group-btn"><button class="btn btn-default"><i class="fa fa-search"></i></button></span>
  26. </div>
  27. </form>
  28. {if !empty($account_info['wxapp_limit']) && (!empty($account_info['founder_wxapp_limit']) && $_W['user']['owner_uid'] || empty($_W['user']['owner_uid'])) || $_W['isfounder'] && !user_is_vice_founder()}
  29. <div class="pull-right">
  30. <a href="{php echo url('wxapp/post/design_method')}" class="btn btn-primary we7-padding-horizontal">添加小程序</a>
  31. </div>
  32. {/if}
  33. </div>
  34. <table class="table we7-table table-hover vertical-middle table-manage" id="js-system-account-display" ng-controller="SystemAccountDisplay" ng-cloak>
  35. <col width="120px" />
  36. <col />
  37. <col width="208px" />
  38. <col width="245px" />
  39. <tr>
  40. <th colspan="5" class="text-left filter">
  41. <div class="dropdown dropdown-toggle we7-dropdown">
  42. <a data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  43. 时间排序
  44. <span class="caret"></span>
  45. </a>
  46. <ul class="dropdown-menu" aria-labelledby="dLabel">
  47. <li><a href="{php echo filter_url('order:asc');}" class="active">创建时间正序</a></li>
  48. <li><a href="{php echo filter_url('order:desc');}">创建时间倒序</a></li>
  49. </ul>
  50. </div>
  51. <div class="dropdown dropdown-toggle we7-dropdown">
  52. <a data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  53. 小程序筛选
  54. <span class="caret"></span>
  55. </a>
  56. <ul class="dropdown-menu" aria-labelledby="dLabel">
  57. <li><a href="{php echo filter_url('type:all');}" class="active">全部小程序</a></li>
  58. <li><a href="{php echo filter_url('type:expire');}" class="active">小程序已到期</a></li>
  59. </ul>
  60. </div>
  61. </th>
  62. </tr>
  63. <tr>
  64. <th colspan="2" class="text-left">小程序应用</th>
  65. <th>平台过期时间</th>
  66. <th class="text-right">操作</th>
  67. </tr>
  68. <tr class="color-gray" ng-repeat="list in lists">
  69. <td class="text-left td-link">
  70. {if $role_type}
  71. <a ng-href="{{links.post}}&acid={{list.acid}}&uniacid={{list.uniacid}}"></a>
  72. {else}
  73. <a href="javascript:;">
  74. {/if}
  75. <img ng-src="{{list.logo}}" class="img-responsive icon">
  76. </a>
  77. </td>
  78. <td class="text-left">
  79. <p class="color-dark" ng-bind="list.name"></p>
  80. </td>
  81. <td>
  82. <p ng-bind="list.end"></p>
  83. </td>
  84. <td class="vertical-middle vertical-middle table-manage-td">
  85. <div class="link-group">
  86. <a ng-href="{{links.switch}}uniacid={{list.uniacid}}&version_id={{list.current_version.id}}&type={{list.type}}">进入小程序</a>
  87. {if $role_type}
  88. <a ng-href="{{links.post}}&acid={{list.acid}}&uniacid={{list.uniacid}}" ng-show="list.role == 'manager' || list.role == 'owner' || list.role == 'founder' || list.role == 'vice_founder'">管理设置</a>
  89. {/if}
  90. </div>
  91. {if $role_type}
  92. <div class="manage-option text-right">
  93. <a href="{{links.post}}&acid={{list.acid}}&uniacid={{list.uniacid}}" ng-show="list.role == 'owner' || list.role == 'founder' || list.role == 'vice_founder'">基础信息</a>
  94. <a href="{{links.postUser}}&do=edit&uniacid={{list.uniacid}}&acid={{list.acid}}">使用者管理</a>
  95. <a href="{{links.postVersion}}&do=display&uniacid={{list.uniacid}}&acid={{list.acid}}">版本管理</a>
  96. <a href="{{links.post}}&do=modules_tpl&uniacid={{list.uniacid}}&acid={{list.acid}}&account_type={{list.type}}">可用应用模板/模块</a>
  97. {if $_W['role'] != ACCOUNT_MANAGE_NAME_MANAGER}
  98. <a ng-href="{{links.del}}&acid={{list.acid}}&uniacid={{list.uniacid}}" ng-show="list.role == 'owner' || list.role == 'founder' || list.role == 'vice_founder'" onclick="if(!confirm('确认放入回收站吗?')) return false;" class="del">停用</a>
  99. {/if}
  100. </div>
  101. {/if}
  102. </td>
  103. </tr>
  104. </table>
  105. <div class="text-right">
  106. {$pager}
  107. </div>
  108. <script>
  109. $(function(){
  110. $('[data-toggle="tooltip"]').tooltip();
  111. });
  112. switch_url = "{php echo url('account/display/switch')}";
  113. angular.module('accountApp').value('config', {
  114. lists: {php echo !empty($list) ? json_encode($list) : 'null'},
  115. links: {
  116. switch: switch_url,
  117. post: "{php echo url('account/post', array('account_type' => ACCOUNT_TYPE_APP_NORMAL))}",
  118. postUser: "{php echo url('account/post-user', array('account_type' => ACCOUNT_TYPE_APP_NORMAL))}",
  119. postVersion: "{php echo url('wxapp/manage', array('account_type' => ACCOUNT_TYPE_APP_NORMAL))}",
  120. del: "{php echo url('account/manage/delete', array('account_type' => ACCOUNT_TYPE_APP_NORMAL))}",
  121. }
  122. });
  123. angular.bootstrap($('#js-system-account-display'), ['accountApp']);
  124. </script>
  125. {template 'common/footer'}