manage.html 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. {template 'common/header'}
  2. <ol class="breadcrumb we7-breadcrumb">
  3. <a href="{php echo url('account/manage')}"><i class="wi wi-back-circle"></i> </a>
  4. <li><a href="{php echo url('account/manage')}">平台管理</a></li>
  5. <li>APP设置</li>
  6. </ol>
  7. <div class="media media-wechat-setting">
  8. <a class="media-left">
  9. <span class="icon"><i class="wi wi-wxapp"></i></span>
  10. <img src="{php echo tomedia('headimg_'.$_GPC['acid'].'.jpg')}?time={php echo time()}" class="wechat-img">
  11. </a>
  12. <div class="media-body media-middle ">
  13. <h4 class="media-heading color-dark">{$account['name']}</h4>
  14. </div>
  15. {if $state == ACCOUNT_MANAGE_NAME_FOUNDER || $state == ACCOUNT_MANAGE_NAME_OWNER}
  16. <div class="media-right media-middle">
  17. <a href="{php echo url('account/manage/delete', array('uniacid' => $account['uniacid'], 'acid' => $account['acid'], 'account_type' => ACCOUNT_TYPE_PHONEAPP_NORMAL))}" class="btn btn-primary" onclick="return confirm('确认放入回收站吗?')">停 用</a>
  18. </div>
  19. {/if}
  20. </div>
  21. <div class="clearfix"></div>
  22. <div class="btn-group we7-btn-group wechat-edit-group">
  23. {if $state == ACCOUNT_MANAGE_NAME_FOUNDER || $state == ACCOUNT_MANAGE_NAME_OWNER || $state == ACCOUNT_MANAGE_NAME_VICE_FOUNDER}
  24. <a href="{php echo url('account/post/base', array('uniacid' => $account['uniacid'], 'acid' => $account['acid'], 'account_type' => ACCOUNT_TYPE_PHONEAPP_NORMAL))}" class="btn btn-default {if $do == 'base'} active{/if}">基础信息</a>
  25. {/if}
  26. <a href="{php echo url('account/post-user/edit', array('uniacid' => $account['uniacid'], 'acid' => $account['acid'], 'account_type' => ACCOUNT_TYPE_PHONEAPP_NORMAL))}" class="btn btn-default {if $action == 'post-user' && $do == 'edit'} active{/if}">使用者管理</a>
  27. <a href="{php echo url('phoneapp/manage/display', array('uniacid' => $account['uniacid'], 'acid' => $account['acid'], 'account_type' => ACCOUNT_TYPE_PHONEAPP_NORMAL))}" class="btn btn-default {if $action == 'manage' && $do == 'display'} active{/if}">版本管理</a>
  28. <a href="{php echo url('account/post/modules_tpl', array('uniacid' => $account['uniacid'], 'acid' => $account['acid'], 'account_type' => ACCOUNT_TYPE_PHONEAPP_NORMAL))}" class="btn btn-default {if $action == 'post' && $do == 'modules_tpl'} active{/if}">可用应用模板/模块</a>
  29. </div>
  30. <div id="js-account-manage-phoneapp" ng-controller="AccountManagePhoneappCtrl" ng-cloak>
  31. <!--版本管理-->
  32. <div class="text-right we7-margin-bottom">
  33. <a href="{php echo url('phoneapp/manage/create_display', array('uniacid' => $account['uniacid']))}" class="btn btn-primary" target="_blank">添加新版本</a>
  34. </div>
  35. <table class="table we7-table vertical-middle wxapp-version-table">
  36. <col width="180px"/>
  37. <col />
  38. <col width="330px"/>
  39. <tr>
  40. <th class="text-left">版本号</th>
  41. <th class="text-left">应用</th>
  42. <th class="text-right">操作</th>
  43. </tr>
  44. <tr ng-if="version_exist" ng-repeat="version in phoneapp_version_lists">
  45. <td class="text-left">
  46. <div class="version" ng-bind="version.version"></div>
  47. <div class="color-gray" ng-bind="version.description"></div>
  48. </td>
  49. <td class="clearfix">
  50. <div class="item col-sm-6" ng-if="version.modules" ng-repeat="module in version.modules">
  51. <img ng-src="{{module.logo}}" class="icon"/>
  52. <div class="name" ng-bind="module.title"></div>
  53. <div ng-bind="module.version"></div>
  54. </div>
  55. </td>
  56. <td class="text-right">
  57. <div class="link-group">
  58. <a href="./index.php?c=phoneapp&a=version&do=home&version_id={{version.id}}">进入</a>
  59. <a href="./index.php?c=phoneapp&a=manage&do=create_display&uniacid={{version.uniacid}}&version_id={{version.id}}" >修改</a>
  60. <a href="javascript:;" class="del" ng-click="delPhoneappVersion(version.id)">删除</a>
  61. </div>
  62. </td>
  63. </tr>
  64. <tr ng-if="!version_exist">
  65. <td colspan="3" class="text-center">暂无数据</td>
  66. </tr>
  67. </table>
  68. <div class="modal fade" id="modal_edit_versioninfo" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  69. <div class="modal-dialog we7-modal-dialog" style="width:800px">
  70. <div class="modal-content">
  71. <div class="modal-header">
  72. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  73. <h4 class="modal-title">修改信息</h4>
  74. </div>
  75. <div class="modal-body">
  76. <table class="table we7-table table-hover table-form">
  77. <col width="120px">
  78. <col />
  79. <tr>
  80. <td class="table-label">模块版本</td>
  81. <td><input type="text" class="form-control" ng-model="activeVersion.version"></td>
  82. </tr>
  83. <tr>
  84. <td class="table-label">模块描述</td>
  85. <td><input type="text" class="form-control" ng-model="activeVersion.description"></td>
  86. </tr>
  87. <tr>
  88. <td class="table-label">应用模块</td>
  89. <td class="wxapp-module-list">
  90. <div class="col-sm-6" ng-if="activeVersion.modules" ng-repeat="module in activeVersion.modules">
  91. <div class="item">
  92. <img ng-src="{{module.logo}}" class="icon"/>
  93. <div class="name" ng-bind="module.title"></div>
  94. <div ng-bind="module.version"></div>
  95. <div class="cover-dark"><a href="javascript:;" class="cover-delect" ng-click="delModule(module);"><i class="fa fa-minus-circle"></i>删除</a></div>
  96. </div>
  97. </div>
  98. <div class="col-sm-6">
  99. <div class="add" ng-click="showEditModuleModal()" ng-style="{'display': 'none'}">+</div>
  100. </div>
  101. </td>
  102. </tr>
  103. </table>
  104. </div>
  105. <div class="modal-footer" ng-if="phoneapp_modules">
  106. <button type="button" class="btn btn-primary" ng-click="editVersionInfo()">确定</button>
  107. <button type="button" class="btn btn-default" data-dismiss="modal" ng-click="cancelVersionInfo()">取消</button>
  108. </div>
  109. </div>
  110. </div>
  111. </div>
  112. <div class="modal fade" id="modal_edit_module" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  113. <div class="modal-dialog we7-modal-dialog" style="width:800px">
  114. <div class="modal-content">
  115. <div class="modal-header">
  116. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  117. <h4 class="modal-title">选择APP</h4>
  118. </div>
  119. <!--<div class="modal-body">-->
  120. <!--<div class="panel-body we7-padding">-->
  121. <!--<div class="row">-->
  122. <!--<div class="col-sm-2 text-center we7-margin-bottom select-module-wxapp" ng-repeat="module in phoneapp_modules" ng-if="phoneapp_modules">-->
  123. <!--<a href="javascript:;" ng-click="selectedPhoneModule(module, $event)">-->
  124. <!--<img ng-src="{{module.logo}}" style="width:50px;height:50px;">-->
  125. <!--<p class="text-over">{{module.title}}</p>-->
  126. <!--</a>-->
  127. <!--<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>-->
  128. <!--</div>-->
  129. <!--<div class="text-center" ng-if="!phoneapp_modules">-->
  130. <!--<span>暂无可用模块</span>-->
  131. <!--</div>-->
  132. <!--</div>-->
  133. <!--</div>-->
  134. <!--</div>-->
  135. <div class="modal-footer" ng-if="phoneapp_modules">
  136. <button type="button" class="btn btn-primary" ng-click="changePhoneModules()">确定</button>
  137. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  138. </div>
  139. </div>
  140. </div>
  141. </div>
  142. <!--end 版本管理-->
  143. </div>
  144. <script>
  145. angular.module('phoneApp').value('config', {
  146. 'account': {php echo !empty($account) ? json_encode($account) : 'null'},
  147. 'phoneapp_version_lists': {php echo !empty($phoneapp_version_lists) ? json_encode($phoneapp_version_lists) : 'null'},
  148. 'phoneapp_modules' : {php echo !empty($phoneapp_modules) ? json_encode($phoneapp_modules) : 'null'},
  149. 'version_exist': {php echo !empty($version_exist) ? json_encode($version_exist) : 'null'},
  150. 'links': {
  151. 'edit_version': "{php echo url('phoneapp/manage/edit_version', array('acid' => $account['acid'], 'uniacid' => $account['uniacid'], 'account_type' => ACCOUNT_TYPE_PHONEAPP_NORMAL))}",
  152. 'del_version': "{php echo url('phoneapp/manage/del_version', array('acid' => $account['acid'], 'uniacid' => $account['uniacid'], 'account_type' => ACCOUNT_TYPE_PHONEAPP_NORMAL))}",
  153. },
  154. });
  155. angular.bootstrap($('#js-account-manage-phoneapp'), ['phoneApp']);
  156. </script>
  157. {template 'common/footer'}