profile-create-account-list.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. {template 'common/header'}
  2. <div id="js-user-edit-account" ng-controller="UserEditAccount" ng-cloak>
  3. <div class="edit-account-num">
  4. <div class="item">
  5. <div class="title">公众号</div>
  6. <div class="num">可创建总数 <span>{$user_permission_account['maxaccount']}</span></div>
  7. <div class="num">已创建 <span>{$user_permission_account['account_num']}</span></div>
  8. <div class="num">剩余可创建 <span>{$user_permission_account['account_limit']}</span></div>
  9. </div>
  10. <div class="item">
  11. <div class="title">微信小程序</div>
  12. <div class="num">可创建总数 <span>{$user_permission_account['maxwxapp']}</span></div>
  13. <div class="num">已创建 <span>{$user_permission_account['wxapp_num']}</span></div>
  14. <div class="num">剩余可创建 <span>{$user_permission_account['wxapp_limit']}</span></div>
  15. </div>
  16. <div class="item">
  17. <div class="title">PC</div>
  18. <div class="num">可创建总数 <span>{$user_permission_account['maxwebapp']}</span></div>
  19. <div class="num">已创建 <span>{$user_permission_account['webapp_num']}</span></div>
  20. <div class="num">剩余可创建 <span>{$user_permission_account['webapp_limit']}</span></div>
  21. </div>
  22. <div class="item">
  23. <div class="title">APP</div>
  24. <div class="num">可创建总数 <span>{$user_permission_account['maxphoneapp']}</span></div>
  25. <div class="num">已创建 <span>{$user_permission_account['phoneapp_num']}</span></div>
  26. <div class="num">剩余可创建 <span>{$user_permission_account['phoneapp_limit']}</span></div>
  27. </div>
  28. <div class="item">
  29. <div class="title">熊掌号</div>
  30. <div class="num">可创建总数 <span>{$user_permission_account['maxxzapp']}</span></div>
  31. <div class="num">已创建 <span>{$user_permission_account['xzapp_num']}</span></div>
  32. <div class="num">剩余可创建 <span>{$user_permission_account['xzapp_limit']}</span></div>
  33. </div>
  34. <div class="item">
  35. <div class="title">支付宝小程序</div>
  36. <div class="num">可创建总数 <span>{$user_permission_account['maxaliapp']}</span></div>
  37. <div class="num">已创建 <span>{$user_permission_account['aliapp_num']}</span></div>
  38. <div class="num">剩余可创建 <span>{$user_permission_account['aliapp_limit']}</span></div>
  39. </div>
  40. </div>
  41. <div class="panel we7-panel user-permission">
  42. <div class="panel-heading">
  43. <span>所属用户组:<span >{$user_permission_account['group_name']}</span></span>
  44. <!--<a href="javascript:;" class="color-default pull-right" data-toggle="modal" data-target="#group" ng-click="editGroup()">修改</a>-->
  45. </div>
  46. <div class="panel-body">
  47. <div class="permission-heading">
  48. <span >{$user_permission_account['group_name']}</span>
  49. <div class="pull-right permission-edit" style="width: auto;">
  50. <a href="javascript:;" class="color-default js-unfold" data-toggle="collapse" data-target="#demo-1">展开</a>
  51. </div>
  52. </div>
  53. <div id="demo-1" class="collapse user-account-num">
  54. <span>公众号使用权限: {$user_permission_account['user_group_maxaccount']}</span>
  55. <span>微信小程序使用权限: {$user_permission_account['user_group_maxwxapp']}</span>
  56. <span>PC使用权限: {$user_permission_account['user_group_maxwebapp']}</span>
  57. <span>APP使用权限: {$user_permission_account['user_group_maxphoneapp']}</span>
  58. <span>熊掌号使用权限: {$user_permission_account['user_group_maxxzapp']}</span>
  59. <span>支付宝小程序使用权限:{$user_permission_account['user_group_maxaliapp']}</span>
  60. </div>
  61. </div>
  62. </div>
  63. <div class="panel we7-panel user-permission">
  64. <div class="panel-heading">
  65. <span>账号权限组名称</span>
  66. </div>
  67. {loop $user_permission_account['create_groups'] $create_group}
  68. <div class="panel-body">
  69. <div class="permission-heading">
  70. <span >{$create_group['group_name']}</span>
  71. <div class="pull-right permission-edit" style="width: auto;">
  72. <a href="javascript:;" class="color-default js-unfold" data-toggle="collapse" data-target="#demo-create-account-{$create_group['id']}">展开</a>
  73. <!--<a href="javascript:;" class="color-default " >删除</a>-->
  74. </div>
  75. </div>
  76. <div id="demo-create-account-{$create_group['id']}" class="collapse user-account-num">
  77. <span>公众号使用权限: {$create_group['maxaccount']}</span>
  78. <span>微信小程序使用权限: {$create_group['maxwxapp']}</span>
  79. <span>PC使用权限: {$create_group['maxwebapp']}</span>
  80. <span>APP使用权限: {$create_group['maxphoneapp']}</span>
  81. <span>熊掌号使用权限: {$create_group['maxxzapp']}</span>
  82. <span>支付宝小程序使用权限:{$create_group['maxaliapp']}</span>
  83. </div>
  84. </div>
  85. {/loop}
  86. </div>
  87. <div class="panel we7-panel user-permission">
  88. <div class="panel-heading">
  89. <span>附加权限</span>
  90. <!--<a href="javascript:;" class="color-default pull-right" data-toggle="modal" data-target="#num" >修改</a>-->
  91. </div>
  92. <div class="panel-body">
  93. <div class=" user-account-num">
  94. <span>公众号使用权限: {$user_permission_account['extra_account']}</span>
  95. <span>微信小程序使用权限: {$user_permission_account['extra_wxapp']}</span>
  96. <span>PC使用权限: {$user_permission_account['extra_webapp']}</span>
  97. <span>APP使用权限: {$user_permission_account['extra_phoneapp']}</span>
  98. <span>熊掌号使用权限: {$user_permission_account['extra_xzapp']}</span>
  99. <span>支付宝小程序使用权限:{$user_permission_account['extra_aliapp']}</span>
  100. </div>
  101. </div>
  102. </div>
  103. <div class="panel we7-panel user-permission">
  104. <div class="panel-heading">
  105. <span>商城购买账号权限</span>
  106. </div>
  107. <div class="panel-body">
  108. <div class="user-account-num-shop">
  109. <div class="item media">
  110. <div class="media-left">
  111. <div class="media-object logo">
  112. <i class="wi wi-account"></i>
  113. </div>
  114. </div>
  115. <div class="media-body media-middle">
  116. <h4 class="media-heading num">数量:{$user_permission_account['store_buy_account']}</h4>
  117. <!--<p class="date">有效期:1个月 </p>-->
  118. </div>
  119. </div>
  120. <div class="item media">
  121. <div class="media-left">
  122. <div class="media-object logo">
  123. <i class="wi wi-wxapp"></i>
  124. </div>
  125. </div>
  126. <div class="media-body media-middle">
  127. <h4 class="media-heading num">数量:{$user_permission_account['store_buy_wxapp']}</h4>
  128. <!--<p class="date">有效期:1个月 </p>-->
  129. </div>
  130. </div>
  131. <!--<div class="item media">-->
  132. <!--<div class="media-left">-->
  133. <!--<div class="media-object logo">-->
  134. <!--<i class="wi wi-pc"></i>-->
  135. <!--</div>-->
  136. <!--</div>-->
  137. <!--<div class="media-body media-middle">-->
  138. <!--<h4 class="media-heading num">数量:1</h4>-->
  139. <!--<p class="date">有效期:1个月 </p>-->
  140. <!--</div>-->
  141. <!--</div>-->
  142. <!--<div class="item media">-->
  143. <!--<div class="media-left">-->
  144. <!--<div class="media-object logo">-->
  145. <!--<i class="wi wi-app"></i>-->
  146. <!--</div>-->
  147. <!--</div>-->
  148. <!--<div class="media-body media-middle">-->
  149. <!--<h4 class="media-heading num">数量:1</h4>-->
  150. <!--<p class="date">有效期:1个月 </p>-->
  151. <!--</div>-->
  152. <!--</div>-->
  153. <!--<div class="item media">-->
  154. <!--<div class="media-left">-->
  155. <!--<div class="media-object logo">-->
  156. <!--<i class="wi wi-xzapp"></i>-->
  157. <!--</div>-->
  158. <!--</div>-->
  159. <!--<div class="media-body media-middle">-->
  160. <!--<h4 class="media-heading num">数量:1</h4>-->
  161. <!--<p class="date">有效期:1个月 </p>-->
  162. <!--</div>-->
  163. <!--</div>-->
  164. <!--<div class="item media">-->
  165. <!--<div class="media-left">-->
  166. <!--<div class="media-object logo">-->
  167. <!--<i class="wi wi-aliapp"></i>-->
  168. <!--</div>-->
  169. <!--</div>-->
  170. <!--<div class="media-body media-middle">-->
  171. <!--<h4 class="media-heading num">数量:1</h4>-->
  172. <!--<p class="date">有效期:1个月 </p>-->
  173. <!--</div>-->
  174. <!--</div>-->
  175. <!--<div class="item media">-->
  176. <!--<div class="media-left">-->
  177. <!--<div class="media-object logo">-->
  178. <!--<i class="wi wi-account"></i>-->
  179. <!--</div>-->
  180. <!--</div>-->
  181. <!--<div class="media-body media-middle">-->
  182. <!--<h4 class="media-heading num">数量:1</h4>-->
  183. <!--<p class="date">有效期:1个月 </p>-->
  184. <!--</div>-->
  185. <!--</div>-->
  186. </div>
  187. </div>
  188. </div>
  189. <div class="modal fade" id="group" role="dialog">
  190. <div class="we7-modal-dialog modal-dialog">
  191. <div class="modal-content">
  192. <div class="modal-header">
  193. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  194. <div class="modal-title">修改用户组</div>
  195. </div>
  196. <div class="modal-body">
  197. <div class="form-group">
  198. <select class="we7-select" ng-model="changeGroup">
  199. <option value="">请选择所属用户组</option>
  200. <option ng-value="group.id" ng-repeat="group in groups" ng-selected="group.id == group_info.id" ng-bind="group.name"></option>
  201. </select>
  202. <span class="help-block"></span>
  203. </div>
  204. </div>
  205. <div class="modal-footer">
  206. <button type="button" class="btn btn-primary" data-dismiss="modal" ng-click="httpChange('groupid')">确定</button>
  207. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  208. </div>
  209. </div>
  210. </div>
  211. </div>
  212. <div class="modal fade" id="num" role="dialog">
  213. <div class="we7-modal-dialog modal-dialog">
  214. <div class="modal-content">
  215. <div class="modal-header">
  216. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  217. <div class="modal-title">修改附加权限</div>
  218. </div>
  219. <div class="modal-body we7-form">
  220. <div class="form-group">
  221. <label for="" class="control-label col-sm-3">公众号使用权限:</label>
  222. <div class="form-controls col-sm-8">
  223. <input type="text" name="group_name" class="form-control" ng-model="groupInfo.group_name" autocomplete="off" />
  224. </div>
  225. </div>
  226. <div class="form-group">
  227. <label for="" class="control-label col-sm-3">微信小程序使用权限:</label>
  228. <div class="form-controls col-sm-8">
  229. <input type="text" name="group_name" class="form-control" ng-model="groupInfo.group_name" autocomplete="off" />
  230. </div>
  231. </div>
  232. <div class="form-group">
  233. <label for="" class="control-label col-sm-3">PC使用权限:</label>
  234. <div class="form-controls col-sm-8">
  235. <input type="text" name="group_name" class="form-control" ng-model="groupInfo.group_name" autocomplete="off" />
  236. </div>
  237. </div>
  238. <div class="form-group">
  239. <label for="" class="control-label col-sm-3">APP使用权限:</label>
  240. <div class="form-controls col-sm-8">
  241. <input type="text" name="group_name" class="form-control" ng-model="groupInfo.group_name" autocomplete="off" />
  242. </div>
  243. </div>
  244. <div class="form-group">
  245. <label for="" class="control-label col-sm-3">熊掌号使用权限:</label>
  246. <div class="form-controls col-sm-8">
  247. <input type="text" name="group_name" class="form-control" ng-model="groupInfo.group_name" autocomplete="off" />
  248. </div>
  249. </div>
  250. <div class="form-group">
  251. <label for="" class="control-label col-sm-3">支付宝小程序使用权限:</label>
  252. <div class="form-controls col-sm-8">
  253. <input type="text" name="group_name" class="form-control" ng-model="groupInfo.group_name" autocomplete="off" />
  254. </div>
  255. </div>
  256. </div>
  257. <div class="modal-footer">
  258. <button type="button" class="btn btn-primary" >确定</button>
  259. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  260. </div>
  261. </div>
  262. </div>
  263. </div>
  264. </div>
  265. <script>
  266. angular.module('userManageApp').value('config', {
  267. user: {php echo !empty($user) ? json_encode($user) : 'null'},
  268. wechats: {php echo !empty($account_detail['wechat']) ? json_encode($account_detail['wechat']) : 'null'},
  269. wxapps: {php echo !empty($account_detail['wxapp']) ? json_encode($account_detail['wxapp']) : 'null'},
  270. group_info: {php echo !empty($group_info) ? json_encode($group_info) : 'null'},
  271. webapps: {php echo !empty($account_detail['webapp']) ? json_encode($account_detail['webapp']) : 'null'},
  272. phoneapps: {php echo !empty($account_detail['phoneapp']) ? json_encode($account_detail['phoneapp']) : 'null'},
  273. xzapps : {php echo !empty($account_detail['xzapp']) ? json_encode($account_detail['xzapp']) : 'null'},
  274. profile: {php echo !empty($profile) ? json_encode($profile) : 'null'},
  275. links: {
  276. recycleUser: "{php echo url('user/display/operate', array('type' => 'recycle'))}",
  277. },
  278. });
  279. angular.bootstrap($('#js-user-edit-account'), ['userManageApp']);
  280. </script>
  281. {template 'common/footer'}