privileges.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  1. {template 'common/header'}
  2. <!--新建弹窗-->
  3. <div class="modal" id="owner-modal">
  4. <div class="modal-dialog">
  5. <div class="modal-content">
  6. <div class="modal-header">
  7. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  8. <h3 class="modal-title">新建</h3>
  9. </div>
  10. <div class="modal-body">
  11. <div class="mask-creat">
  12. <ul>
  13. {if !empty($account_info['uniacid_limit']) && (!empty($account_info['founder_uniacid_limit']) && $_W['user']['owner_uid'] || empty($_W['user']['owner_uid'])) || $_W['isfounder'] && !user_is_vice_founder()}
  14. <li><i class="wi wi-wx-circle"></i><br/><a href="./index.php?c=account&a=post-step" class="name" title="新建公众号"></a></li>
  15. {/if}
  16. {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()}
  17. <li><i class="wi wi-wxapp"></i><br/><a href="{php echo url('wxapp/post/design_method')}" class="name" title="新建小程序"></a></li>
  18. {/if}
  19. {if !empty($account_info['webapp_limit']) && (!empty($account_info['founder_webapp_limit']) && $_W['user']['owner_uid'] || empty($_W['user']['owner_uid'])) || $_W['isfounder'] && !user_is_vice_founder()}
  20. <li><i class="wi wi-pc-circle"></i><br/><a href="./index.php?c=webapp&a=manage&do=create_display" class="name" title="新建PC"></a></li>
  21. {/if}
  22. {if !empty($account_info['phoneapp_limit']) && (!empty($account_info['founder_phoneapp_limit']) && $_W['user']['owner_uid'] || empty($_W['user']['owner_uid'])) || $_W['isfounder'] && !user_is_vice_founder()}
  23. <li><i class="wi wi-app"></i><br/><a href="{php echo url('phoneapp/manage/create_display')}" class="name" title="新建APP"></a></li>
  24. {/if}
  25. </ul>
  26. </div>
  27. </div>
  28. <div class="modal-footer">
  29. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  30. </div>
  31. </div>
  32. </div>
  33. </div>
  34. <div class="panel panel-cut" id="js-account-privileges" ng-controller="privilegesDisplay" ng-cloak>
  35. <!--选项卡-->
  36. <div class="panel-heading mixMenu-panel-heading">
  37. <ul class="navbar-nav">
  38. {loop $nav_top_fold $nav}
  39. <li {if $type == $nav['name']} class="on-tab" {/if}>
  40. <a href="{if empty($nav['url'])}{php echo url('home/welcome/' . $nav['name']);}{else}{php echo url('account/privileges/', array('type'=>$nav['name'], 'title'=>$nav['title']))}{/if}" {if !empty($nav['blank'])}target="_blank"{/if}>
  41. {$nav['title']}
  42. </a>
  43. </li>
  44. {/loop}
  45. </ul>
  46. </div>
  47. <!--主体内容-->
  48. <div class="panel-body mixMenu-panel-body" >
  49. <!--全部应用-->
  50. <div class="cut-list ">
  51. <!--搜索、新建、管理-->
  52. <div class="we7-page-search cut-header">
  53. <div ng-if="searchShow">
  54. <form action="./index.php" method="get">
  55. <input type="hidden" name="c" value="account">
  56. <input type="hidden" name="a" value="privileges">
  57. <input type="hidden" name="do" value="display" ng-if="type == 'all'">
  58. <input type="hidden" name="type" value="{{type}}">
  59. <input type="hidden" name="title" value="{{title}}">
  60. <input type="text" name="letter" ng-model="activeLetter" ng-style="{'display': 'none'}">
  61. <div class="cut-search">
  62. <div class="input-group pull-left">
  63. <input type="text" class="form-control" name="keyword" value="{$_GPC['keyword']}" placeholder="请输入{{title}}名称">
  64. <span class="input-group-btn"><button class="btn btn-default button"><i class="wi wi-search"></i></button></span>
  65. </div>
  66. </div>
  67. </form>
  68. </div>
  69. <div class="font-default pull-right">
  70. <!-- xstart -->
  71. {if IMS_FAMILY == 'x'}
  72. <div class="creat" ng-switch="type">
  73. <a ng-switch-when="all" href="javascript:;" data-toggle="modal" data-target="#owner-modal" class="color-default"><i class="wi wi-registersite"></i>新增应用</a>
  74. {if !empty($account_info['uniacid_limit']) && (!empty($account_info['founder_uniacid_limit']) && $_W['user']['owner_uid'] || empty($_W['user']['owner_uid'])) || $_W['isfounder'] && !user_is_vice_founder()}
  75. <a ng-switch-when="account" href="./index.php?c=account&a=post-step" class="color-default">
  76. <i class="fa fa-plus"></i>新增公众号
  77. </a>
  78. {/if}
  79. {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()}
  80. <a ng-switch-when="wxapp" href="{php echo url('wxapp/post/design_method')}" class="color-default"><i class="wi wi-registersite"></i>新建小程序</a>
  81. {/if}
  82. {if !empty($account_info['webapp_limit']) && (!empty($account_info['founder_webapp_limit']) && $_W['user']['owner_uid'] || empty($_W['user']['owner_uid'])) || $_W['isfounder'] && !user_is_vice_founder()}
  83. <a ng-switch-when="webapp" href="./index.php?c=webapp&a=manage&do=create_display" class="color-default">
  84. <i class="fa fa-plus"></i>新增PC
  85. </a>
  86. {/if}
  87. {if !empty($account_info['phoneapp_limit']) && (!empty($account_info['founder_phoneapp_limit']) && $_W['user']['owner_uid'] || empty($_W['user']['owner_uid'])) || $_W['isfounder'] && !user_is_vice_founder()}
  88. <a ng-switch-when="phoneapp" href="{php echo url('phoneapp/manage/create_display')}" class="color-default"><i class="wi wi-registersite"></i>新建APP</a>
  89. {/if}
  90. </div>
  91. {/if}
  92. <!-- xsend -->
  93. <div class="creat">
  94. {if !empty($account_info['uniacid_limit']) || $_W['isfounder']}
  95. <a href="./index.php?c=account&a=post-step" class="color-default" ng-if="type == 'account'">
  96. <i class="fa fa-plus"></i>新增公众号
  97. </a>
  98. {/if}
  99. {if !empty($account_info['wxapp_limit']) || $_W['isfounder'] && !user_is_vice_founder()}
  100. <a href="{php echo url('wxapp/post/design_method')}" class="color-default" ng-if="type == 'wxapp">
  101. <i class="wi wi-registersite"></i>新建小程序
  102. </a>
  103. {/if}
  104. {if !empty($account_info['webapp_limit']) || $_W['isfounder']}
  105. <a href="./index.php?c=webapp&a=manage&do=create_display" class="color-default" ng-if="type == 'webapp'">
  106. <i class="fa fa-plus"></i>新增PC
  107. </a>
  108. {/if}
  109. {if !empty($account_info['phoneapp_limit']) || $_W['isfounder']}
  110. <a href="{php echo url('phoneapp/manage/create_display')}" class="color-default" ng-if="type == 'phoneapp'">
  111. <i class="wi wi-registersite"></i>新建APP
  112. </a>
  113. {/if}
  114. </div>
  115. <div class="setting" ng-switch="type">
  116. {if in_array($_W['highest_role'], array(ACCOUNT_MANAGE_NAME_FOUNDER, ACCOUNT_MANAGE_NAME_VICE_FOUNDER, ACCOUNT_MANAGE_NAME_OWNER,ACCOUNT_MANAGE_NAME_MANAGER))}
  117. <a ng-switch-when="account" href="{php echo url('account/manage', array('account_type' => ACCOUNT_TYPE_OFFCIAL_NORMAL))}" class="color-default">
  118. <i class="wi wi-wechatstatistics"></i>
  119. 公众号管理
  120. </a>
  121. <a ng-switch-when="webapp" href="{php echo url('account/manage', array('account_type' => ACCOUNT_TYPE_WEBAPP_NORMAL))}" class="color-default">
  122. <i class="wi wi-wechatstatistics"></i>
  123. PC管理
  124. </a>
  125. {/if}
  126. <a ng-switch-when="wxapp" href="{php echo url('account/manage', array('account_type' => ACCOUNT_TYPE_APP_NORMAL))}" class="color-default">
  127. <i class="wi wi-wechatstatistics"></i>小程序管理
  128. </a>
  129. <a ng-switch-when="phoneapp" href="{php echo url('account/manage', array('account_type' => ACCOUNT_TYPE_PHONEAPP_NORMAL))}" class="color-default">
  130. <i class="wi wi-wechatstatistics"></i>
  131. APP管理
  132. </a>
  133. </div>
  134. </div>
  135. </div>
  136. <!--首字母检索-->
  137. <div class="clearfix"></div>
  138. <ul class="letters-list" ng-if="searchShow">
  139. <li ng-repeat="letter in alphabet" ng-style="{'background-color': letter == activeLetter ? '#ddd' : 'none'}" ng-class="{'active': letter == activeLetter}" ng-click="searchModule(letter)" class="ng-scope">
  140. <a href="javascript:;" ng-bind="letter" class="ng-binding"></a>
  141. </li>
  142. </ul>
  143. <!--列表数据-->
  144. <!--add-->
  145. <div class="mixMenu-list clearfix" ng-if="list" infinite-scroll='loadMore()' infinite-scroll-disabled='busy' infinite-scroll-distance='0' infinite-scroll-use-document-bottom="true">
  146. <!--add-->
  147. <div class="item module-list-item ng-scope" ng-repeat="detail in list" ng-if="list" style="">
  148. <div class="content">
  149. <img class="item-logo" ng-src="{{detail.logo}}" onerror="this.src='./resource/images/nopic-107.png'">
  150. <div class="item-footer">
  151. <div class="item-icon">
  152. <i ng-if="detail.type == types.account_normal || detail.type == types.account_auth" class="wi wi-wechat"></i>
  153. <i ng-if="detail.type == types.account_auth" class="wi wi-wechat"></i>
  154. <i ng-if="detail.type == types.wxapp_normal" class="wi wi-wxapp"></i>
  155. <i ng-if="detail.type == types.wxapp_auth" class="wi wi-wxapp"></i>
  156. <i ng-if="detail.type == types.webapp" class="wi wi-pc"></i>
  157. <i ng-if="detail.type == types.phoneapp" class="wi wi-app"></i>
  158. </div>
  159. <div class="info">
  160. <div class="name" ng-bind="detail.name"></div>
  161. <div class="type" ng-if="detail.type == types.account_normal || detail.type == types.account_auth">
  162. <span ng-if="detail.level == 1">类型:普通订阅号</span>
  163. <span ng-if="detail.level == 2">类型:普通服务号</span>
  164. <span ng-if="detail.level == 3">类型:认证订阅号</span>
  165. <span ng-if="detail.level == 4">类型:认证服务号</span>
  166. </div>
  167. <div class="type" ng-if="detail.type == types.wxapp_normal || detail.type == types.wxapp_auth || detail.type == types.phoneapp">
  168. <span>版本:{{detail.current_version.version}}</span>
  169. </div>
  170. <div class="type" ng-if="detail.type == types.webapp">
  171. <span>类型:PC应用</span>
  172. </div>
  173. </div>
  174. </div>
  175. </div>
  176. <!--鼠标悬停遮罩效果-->
  177. <div class="mask">
  178. <!-- 进入公众号/PC -->
  179. <a href="{{detail.switchurl}}" class="entry" ng-if="detail.type == types.account_normal || detail.type == types.account_auth"><div>进入 公众号 <i class="wi wi-angle-right"></i></div></a>
  180. <!-- 进入PC -->
  181. <a href="{{detail.switchurl}}" class="entry" ng-if="detail.type == types.webapp"><div>进入PC <i class="wi wi-angle-right"></i></div></a>
  182. <!-- 进入小程序 -->
  183. <a ng-href="{{links.switch}}&uniacid={{detail.uniacid}}&multiid={{detail.current_version.multiid}}&version_id={{detail.current_version.id}}&type={{detail.type}}" class="entry" ng-if="detail.type == types.wxapp_normal || detail.type == types.wxapp_auth"><div>进入小程序 <i class="wi wi-angle-right"></i></div></a>
  184. <!-- 进入 APP -->
  185. <a ng-href="{{links.switch}}&uniacid={{detail.uniacid}}&version_id={{detail.current_version.id}}&type={{detail.type}}" class="entry" ng-if="detail.type == types.phoneapp">
  186. <div>进入APP <i class="wi wi-angle-right"></i></div>
  187. </a>
  188. <!-- 小程序/APP 查看版本 -->
  189. <a href="javascript:;" class="cut-btn" ng-click="showVersions($event)" ng-if="detail.type == types.wxapp_normal || detail.type == types.wxapp_auth || detail.type == types.phoneapp">
  190. <i class="wi wi-changing-over"></i>
  191. </a>
  192. <!-- 添加到首页 -->
  193. {if !permission_check_account_user('see_user_profile_account_num')}
  194. <a ng-href="{{links.welcome}}uniacid={{detail.uniacid}}" onclick="return ajaxopen(this.href);" class="home-show" title="添加到首页常用功能">
  195. <i class="wi wi-eye"></i>
  196. </a>
  197. {/if}
  198. <!-- 置顶 -->
  199. <a href="javascript:;" class="stick" ng-click="stick(detail.uniacid, detail.type)" title="置顶">
  200. <i class="wi wi-stick-sign"></i>
  201. </a>
  202. </div>
  203. <!-- 小程序/APP版本查看 -->
  204. <div class="cut-select" ng-mouseleave="hideSelect($event)" ng-if="detail.versions">
  205. <div class="arrow-left"></div>
  206. <div class="cut-item">
  207. <a href="javascript:;">
  208. <div class="detail" ng-repeat="version in detail.versions">
  209. <div class="text-over"><span class="wi wi-small-routine"></span>{{version.version}}</div>
  210. <a class="cut-select-mask" href="{{links.switch}}&uniacid={{detail.uniacid}}&multiid={{version.multiid}}&version_id={{version.id}}&type={{detail.type}}">
  211. <div class="entry">选择进入 <i class="wi wi-angle-right"></i></div>
  212. </a>
  213. </div>
  214. </a>
  215. </div>
  216. <div class="cut-select-pager">
  217. <a href="{{links.wxapp_more_version}}&uniacid={{detail.uniacid}}" class="more color-default" ng-if="detail.type == types.wxapp_normal || detail.type == types.wxapp_auth">更多 >></a>
  218. </div>
  219. </div>
  220. </div>
  221. </div>
  222. </div>
  223. </div>
  224. </div>
  225. <script>
  226. angular.module('accountApp').value('config', {
  227. 'list' : {php echo !empty($list) ? json_encode($list) : 'null'},
  228. 'type' : "{$type}",
  229. 'title' : "{$title}",
  230. 'keyword' : "{$keyword}",
  231. 'letter' : "{$letter}",
  232. 'links' : {
  233. 'rank' : "{php echo url('account/privileges/rank')}",
  234. 'switch' : "{php echo url('account/privileges/switch')}",
  235. 'welcome' : "{php echo url('home/welcome/add_welcome')}",
  236. 'wxapp_more_version' : "{php echo url('wxapp/version/display')}",
  237. 'phoneapp_more_version' : "{php echo url('phoneapp/version/display')}"
  238. },
  239. 'types' : {
  240. 'account_normal' : "{ACCOUNT_TYPE_OFFCIAL_NORMAL}",
  241. 'account_auth' : "{ACCOUNT_TYPE_OFFCIAL_AUTH}",
  242. 'wxapp_normal' : "{ACCOUNT_TYPE_APP_NORMAL}",
  243. 'wxapp_auth' : "{ACCOUNT_TYPE_APP_AUTH}",
  244. 'webapp' : "{ACCOUNT_TYPE_WEBAPP_NORMAL}",
  245. 'phoneapp' : "{ACCOUNT_TYPE_PHONEAPP_NORMAL}"
  246. },
  247. scrollUrl : "{php echo url('account/privileges', array('type'=>$type))}"
  248. });
  249. angular.bootstrap($('#js-account-privileges'), ['accountApp']);
  250. </script>
  251. {template 'common/footer'}