人人商城

display.html 5.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. {template 'common/header'}
  2. <div class="panel panel-cut">
  3. <div class="panel-heading">
  4. <span class="panel-heading-left">
  5. <i class="wi wi-small-routine" style="font-size: 24px; margin-right: 10px; vertical-align:middle;"></i>选择APP
  6. </span>
  7. <div class="pull-right font-default">
  8. {if !empty($account_info['phoneapp_limit']) && (!empty($account_info['founder_phoneapp_limit']) && $_W['user']['owner_uid'] || empty($_W['user']['owner_uid'])) || $_W['isfounder'] && !user_is_vice_founder()}
  9. <a href="{php echo url('phoneapp/manage/create_display')}" class="color-default"><i class="wi wi-registersite"></i>新建APP</a>
  10. {/if}
  11. <a href="{php echo url('account/manage', array('account_type' => ACCOUNT_TYPE_PHONEAPP_NORMAL))}" class="color-default"><i class="wi wi-wechatstatistics"></i>APP管理</a>
  12. </div>
  13. </div>
  14. <div class="panel-body" id="js-phoneapp-account-display" ng-controller="AccountDisplayPhoneappCtrl" ng-cloak>
  15. {if !$_W['isfounder'] && !empty($account_info['phoneapp_limit'])}
  16. <div class="alert alert-warning hidden">
  17. 温馨提示:
  18. <i class="fa fa-info-circle"></i>
  19. Hi,<span class="text-strong">{$_W['username']}</span>,您所在的会员组: <span class="text-strong">{$account_info['group_name']}</span>,
  20. 账号有效期限:<span class="text-strong">{php echo date('Y-m-d', $_W['user']['starttime'])} ~~ {if empty($_W['user']['endtime'])}无限制{else}{php echo date('Y-m-d', $_W['user']['endtime'])}{/if}</span>,
  21. 可创建 <span class="text-strong">{$account_info['maxphoneapp']} </span>个APP,已创建<span class="text-strong"> {$account_info['phoneapp_num']} </span>个,还可创建 <span class="text-strong">{$account_info['phoneapp_limit']} </span>个APP。
  22. </div>
  23. {/if}
  24. {if !empty($pager)}
  25. <div class="cut-header">
  26. <form action="./index.php" method="get">
  27. <input type="hidden" name="c" value="phoneapp">
  28. <input type="hidden" name="a" value="display">
  29. <input type="text" name="letter" ng-model="activeLetter" ng-style="{'display': 'none'}">
  30. <div class="cut-search">
  31. <div class="input-group pull-left">
  32. <input class="form-control" name="keyword" value="{$_GPC['keyword']}" type="text" placeholder="请输入APP名称" >
  33. <span class="input-group-btn"><button class="btn btn-default button"><i class="fa fa-search"></i></button></span>
  34. </div>
  35. </div>
  36. </form>
  37. </div>
  38. {/if}
  39. {if !empty($pager)}
  40. <ul class="letters-list cut-wechat-letters">
  41. <li ng-repeat="letter in alphabet" ng-style="{'background-color': letter == activeLetter ? '#ddd' : 'none'}" ng-class="{'active': letter == activeLetter}" ng-click="searchModule(letter)">
  42. <a href="javascript:;" ng-bind="letter"></a>
  43. </li>
  44. </ul>
  45. {/if}
  46. <div class="cut-list clearfix">
  47. <div class="item wxapp-list-item" ng-repeat="list in phoneapp_lists" ng-if="phoneapp_lists">
  48. <div class="content">
  49. <img ng-src="{{list.logo}}" class="icon" onerror="this.src='./resource/images/nopic-107.png'">
  50. <div class="name text-over" ng-bind="list.name"></div>
  51. </div>
  52. <div class="version">
  53. <span class="name">版本</span>
  54. <div class="version-detail" ng-bind="list.current_version.version"></div>
  55. </div>
  56. <div class="mask">
  57. <a ng-href="{{links.switch}}&uniacid={{list.uniacid}}&version_id={{list.current_version.id}}" class="entry">
  58. <div>进入APP <i class="wi wi-angle-right"></i></div>
  59. </a>
  60. {if !permission_check_account_user('see_user_profile_account_num')}
  61. <a ng-href="{{links.welcome}}uniacid={{list.uniacid}}" onclick="return ajaxopen(this.href);" class="home-show" title="添加到首页常用功能">
  62. <i class="wi wi-eye"></i>
  63. </a>
  64. {/if}
  65. <a href="javascript:;" class="cut-btn" ng-click="showVersions($event)">
  66. <i class="wi wi-changing-over"></i>
  67. </a>
  68. </div>
  69. <div class="cut-select" ng-mouseleave="hideSelect($event)" ng-if="list.versions">
  70. <div class="arrow-left"></div>
  71. <div class="cut-item">
  72. <a href="javascript:;">
  73. <div class="detail" ng-repeat="version in list.versions">
  74. <div class="text-over"><span class="wi wi-small-routine"></span>{{version.version}}</div>
  75. <a class="cut-select-mask" href="{{links.switch}}&uniacid={{list.uniacid}}&multiid={{version.multiid}}&version_id={{version.id}}">
  76. <div class="entry">选择进入 <i class="wi wi-angle-right"></i></div>
  77. </a>
  78. </div>
  79. </a>
  80. </div>
  81. <!--<div class="cut-select-pager">-->
  82. <!--<a href="{{links.more_version}}&uniacid={{list.uniacid}}" class="more color-default">更多 >></a>-->
  83. <!--</div>-->
  84. </div>
  85. </div>
  86. <div class="text-center we7-padding-vertical message-page" ng-if="!phoneapp_lists && !activeLetter">
  87. <div class="icon"><span class="wi wi-sad"></span></div>
  88. <div class="message-state">您还没有创建APP</div>
  89. {if !empty($account_info['phoneapp_limit']) || $_W['isfounder'] && !user_is_vice_founder()}
  90. <div><a class="btn btn-primary" href="{php echo url('phoneapp/manage/create_display')}">新建APP</a></div>
  91. {/if}
  92. </div>
  93. <div class="text-center we7-padding-vertical" ng-if="!phoneapp_lists && activeLetter">
  94. 暂无数据
  95. </div>
  96. </div>
  97. <div class="text-right">
  98. {$pager}
  99. </div>
  100. </div>
  101. </div>
  102. <script>
  103. angular.module('phoneApp').value('config', {
  104. 'phoneapp_lists': {php echo !empty($phoneapp_lists) ? json_encode($phoneapp_lists) : 'null'},
  105. 'activeLetter' : {php echo !empty($_GPC['letter']) ? json_encode($_GPC['letter']) : 'null'},
  106. 'links': {
  107. 'switch': "{php echo url('phoneapp/display/switch')}",
  108. 'more_version' : "{php echo url('phoneapp/version/display')}",
  109. 'welcome': "{php echo url('home/welcome/add_welcome')}",
  110. },
  111. });
  112. angular.bootstrap($('#js-phoneapp-account-display'), ['phoneApp']);
  113. </script>
  114. {template 'common/footer'}