display.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. {template 'common/header'}
  2. <!--new-->
  3. <div class="panel panel-cut" id="js-module-display" ng-controller="userModuleDisplayCtrl" ng-cloak>
  4. <div class="panel-body">
  5. <div class="search-box">
  6. <select name="" class="select-letter we7-margin-right" ng-init="letter = '{php echo $_GPC['letter'] ? $_GPC['letter'] : '全部'}'" ng-model="letter" ng-change="searchModule()">
  7. <option value="{{item == '按字母筛选(全部)' ? '全部' : item}}" ng-repeat="item in letters">{{item}}</option>
  8. </select>
  9. <div class="search-form">
  10. <div class="input-group">
  11. <input type="text" ng-model="keyword" placeholder="请输入要搜索的应用名称" class="form-control">
  12. <span class="input-group-btn" ng-click="searchModule()"><button class="btn btn-default"><i class="wi wi-search"></i></button></span>
  13. </div>
  14. </div>
  15. <a href="{php echo url('module/link')}" class="btn btn-primary">新建应用关联组</a>
  16. </div>
  17. <div class="module-display-list">
  18. <div class="item" ng-repeat="module in own_account_modules.modules" >
  19. <div class="item-box">
  20. <a href="javascript:void(0);" ng-click="switchModule(module)" class="action-in">进入<i class="wi wi-denglu"></i></a>
  21. <a class="info" href="javascript:void(0);" ng-click="switchModule(module)">
  22. <img ng-src="{{ module.logo }}" class="logo" alt="">
  23. <div class="name text-over">{{ module.title }}</div>
  24. </a>
  25. <div class="action">
  26. <a href="javascript:void(0);" class="action-up" data-toggle="tooltip" data-placement="bottom" data-title="置顶" ng-click="setTop(module.module_name, module.uniacid)">
  27. <i class="wi wi-stick-sign"></i>
  28. </a>
  29. <div href="" class="action-account text-over text-over">
  30. <img ng-if="module.default_uniacid" ng-src="{{ module.default_account_logo}}" class="account-logo account-img" alt="">
  31. <img ng-if="!module.default_uniacid" ng-src="{{ module.account_logo }}" class="account-logo account-img" alt="">
  32. <span class="account-name" ng-if="module.default_account_name">{{ module.default_account_info.name }}</span>
  33. <span class="account-name" ng-if="!module.default_account_name">{{ module.account_name }}</span>
  34. </div>
  35. <div class="dropdown action-cut">
  36. <a data-target="#" ng-click="showAccounts(module.module_name, module.default_account_name)">
  37. <i class="wi wi-wxapp" data-toggle="tooltip" data-placement="bottom" data-title="切换关联平台"></i>
  38. </a>
  39. </div>
  40. </div>
  41. </div>
  42. </div>
  43. </div>
  44. </div>
  45. <div class="text-right">{$own_account_modules['pager']}</div>
  46. <div class="uploader-modal modal fade module" id="jurisdiction-add">
  47. <div class="modal-dialog modal-lg">
  48. <div class="modal-content ">
  49. <div class="modal-header">
  50. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  51. <h4 class="modal-title" id="myModalLabel2">切换关联平台</h4>
  52. </div>
  53. <div class="modal-body material-content clearfix">
  54. <div class="material-search">
  55. <div class="input-group col-sm-5">
  56. <input class="form-control" name="keyword" ng-model="module_keyword" type="text" placeholder="请输入名称" autocomplete="false">
  57. <span class="input-group-btn" ng-click="loadMore(1)">
  58. <span class="btn btn-primary button"><i class="wi wi-search"></i></span>
  59. </span>
  60. </div>
  61. </div>
  62. <div class="material-body" id="content-modules" >
  63. <div class="row">
  64. <div class="col-sm-2" ng-repeat="module_account_info in module_hava_accounts">
  65. <div class="item"
  66. ng-click="setDefaultAccount(module_account_info.uniacid, changaModule.name)"
  67. ng-class="{true:'active',false:''}[module_account_info.account_name == changaModule.default_name]" >
  68. <img ng-src="{{ module_account_info.logo }}" alt="" class="account-img icon"/>
  69. <div class="name" ng-bind="module_account_info.account_name"></div>
  70. <div class="mask">
  71. <span class="wi wi-right"></span>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. </div>
  78. <!--<div class="material-pager text-right clearfix" style="padding: 10px">-->
  79. <!--<div class="js-pager">-->
  80. <!--<ul class="pagination">-->
  81. <!--</ul>-->
  82. <!--</div>-->
  83. <!--</div>-->
  84. <div class="modal-footer">
  85. <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. <script>
  92. angular.module('moduleApp').value('config', {
  93. 'own_account_modules': {php echo !empty($own_account_modules) ? json_encode($own_account_modules) : 'null'},
  94. 'activeLetter': {php echo !empty($_GPC['letter']) ? json_encode($_GPC['letter']) : 'null'},
  95. 'links': {
  96. 'module_display' : "{php echo url('module/display')}",
  97. 'moduleAccounts' : "{php echo url('module/display/have_permission_uniacids')}",
  98. 'setDefaultAccountUrl' : "{php echo url('module/display/set_default_account')}",
  99. 'init_uni_modules': "{php echo url('module/display/init_uni_modules')}",
  100. 'set_top_url': "{php echo url('module/display/rank')}",
  101. 'module_switch_url': "{php echo url('module/display/switch')}",
  102. },
  103. });
  104. angular.bootstrap($('#js-module-display'), ['moduleApp']);
  105. </script>
  106. {template 'common/footer'}