人人商城

edit-account.html 9.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. {template 'common/header'}
  2. {if empty($user['founder_groupid'])}
  3. <ol class="breadcrumb we7-breadcrumb">
  4. <a href="{url 'user/display'}"><i class="wi wi-back-circlewi wi-back-circle"></i> </a>
  5. <li><a href="{url 'user/display'}">用户管理</a></li>
  6. <li>编辑用户详情</li>
  7. </ol>
  8. {else}
  9. <ol class="breadcrumb we7-breadcrumb">
  10. <a href="{url 'founder/display'}"><i class="wi wi-back-circlewi wi-back-circle"></i> </a>
  11. <li><a href="{url 'founder/display'}">副创始人管理</a></li>
  12. <li>编辑副创始人详情</li>
  13. </ol>
  14. {/if}
  15. <div id="js-user-edit-account" ng-controller="UserEditAccount" ng-cloak>
  16. <div class="user-head-info" >
  17. <img ng-src="{{profile.avatar}}" class="img-circle user-avatar pull-left">
  18. <h3 class="pull-left" ng-bind="user.username"></h3>
  19. <div class="user-edit pull-right">
  20. {if $user['founder_groupid'] != ACCOUNT_MANAGE_GROUP_VICE_FOUNDER}
  21. <a href="javascript:;" class="btn btn-primary" ng-click="recycleUser()">禁用</a>
  22. {/if}
  23. </div>
  24. </div>
  25. <div class="btn-group we7-btn-group we7-padding-bottom">
  26. <a href="{php echo url('user/edit/edit_base', array('uid' => $_GPC['uid']))}" class="btn btn-default">基础信息</a>
  27. {if empty($user['founder_groupid'])}
  28. <a href="{php echo url('user/edit/edit_modules_tpl', array('uid' => $_GPC['uid']))}" class="btn btn-default">应用模板权限</a>
  29. <a href="{php echo url('user/edit/edit_account', array('uid' => $_GPC['uid']))}" class="btn btn-default active">使用账号列表</a>
  30. {else}
  31. <a href="{php echo url('founder/edit/edit_account', array('uid' => $_GPC['uid']))}" class="btn btn-default active">使用账号列表</a>
  32. <a href="{php echo url('founder/edit/edit_modules_tpl', array('uid' => $_GPC['uid']))}" class="btn btn-default">应用模板权限</a>
  33. {/if}
  34. </div>
  35. <table class="table we7-table table-hover vertical-middle">
  36. <col width="87px"/>
  37. <col/>
  38. <col width="100px"/>
  39. <col width="240px"/>
  40. <tr>
  41. <th colspan="2" class="text-left">可使用的公众号</th>
  42. <th>角色</th>
  43. <th class="text-right">操作</th>
  44. </tr>
  45. <tr ng-repeat="wechat in wechats" ng-if="wechats">
  46. <td class="text-left"><img ng-src="{{wechat.thumb}}" class="img-responsive"/></td>
  47. <td class="text-left">
  48. <p ng-bind="wechat.name"></p>
  49. <span class="color-gray">类型:
  50. <span ng-if="wechat.level == 1">普通订阅号</span>
  51. <span ng-if="wechat.level == 2">普通服务号</span>
  52. <span ng-if="wechat.level == 3">认证订阅号</span>
  53. <span ng-if="wechat.level == 4">认证服务号/认证媒体/政府订阅号</span>
  54. </span>
  55. </td>
  56. <td>
  57. <span ng-if="wechat.role == 'founder'">创始人</span>
  58. <span ng-if="wechat.role == 'vice_founder'">副创始人</span>
  59. <span ng-if="wechat.role == 'owner'">主管理员</span>
  60. <span ng-if="wechat.role == 'manager'">管理员</span>
  61. <span ng-if="wechat.role == 'operator'">操作员</span>
  62. <span ng-if="wechat.role == 'clerk'">店员</span>
  63. </td>
  64. <td>
  65. <div class="link-group">
  66. <a ng-href="./index.php?c=account&a=post&do=base&uniacid={{wechat.uniacid}}&acid={{wechat.acid}}&account_type={ACCOUNT_TYPE_OFFCIAL_NORMAL}" class="color-default">公众号设置</a>
  67. <a ng-href="./index.php?c=account&a=post-user&do=edit&uniacid={{wechat.uniacid}}&acid={{wechat.acid}}&account_type={ACCOUNT_TYPE_OFFCIAL_NORMAL}" class="color-default">操作员设置</a>
  68. </div>
  69. </td>
  70. </tr>
  71. <tr ng-if="!wechats">
  72. <td colspan="4" class="text-center">暂无数据</td>
  73. </tr>
  74. </table>
  75. <table class="table we7-table table-hover">
  76. <col width="87px"/>
  77. <col/>
  78. <col width="100px"/>
  79. <col width="240px"/>
  80. <tr>
  81. <th colspan="2" class="text-left">可使用的小程序</th>
  82. <th>角色</th>
  83. <th class="text-right">操作</th>
  84. </tr>
  85. <tr ng-repeat="wxapp in wxapps" ng-if="wxapp">
  86. <td class="text-left"><img ng-src="{{wxapp.thumb}}" class="img-responsive"/></td>
  87. <td class="text-left">
  88. <p ng-bind="wxapp.name"></p>
  89. <span class="color-gray">类型:
  90. <span>小程序</span>
  91. </span>
  92. </td>
  93. <td>
  94. <span ng-if="wxapp.role == 'founder'">创始人</span>
  95. <span ng-if="wxapp.role == 'owner'">主管理员</span>
  96. <span ng-if="wxapp.role == 'manager'">管理员</span>
  97. <span ng-if="wxapp.role == 'operator'">操作员</span>
  98. <span ng-if="wxapp.role == 'clerk'">店员</span>
  99. </td>
  100. <td>
  101. <div class="link-group">
  102. <a ng-href="./index.php?c=account&a=post&do=base&uniacid={{wxapp.uniacid}}&acid={{wxapp.acid}}&account_type={ACCOUNT_TYPE_APP_NORMAL}" class="color-default">小程序设置</a>
  103. <a ng-href="./index.php?c=account&a=post-user&do=edit&uniacid={{wxapp.uniacid}}&acid={{wxapp.acid}}&account_type={ACCOUNT_TYPE_APP_NORMAL}" class="color-default">操作员设置</a>
  104. </div>
  105. </td>
  106. </tr>
  107. <tr ng-if="!wxapps">
  108. <td colspan="4" class="text-center">暂无数据</td>
  109. </tr>
  110. </table>
  111. <table class="table we7-table table-hover">
  112. <col width="87px"/>
  113. <col/>
  114. <col width="100px"/>
  115. <col width="240px"/>
  116. <tr>
  117. <th colspan="2" class="text-left">可使用的PC</th>
  118. <th>角色</th>
  119. <th class="text-right">操作</th>
  120. </tr>
  121. <tr ng-repeat="webapp in webapps" ng-if="webapps">
  122. <td class="text-left"><img ng-src="{{webapp.thumb}}" class="img-responsive"/></td>
  123. <td class="text-left">
  124. <p ng-bind="webapp.name"></p>
  125. <span class="color-gray">类型:
  126. <span>PC</span>
  127. </span>
  128. </td>
  129. <td>
  130. <span ng-if="webapp.role == 'founder'">创始人</span>
  131. <span ng-if="webapp.role == 'owner'">主管理员</span>
  132. <span ng-if="webapp.role == 'manager'">管理员</span>
  133. <span ng-if="webapp.role == 'operator'">操作员</span>
  134. <span ng-if="webapp.role == 'clerk'">店员</span>
  135. </td>
  136. <td>
  137. <div class="link-group">
  138. <a ng-href="./index.php?c=account&a=post&do=base&uniacid={{webapp.uniacid}}&acid={{webapp.acid}}&account_type={ACCOUNT_TYPE_WEBAPP_NORMAL}" class="color-default">PC设置</a>
  139. <a ng-href="./index.php?c=account&a=post-user&do=edit&uniacid={{webapp.uniacid}}&acid={{webapp.acid}}&account_type={ACCOUNT_TYPE_WEBAPP_NORMAL}" class="color-default">操作员设置</a>
  140. </div>
  141. </td>
  142. </tr>
  143. <tr ng-if="!webapps">
  144. <td colspan="4" class="text-center">暂无数据</td>
  145. </tr>
  146. </table>
  147. <table class="table we7-table table-hover">
  148. <col width="87px"/>
  149. <col/>
  150. <col width="100px"/>
  151. <col width="240px"/>
  152. <tr>
  153. <th colspan="2" class="text-left">可使用的APP</th>
  154. <th>角色</th>
  155. <th class="text-right">操作</th>
  156. </tr>
  157. <tr ng-repeat="webapp in phoneapps" ng-if="phoneapps">
  158. <td class="text-left"><img ng-src="{{phoneapp.thumb}}" class="img-responsive"/></td>
  159. <td class="text-left">
  160. <p ng-bind="webapp.name"></p>
  161. <span class="color-gray">类型:
  162. <span>PC</span>
  163. </span>
  164. </td>
  165. <td>
  166. <span ng-if="phoneapp.role == 'founder'">创始人</span>
  167. <span ng-if="phoneapp.role == 'owner'">主管理员</span>
  168. <span ng-if="phoneapp.role == 'manager'">管理员</span>
  169. <span ng-if="phoneapp.role == 'operator'">操作员</span>
  170. <span ng-if="phoneapp.role == 'clerk'">店员</span>
  171. </td>
  172. <td>
  173. <div class="link-group">
  174. <a ng-href="./index.php?c=account&a=post&do=base&uniacid={{phoneapp.uniacid}}&acid={{phoneapp.acid}}&account_type={ACCOUNT_TYPE_PHONEAPP_NORMAL}" class="color-default">PC设置</a>
  175. <a ng-href="./index.php?c=account&a=post-user&do=edit&uniacid={{phoneapp.uniacid}}&acid={{phoneapp.acid}}&account_type={ACCOUNT_TYPE_PHONEAPP_NORMAL}" class="color-default">操作员设置</a>
  176. </div>
  177. </td>
  178. </tr>
  179. <tr ng-if="!webapps">
  180. <td colspan="4" class="text-center">暂无数据</td>
  181. </tr>
  182. </table>
  183. <table class="table we7-table table-hover">
  184. <col width="87px"/>
  185. <col/>
  186. <col width="100px"/>
  187. <col width="240px"/>
  188. <tr>
  189. <th colspan="2" class="text-left">可使用的熊掌号</th>
  190. <th>角色</th>
  191. <th class="text-right">操作</th>
  192. </tr>
  193. <tr ng-repeat="xzapp in xzapps" ng-if="xzapps">
  194. <td class="text-left"><img ng-src="{{xzapp.thumb}}" class="img-responsive"/></td>
  195. <td class="text-left">
  196. <p ng-bind="xzapp.name"></p>
  197. <span class="color-gray">类型:
  198. <span>PC</span>
  199. </span>
  200. </td>
  201. <td>
  202. <span ng-if="xzapp.role == 'founder'">创始人</span>
  203. <span ng-if="xzapp.role == 'owner'">主管理员</span>
  204. <span ng-if="xzapp.role == 'manager'">管理员</span>
  205. <span ng-if="xzapp.role == 'operator'">操作员</span>
  206. <span ng-if="xzapp.role == 'clerk'">店员</span>
  207. </td>
  208. <td>
  209. <div class="link-group">
  210. <a ng-href="./index.php?c=account&a=post&do=base&uniacid={{xzapp.uniacid}}&acid={{xzapp.acid}}&account_type={ACCOUNT_TYPE_XZAPP_NORMAL}" class="color-default">熊掌号设置</a>
  211. <a ng-href="./index.php?c=account&a=post-user&do=edit&uniacid={{xzapp.uniacid}}&acid={{xzapp.acid}}&account_type={ACCOUNT_TYPE_XZAPP_NORMAL}" class="color-default">操作员设置</a>
  212. </div>
  213. </td>
  214. </tr>
  215. <tr ng-if="!webapps">
  216. <td colspan="4" class="text-center">暂无数据</td>
  217. </tr>
  218. </table>
  219. </div>
  220. <script>
  221. angular.module('userManageApp').value('config', {
  222. user: {php echo !empty($user) ? json_encode($user) : 'null'},
  223. wechats: {php echo !empty($account_detail['wechat']) ? json_encode($account_detail['wechat']) : 'null'},
  224. wxapps: {php echo !empty($account_detail['wxapp']) ? json_encode($account_detail['wxapp']) : 'null'},
  225. webapps: {php echo !empty($account_detail['webapp']) ? json_encode($account_detail['webapp']) : 'null'},
  226. phoneapps: {php echo !empty($account_detail['phoneapp']) ? json_encode($account_detail['phoneapp']) : 'null'},
  227. xzapps : {php echo !empty($account_detail['xzapp']) ? json_encode($account_detail['xzapp']) : 'null'},
  228. profile: {php echo !empty($profile) ? json_encode($profile) : 'null'},
  229. links: {
  230. recycleUser: "{php echo url('user/display/operate', array('type' => 'recycle'))}",
  231. },
  232. });
  233. angular.bootstrap($('#js-user-edit-account'), ['userManageApp']);
  234. </script>
  235. {template 'common/footer'}