123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180 |
- {template 'common/header'}
- <ol class="breadcrumb we7-breadcrumb">
- <a href="{php echo url('account/manage')}"><i class="wi wi-back-circle"></i> </a>
- <li><a href="{php echo url('account/manage')}">平台列表</a></li>
- <li>{php echo $account->typeName}设置</li>
- </ol>
- <div class="media media-wechat-setting">
- <a class="media-left">
- <span class="icon"><i class="wi wi-{$account['type_sign']}"></i></span>
- <img src="{$account['logo']}" class="wechat-img">
- </a>
- <div class="media-body media-middle ">
- <h4 class="media-heading color-dark">{$account['name']}</h4>
- <span class="color-gray">{php echo $account->typeName}</span>
- </div>
- {if $state == ACCOUNT_MANAGE_NAME_FOUNDER || $state == ACCOUNT_MANAGE_NAME_OWNER}
- <div class="media-right media-middle">
- <a href="{php echo url('account/manage/delete', array('uniacid' => $account['uniacid'], 'acid' => $account['acid'], 'account_type' => $account['type']))}" class="btn btn-primary" onclick="return confirm('确认放入回收站吗?')">停 用</a>
- </div>
- {/if}
- </div>
- <div class="clearfix"></div>
- <div class="btn-group we7-btn-group wechat-edit-group">
- {if $state == ACCOUNT_MANAGE_NAME_FOUNDER || $state == ACCOUNT_MANAGE_NAME_OWNER || $state == ACCOUNT_MANAGE_NAME_VICE_FOUNDER}
- <a href="{php echo url('account/post/base', array('uniacid' => $account['uniacid'], 'acid' => $account['acid'], 'account_type' => $account['type']))}" class="btn btn-default {if $do == 'base'} active{/if}">基础信息</a>
- {/if}
- <a href="{php echo url('account/post-user/edit', array('uniacid' => $account['uniacid'], 'acid' => $account['acid'], 'account_type' => $account['type']))}" class="btn btn-default {if $action == 'post-user' && $do == 'edit'} active{/if}">使用者管理</a>
- <a href="{php echo url('miniapp/manage/display', array('uniacid' => $account['uniacid'], 'acid' => $account['acid'], 'account_type' => $account['type']))}" class="btn btn-default {if $action == 'manage' && $do == 'display'} active{/if}">版本管理</a>
- <a href="{php echo url('account/post/modules_tpl', array('uniacid' => $account['uniacid'], 'acid' => $account['acid'], 'account_type' => $account['type']))}" class="btn btn-default {if $action == 'post' && $do == 'modules_tpl'} active{/if}">可用应用模板/模块</a>
- </div>
- <div id="js-account-manage-aliapp" ng-controller="MiniappManageCtrl" ng-cloak>
- <!--版本管理-->
- <div class="text-right we7-margin-bottom">
- <a href="{php echo url('miniapp/post', array('uniacid' => $account['uniacid'], 'type' => $account['type']))}" class="btn btn-primary" target="_blank">添加新版本</a>
- </div>
- <table class="table we7-table vertical-middle wxapp-version-table">
- <tr>
- <th class="text-left">版本号</th>
- <th class="text-left">应用</th>
- {if $account['type_sign'] == 'wxapp'}
- <th class="text-center">之前应用版本</th>
- <th class="text-center">最新应用版本</th>
- {/if}
- <th class="text-right">操作</th>
- </tr>
- <tr ng-if="version_exist" ng-repeat="item in version_lists">
- <td class="text-left">
- <div class="version" ng-bind="item.version"></div>
- <div class="color-gray" ng-bind="item.description"></div>
- </td>
- <td class="clearfix">
- <div class="item col-sm-6" ng-if="item.module">
- <img ng-src="{{item.module.module_info.logo}}" class="icon"/>
- <div class="name" ng-bind="item.module.module_info.title" title="{{item.module.module_info.title}}"></div>
- </div>
- </td>
- {if $account['type_sign'] == 'wxapp'}
- <td class="text-center">
- <div ng-bind="item.last_modules.version"></div>
- </td>
- <td class="text-center">
- <div ng-bind="item.module.module_info.version"></div>
- <div class="color-red" ng-if="item.last_modules.version != item.module.module_info.version">
- <i class="wi wi-warning-sign"></i>
- <span style="font-size: 10px">需上传微信审核</span>
- </div>
- </td>
- {/if}
- <td class="text-right">
- <div class="link-group">
- <a href="./index.php?c=account&a=display&do=switch&uniacid={{item.uniacid}}&version_id={{item.id}}">进入</a>
- <a href="javascript:;" ng-click="showEditVersionInfoModal(item)">修改</a>
- <a href="javascript:;" class="del" ng-click="delWxappVersion(item.id)">删除</a>
- </div>
- </td>
- </tr>
- <tr ng-if="!version_exist">
- <td colspan="5" class="text-center">暂无数据</td>
- </tr>
- </table>
- <div class="modal fade" id="modal_edit_versioninfo" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
- <div class="modal-dialog we7-modal-dialog" style="width:800px">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
- <h4 class="modal-title">修改信息</h4>
- </div>
- <div class="modal-body">
- <table class="table we7-table table-hover table-form">
- <col width="120px">
- <col />
- <tr>
- <td class="table-label">模块版本</td>
- <td><input type="text" class="form-control" ng-model="activeVersion.version" disabled></td>
- </tr>
- <tr>
- <td class="table-label">模块描述</td>
- <td><input type="text" class="form-control" ng-model="activeVersion.description" disabled></td>
- </tr>
- <tr>
- <td class="table-label">应用模块</td>
- <td class="wxapp-module-list">
- <div class="col-sm-6" ng-show="!showadd">
- <div class="item">
- <img ng-src="{{activeVersion.module.module_info.logo}}" class="icon"/>
- <div class="name" ng-bind="activeVersion.module.module_info.title"></div>
- <div ng-bind="activeVersion.module.version"></div>
- <div class="cover-dark"><a href="javascript:;" class="cover-delect" ng-click="delModule(module);"><i class="fa fa-minus-circle"></i>删除</a></div>
- </div>
- </div>
- <div class="col-sm-6" ng-show="showadd">
- <div class="add" ng-click="showEditModuleModal()">+</div>
- </div>
- </td>
- </tr>
- </table>
- </div>
- <div class="modal-footer" ng-if="miniapp_modules">
- <button type="button" class="btn btn-primary" ng-click="editVersionInfo()">确定</button>
- <button type="button" class="btn btn-default" data-dismiss="modal" ng-click="cancelVersionInfo()">取消</button>
- </div>
- </div>
- </div>
- </div>
- <div class="modal fade" id="modal_edit_module" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
- <div class="modal-dialog we7-modal-dialog" style="width:800px">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
- <h4 class="modal-title">选择{php echo $account->typeName}</h4>
- </div>
- <div class="modal-body overflow-auto">
- <div class="input-group" style="width: 400px">
- <input class="form-control" name="title" ng-model="search.moduleName" type="text" placeholder="名称">
- <span class="input-group-btn">
- <button ng-click="searchModuleName()" class="btn btn-default">
- <i class="fa fa-search" style="font-size: 16px"></i>
- </button>
- </span>
- </div>
- <div class="we7-margin-top">
- <div class="col-sm-2 text-center we7-margin-bottom select-module-wxapp" ng-repeat="module in modules" ng-if="modules">
- <a href="javascript:;" ng-click="selectedWxModule(module, $event)">
- <img ng-src="{{module.logo}}" style="width:50px;height:50px;">
- <p class="text-over">{{module.title}}</p>
- </a>
- <span id="module-{{module.name}}" class="selected hide" style="position:absolute;width:82%;height:100%;left:10px;top:0;opacity:0.8;cursor:pointer;background:#e7e8eb; vertical-align:middle;font-size:30px"><i class="wi wi-right-sign color-green" style="margin-top:25px"></i></span>
- </div>
- <div class="text-center" ng-if="!modules">
- <span>暂无可用模块</span>
- </div>
- </div>
- </div>
- <div class="modal-footer" ng-if="modules">
- <button type="button" class="btn btn-primary" ng-click="changeWxModules()">确定</button>
- <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
- </div>
- </div>
- </div>
- </div>
- <!--end 版本管理-->
- </div>
- <script>
- require(['underscore'], function() {
- angular.module('wxApp').value('config', {
- 'account': {php echo !empty($account) ? json_encode($account) : 'null'},
- 'version_lists': {php echo !empty($version_lists) ? json_encode($version_lists) : 'null'},
- 'miniapp_modules' : {php echo !empty($miniapp_modules) ? json_encode($miniapp_modules) : 'null'},
- 'version_exist': {php echo !empty($version_exist) ? json_encode($version_exist) : 'null'},
- 'links': {
- 'edit_version': "{php echo url('miniapp/manage/edit_version', array('acid' => $account['acid'], 'uniacid' => $account['uniacid'], 'account_type' => $account['type']))}",
- 'del_version': "{php echo url('miniapp/manage/del_version', array('acid' => $account['acid'], 'uniacid' => $account['uniacid'], 'account_type' => $account['type']))}",
- },
- });
- angular.bootstrap($('#js-account-manage-aliapp'), ['wxApp']);
- });
- </script>
- {template 'common/footer'}
|