123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243 |
- {template 'common/header'}
- {if empty($user['founder_groupid'])}
- <ol class="breadcrumb we7-breadcrumb">
- <a href="{url 'user/display'}"><i class="wi wi-back-circlewi wi-back-circle"></i> </a>
- <li><a href="{url 'user/display'}">用户管理</a></li>
- <li>编辑用户详情</li>
- </ol>
- {else}
- <ol class="breadcrumb we7-breadcrumb">
- <a href="{url 'founder/display'}"><i class="wi wi-back-circlewi wi-back-circle"></i> </a>
- <li><a href="{url 'founder/display'}">副创始人管理</a></li>
- <li>编辑副创始人详情</li>
- </ol>
- {/if}
- <div id="js-user-edit-account" ng-controller="UserEditAccount" ng-cloak>
- <div class="user-head-info" >
-
- <img ng-src="{{profile.avatar}}" class="img-circle user-avatar pull-left">
- <h3 class="pull-left" ng-bind="user.username"></h3>
- <div class="user-edit pull-right">
-
- {if $user['founder_groupid'] != ACCOUNT_MANAGE_GROUP_VICE_FOUNDER}
- <a href="javascript:;" class="btn btn-primary" ng-click="recycleUser()">禁用</a>
- {/if}
-
- </div>
- </div>
- <div class="btn-group we7-btn-group we7-padding-bottom">
- <a href="{php echo url('user/edit/edit_base', array('uid' => $_GPC['uid']))}" class="btn btn-default">基础信息</a>
- {if empty($user['founder_groupid'])}
- <a href="{php echo url('user/edit/edit_modules_tpl', array('uid' => $_GPC['uid']))}" class="btn btn-default">应用模板权限</a>
- <a href="{php echo url('user/edit/edit_account', array('uid' => $_GPC['uid']))}" class="btn btn-default active">使用账号列表</a>
- {else}
-
- <a href="{php echo url('founder/edit/edit_account', array('uid' => $_GPC['uid']))}" class="btn btn-default active">使用账号列表</a>
- <a href="{php echo url('founder/edit/edit_modules_tpl', array('uid' => $_GPC['uid']))}" class="btn btn-default">应用模板权限</a>
-
- {/if}
- </div>
- <table class="table we7-table table-hover vertical-middle">
- <col width="87px"/>
- <col/>
- <col width="100px"/>
- <col width="240px"/>
- <tr>
- <th colspan="2" class="text-left">可使用的公众号</th>
- <th>角色</th>
- <th class="text-right">操作</th>
- </tr>
- <tr ng-repeat="wechat in wechats" ng-if="wechats">
- <td class="text-left"><img ng-src="{{wechat.thumb}}" class="img-responsive"/></td>
- <td class="text-left">
- <p ng-bind="wechat.name"></p>
- <span class="color-gray">类型:
- <span ng-if="wechat.level == 1">普通订阅号</span>
- <span ng-if="wechat.level == 2">普通服务号</span>
- <span ng-if="wechat.level == 3">认证订阅号</span>
- <span ng-if="wechat.level == 4">认证服务号/认证媒体/政府订阅号</span>
- </span>
- </td>
- <td>
- <span ng-if="wechat.role == 'founder'">创始人</span>
-
- <span ng-if="wechat.role == 'vice_founder'">副创始人</span>
-
- <span ng-if="wechat.role == 'owner'">主管理员</span>
- <span ng-if="wechat.role == 'manager'">管理员</span>
- <span ng-if="wechat.role == 'operator'">操作员</span>
- <span ng-if="wechat.role == 'clerk'">店员</span>
- </td>
- <td>
- <div class="link-group">
- <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>
- <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>
- </div>
- </td>
- </tr>
- <tr ng-if="!wechats">
- <td colspan="4" class="text-center">暂无数据</td>
- </tr>
- </table>
- <table class="table we7-table table-hover">
- <col width="87px"/>
- <col/>
- <col width="100px"/>
- <col width="240px"/>
- <tr>
- <th colspan="2" class="text-left">可使用的小程序</th>
- <th>角色</th>
- <th class="text-right">操作</th>
- </tr>
- <tr ng-repeat="wxapp in wxapps" ng-if="wxapp">
- <td class="text-left"><img ng-src="{{wxapp.thumb}}" class="img-responsive"/></td>
- <td class="text-left">
- <p ng-bind="wxapp.name"></p>
- <span class="color-gray">类型:
- <span>小程序</span>
- </span>
- </td>
- <td>
- <span ng-if="wxapp.role == 'founder'">创始人</span>
- <span ng-if="wxapp.role == 'owner'">主管理员</span>
- <span ng-if="wxapp.role == 'manager'">管理员</span>
- <span ng-if="wxapp.role == 'operator'">操作员</span>
- <span ng-if="wxapp.role == 'clerk'">店员</span>
- </td>
- <td>
- <div class="link-group">
- <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>
- <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>
- </div>
- </td>
- </tr>
- <tr ng-if="!wxapps">
- <td colspan="4" class="text-center">暂无数据</td>
- </tr>
- </table>
- <table class="table we7-table table-hover">
- <col width="87px"/>
- <col/>
- <col width="100px"/>
- <col width="240px"/>
- <tr>
- <th colspan="2" class="text-left">可使用的PC</th>
- <th>角色</th>
- <th class="text-right">操作</th>
- </tr>
- <tr ng-repeat="webapp in webapps" ng-if="webapps">
- <td class="text-left"><img ng-src="{{webapp.thumb}}" class="img-responsive"/></td>
- <td class="text-left">
- <p ng-bind="webapp.name"></p>
- <span class="color-gray">类型:
- <span>PC</span>
- </span>
- </td>
- <td>
- <span ng-if="webapp.role == 'founder'">创始人</span>
- <span ng-if="webapp.role == 'owner'">主管理员</span>
- <span ng-if="webapp.role == 'manager'">管理员</span>
- <span ng-if="webapp.role == 'operator'">操作员</span>
- <span ng-if="webapp.role == 'clerk'">店员</span>
- </td>
- <td>
- <div class="link-group">
- <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>
- <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>
- </div>
- </td>
- </tr>
- <tr ng-if="!webapps">
- <td colspan="4" class="text-center">暂无数据</td>
- </tr>
- </table>
- <table class="table we7-table table-hover">
- <col width="87px"/>
- <col/>
- <col width="100px"/>
- <col width="240px"/>
- <tr>
- <th colspan="2" class="text-left">可使用的APP</th>
- <th>角色</th>
- <th class="text-right">操作</th>
- </tr>
- <tr ng-repeat="webapp in phoneapps" ng-if="phoneapps">
- <td class="text-left"><img ng-src="{{phoneapp.thumb}}" class="img-responsive"/></td>
- <td class="text-left">
- <p ng-bind="webapp.name"></p>
- <span class="color-gray">类型:
- <span>PC</span>
- </span>
- </td>
- <td>
- <span ng-if="phoneapp.role == 'founder'">创始人</span>
- <span ng-if="phoneapp.role == 'owner'">主管理员</span>
- <span ng-if="phoneapp.role == 'manager'">管理员</span>
- <span ng-if="phoneapp.role == 'operator'">操作员</span>
- <span ng-if="phoneapp.role == 'clerk'">店员</span>
- </td>
- <td>
- <div class="link-group">
- <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>
- <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>
- </div>
- </td>
- </tr>
- <tr ng-if="!webapps">
- <td colspan="4" class="text-center">暂无数据</td>
- </tr>
- </table>
- <table class="table we7-table table-hover">
- <col width="87px"/>
- <col/>
- <col width="100px"/>
- <col width="240px"/>
- <tr>
- <th colspan="2" class="text-left">可使用的熊掌号</th>
- <th>角色</th>
- <th class="text-right">操作</th>
- </tr>
- <tr ng-repeat="xzapp in xzapps" ng-if="xzapps">
- <td class="text-left"><img ng-src="{{xzapp.thumb}}" class="img-responsive"/></td>
- <td class="text-left">
- <p ng-bind="xzapp.name"></p>
- <span class="color-gray">类型:
- <span>PC</span>
- </span>
- </td>
- <td>
- <span ng-if="xzapp.role == 'founder'">创始人</span>
- <span ng-if="xzapp.role == 'owner'">主管理员</span>
- <span ng-if="xzapp.role == 'manager'">管理员</span>
- <span ng-if="xzapp.role == 'operator'">操作员</span>
- <span ng-if="xzapp.role == 'clerk'">店员</span>
- </td>
- <td>
- <div class="link-group">
- <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>
- <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>
- </div>
- </td>
- </tr>
- <tr ng-if="!webapps">
- <td colspan="4" class="text-center">暂无数据</td>
- </tr>
- </table>
- </div>
- <script>
- angular.module('userManageApp').value('config', {
- user: {php echo !empty($user) ? json_encode($user) : 'null'},
- wechats: {php echo !empty($account_detail['wechat']) ? json_encode($account_detail['wechat']) : 'null'},
- wxapps: {php echo !empty($account_detail['wxapp']) ? json_encode($account_detail['wxapp']) : 'null'},
- webapps: {php echo !empty($account_detail['webapp']) ? json_encode($account_detail['webapp']) : 'null'},
- phoneapps: {php echo !empty($account_detail['phoneapp']) ? json_encode($account_detail['phoneapp']) : 'null'},
- xzapps : {php echo !empty($account_detail['xzapp']) ? json_encode($account_detail['xzapp']) : 'null'},
- profile: {php echo !empty($profile) ? json_encode($profile) : 'null'},
- links: {
- recycleUser: "{php echo url('user/display/operate', array('type' => 'recycle'))}",
- },
- });
-
- angular.bootstrap($('#js-user-edit-account'), ['userManageApp']);
- </script>
- {template 'common/footer'}
|