人人商城

display.tpl.php 6.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <?php defined('IN_IA') or exit('Access Denied');?><?php (!empty($this) && $this instanceof WeModuleSite || 0) ? (include $this->template('common/header', TEMPLATE_INCLUDEPATH)) : (include template('common/header', TEMPLATE_INCLUDEPATH));?>
  2. <div class="panel panel-cut" id="js-module-display" ng-controller="userModuleDisplayCtrl" ng-cloak>
  3. <div class="panel-heading">
  4. <span class="panel-heading-left"><i class="wi wi-apply" style="font-size: 24px; margin-right: 10px; vertical-align:middle;"></i>请选择您要操作的应用</span>
  5. </div>
  6. <div class="panel-body" >
  7. <div class="we7-page-search cut-header">
  8. <div class="cut-search">
  9. <div class="input-group pull-left">
  10. <input class="form-control" name="keyword" ng-model="searchKeyword" type="text" placeholder="请输入应用名称" ng-keypress="searchKeywordModule()">
  11. <span class="input-group-btn"><button class="btn btn-default button" ng-click="searchKeywordModule()"><i class="fa fa-search"></i></button></span>
  12. </div>
  13. </div>
  14. </div>
  15. <ul class="letters-list">
  16. <li ng-repeat="letter in alphabet" ng-style="{'background-color': letter == activeLetter ? '#ddd' : 'none'}" ng-class="{'active': letter == activeLetter}" ng-click="searchLetterModule(letter)">
  17. <a href="javascript:;" ng-bind="letter"></a>
  18. </li>
  19. </ul>
  20. <div class="cut-list" infinite-scroll='loadMore()'>
  21. <!--应用-->
  22. <div class="item module-list-item" ng-repeat="list in userModule" ng-if="userModule">
  23. <div class="content">
  24. <img ng-src="{{list.logo}}" class="icon" onerror="this.src='./resource/images/nopic-107.png'">
  25. <div class="name text-over" ng-bind="list.title"></div>
  26. </div>
  27. <div class="version">
  28. <span class="name">支持</span>
  29. <div class="version-detail">
  30. <span ng-if="list.<?php echo MODULE_SUPPORT_ACCOUNT_NAME;?> == 2">公众号 </span>
  31. <span ng-if="list.<?php echo MODULE_SUPPORT_WXAPP_NAME;?> == 2"> 微信小程序 </span>
  32. <span ng-if="list.<?php echo MODULE_SUPPORT_WEBAPP_NAME;?> == 2"> PC </span>
  33. <span ng-if="list.<?php echo MODULE_SUPPORT_PHONEAPP_NAME;?> == 2"> APP </span>
  34. <span ng-if="list.<?php echo MODULE_SUPPORT_XZAPP_NAME;?> == 2"> 熊掌号 </span>
  35. <span ng-if="list.<?php echo MODULE_SUPPORT_ALIAPP_NAME;?> == 2"> 支付宝小程序 </span>
  36. <span ng-if="list.<?php echo MODULE_SUPPORT_SYSTEMWELCOME_NAME;?> == 2"> 系统首页 </span>
  37. </div>
  38. </div>
  39. <div class="mask">
  40. <a ng-href="./index.php?c=module&a=display&do=switch&module_name={{list.name}}" class="entry" target="_blank">
  41. <div>进入应用 <i class="wi wi-angle-right"></i></div>
  42. </a>
  43. <a href="javascript:;" class="cut-btn" ng-click="showAccounts($event, list.name)">
  44. <i class="wi wi-changing-over"></i>
  45. </a>
  46. <a ng-href="./index.php?c=home&a=welcome&do=add_welcome&module={{list.name}}" onclick="return ajaxopen(this.href);" class="home-show" title="添加到首页常用功能">
  47. <i class="wi wi-eye"></i>
  48. </a>
  49. <a href="./index.php?c=module&a=display&do=rank&module_name={{list.name}}" class="stick" title="置顶">
  50. <i class="wi wi-stick-sign"></i>
  51. </a>
  52. </div>
  53. <div class="cut-select" ng-mouseleave="hideSelect($event)" ng-show="list.accounts">
  54. <div class="arrow-left"></div>
  55. <div class="cut-item">
  56. <a href="javascript:;">
  57. <div class="detail" ng-repeat="account in list.accounts" ng-if="list.accounts">
  58. <div class="text-over text-left">
  59. <span ng-if="account.type_name == account_types.account" class="wi wi-wechat"></span>
  60. <span ng-if="account.type_name == account_types.wxapp" class="wi wi-wxapp"></span>
  61. <span ng-if="account.type_name == account_types.webapp" class="wi wi-pc"></span>
  62. <span ng-if="account.type_name == account_types.phoneapp" class="wi wi-app"></span>
  63. <span ng-if="account.type_name == account_types.xzapp" class="wi wi-xzapp"></span>
  64. <span ng-if="account.type_name == account_types.aliapp" class="wi wi-aliapp"></span>
  65. {{account.account_name}}
  66. </div>
  67. <a class="cut-select-mask" href="./index.php?c=module&a=display&do=switch&module_name={{list.name}}&uniacid={{account.uniacid}}&version_id={{account.version_id}}" ng-if="account.version_id" target="_blank">
  68. <div class="entry">选择进入 <i class="wi wi-angle-right"></i></div>
  69. </a>
  70. <a class="cut-select-mask" href="./index.php?c=module&a=display&do=switch&module_name={{list.name}}&uniacid={{account.uniacid}}" ng-if="!account.version_id" target="_blank">
  71. <div class="entry">选择进入 <i class="wi wi-angle-right"></i></div>
  72. </a>
  73. </div>
  74. <div class="detail" ng-if="!list.accounts">
  75. <div class="text-over text-center">暂无数据</div>
  76. </div>
  77. </a>
  78. </div>
  79. <!-- <div class="cut-select-pager">
  80. <a href="{{links.more_version}}&uniacid={{list.uniacid}}" class="more color-default">更多 >></a>
  81. </div> -->
  82. </div>
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. <script>
  88. angular.module('moduleApp').value('config', {
  89. 'userModule': <?php echo !empty($user_module) ? json_encode($user_module) : 'null'?>,
  90. 'activeLetter': <?php echo !empty($_GPC['letter']) ? json_encode($_GPC['letter']) : 'null'?>,
  91. 'account_types': {
  92. 'account' : "<?php echo ACCOUNT_TYPE_SIGN;?>",
  93. 'wxapp' : "<?php echo WXAPP_TYPE_SIGN;?>",
  94. 'webapp' : "<?php echo WEBAPP_TYPE_SIGN;?>",
  95. 'phoneapp' : "<?php echo PHONEAPP_TYPE_SIGN;?>",
  96. 'welcome' : "<?php echo WELCOMESYSTEM_TYPE_SIGN;?>",
  97. 'xzapp' : "<?php echo XZAPP_TYPE_SIGN;?>",
  98. 'aliapp' : "<?php echo ALIAPP_TYPE_SIGN;?>",
  99. },
  100. 'links': {
  101. 'moduleAccounts': "<?php echo url('module/display/have_permission_uniacids')?>",
  102. 'getallLastSwitch': "<?php echo url('module/display/getall_last_switch')?>",
  103. }
  104. });
  105. angular.bootstrap($('#js-module-display'), ['moduleApp']);
  106. </script>
  107. <?php (!empty($this) && $this instanceof WeModuleSite || 0) ? (include $this->template('common/footer', TEMPLATE_INCLUDEPATH)) : (include template('common/footer', TEMPLATE_INCLUDEPATH));?>